|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro UIElementContainer API. UIElementContainer is the abstract base class of all UI elements that may contain a number of arbitrary UI elements called its children.
A container manages its children using an instance of Layout. The layout defines how the children are arranged in their container. A UI element that is managed by a layout may provide layout data carrying individual layout information.
The size of the container is specified using the attributes width and height.
Width and height may be specified by CSS (cascading-style-sheet) size values.
This is a percentage value like "50%", a pixel value like "100px" or
a relative font size value like "1.5em" or "1ex".
This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!
IWDLayout,
IWDLayoutData| Field Summary | |
static java.lang.String |
DEFAULT_HEIGHT
Default value of property height. |
static java.lang.String |
DEFAULT_WIDTH
Default value of property width. |
| Fields inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
DEFAULT_ENABLED, DEFAULT_TOOLTIP, DEFAULT_VISIBLE |
| Method Summary | |
void |
addChild(IWDUIElement aUIElement)
Adds the given Child at the end of the list of Children. |
void |
addChild(IWDUIElement aUIElement,
int index)
Adds the given Child at the specified index in the list of Children. |
void |
bindHeight(IWDAttributeInfo attributeInfo)
Binds property height to the context attribute
specified by the given attribute info. |
void |
bindHeight(java.lang.String path)
Binds property height to the context attribute
specified by path. |
java.lang.String |
bindingOfHeight()
Binding path of property height. |
java.lang.String |
bindingOfWidth()
Binding path of property width. |
void |
bindWidth(IWDAttributeInfo attributeInfo)
Binds property width to the context attribute
specified by the given attribute info. |
void |
bindWidth(java.lang.String path)
Binds property width to the context attribute
specified by path. |
IWDLayout |
createLayout(java.lang.Class layoutInterface)
Creates and sets a layout of the given type. |
void |
destroyAllChildren()
Destroys all entries in the list of Children. |
IWDUIElement |
getChild(int index)
Returns the Child at the given index. |
IWDUIElement[] |
getChildren()
Returns the list of Children. |
java.lang.String |
getHeight()
Returns the value of the height property. |
IWDLayout |
getLayout()
Gets the Layout instance. |
java.lang.String |
getWidth()
Returns the value of the width property. |
boolean |
hasChildren()
Checks if there exist Children. |
int |
indexOfChild(IWDUIElement aUIElement)
Returns the index of the given element in the list of Children or -1 if it is not contained in the list. |
java.util.Iterator |
iterateChildren()
Returns an iterator over the list of Children. |
int |
numberOfChildren()
Returns the number of Children. |
void |
removeAllChildren()
Removes all entries from the list of Children. |
IWDUIElement |
removeChild(int index)
Removes the entry at the given index from the list of Children. |
IWDUIElement |
removeChild(java.lang.String id)
Removes the entry with the given ID from the list of Children. |
void |
setHeight(java.lang.String value)
Sets property height to the new value. |
void |
setWidth(java.lang.String value)
Sets property width to the new value. |
void |
swapChildren(int i,
int j)
Swaps the Children at the given indices. |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
bindEnabled, bindEnabled, bindingOfEnabled, bindingOfTooltip, bindingOfVisible, bindTooltip, bindTooltip, bindVisible, bindVisible, createLayoutData, getContainer, getEnabled, getLayoutData, getTooltip, getVisible, setEnabled, setTooltip, setVisible |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDViewElement |
getId, getView, requestFocus |
| Field Detail |
public static final java.lang.String DEFAULT_HEIGHT
height.public static final java.lang.String DEFAULT_WIDTH
width.| Method Detail |
public void bindHeight(java.lang.String path)
height to the context attribute
specified by path.path - the path of the context attribute to which the height
property is boundpublic void bindHeight(IWDAttributeInfo attributeInfo)
height to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
height property is boundpublic java.lang.String bindingOfHeight()
height.public java.lang.String getHeight()
height property.
The initial value is "".
Determines the height (CSS size ) of this container.setHeight(String)public void setHeight(java.lang.String value)
height to the new value.value - the new value of the height propertygetHeight()public void bindWidth(java.lang.String path)
width to the context attribute
specified by path.path - the path of the context attribute to which the width
property is boundpublic void bindWidth(IWDAttributeInfo attributeInfo)
width to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
width property is boundpublic java.lang.String bindingOfWidth()
width.public java.lang.String getWidth()
width property.
The initial value is "".
Determines the width (CSS size ) of this container.setWidth(String)public void setWidth(java.lang.String value)
width to the new value.value - the new value of the width propertygetWidth()public void addChild(IWDUIElement aUIElement)
aUIElement - the Child to be added into the listgetChildren()
public void addChild(IWDUIElement aUIElement,
int index)
aUIElement - the Child to be added into the listindex - zero based index of the insertion position in the listgetChildren()
public void swapChildren(int i,
int j)
i - index of the first Child to swapj - index of the second Child to swapIndexOutOfBoundsException - If one of the indices is out of boundspublic IWDUIElement[] getChildren()
public IWDUIElement getChild(int index)
public int indexOfChild(IWDUIElement aUIElement)
-1 if it is not contained in the list.public int numberOfChildren()
getChildren()public boolean hasChildren()
true if there are Children;
false otherwise.getChildren()public java.util.Iterator iterateChildren()
getChildren()public IWDUIElement removeChild(int index)
index - zero based index of the deletion position in the listaddChild(IWDUIElement),
getChildren()public IWDUIElement removeChild(java.lang.String id)
id - unique ID of the element to be deleted from the listaddChild(IWDUIElement),
getChildren()public void removeAllChildren()
addChild(IWDUIElement),
getChildren()public void destroyAllChildren()
public IWDLayout getLayout()
createLayout(Class)public IWDLayout createLayout(java.lang.Class layoutInterface)
layoutInterface - the type of layout to be created
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||