|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro TabStrip API. TabStrip is used to display a set of data organized in tabs. One tab at a time may be selected and its content by displayed. A tab is selected by clicking its caption.
This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!
IWDTab| Field Summary | |
static java.lang.String |
DEFAULT_ACCESSIBILITY_DESCRIPTION
Default value of property accessibilityDescription. |
static java.lang.String |
DEFAULT_HEIGHT
Default value of property height. |
static java.lang.String |
DEFAULT_SELECTED_TAB
Default value of property selectedTab. |
static WDTabAlignment |
DEFAULT_TAB_ALIGNMENT
Default value of property tabAlignment. |
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 |
addTab(IWDTab aTab)
Adds the given Tab at the end of the list of Tabs. |
void |
addTab(IWDTab aTab,
int index)
Adds the given Tab at the specified index in the list of Tabs. |
void |
bindAccessibilityDescription(IWDAttributeInfo attributeInfo)
Binds property accessibilityDescription to the context attribute
specified by the given attribute info. |
void |
bindAccessibilityDescription(java.lang.String path)
Binds property accessibilityDescription to the context attribute
specified by path. |
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 |
bindingOfAccessibilityDescription()
Binding path of property accessibilityDescription. |
java.lang.String |
bindingOfHeight()
Binding path of property height. |
java.lang.String |
bindingOfSelectedTab()
Binding path of property selectedTab. |
java.lang.String |
bindingOfWidth()
Binding path of property width. |
void |
bindSelectedTab(IWDAttributeInfo attributeInfo)
Binds property selectedTab to the context attribute
specified by the given attribute info. |
void |
bindSelectedTab(java.lang.String path)
Binds property selectedTab to the context attribute
specified by path. |
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. |
void |
destroyAllTabs()
Destroys all entries in the list of Tabs. |
java.lang.String |
getAccessibilityDescription()
Returns the value of the accessibilityDescription property. |
java.lang.String |
getHeight()
Returns the value of the height property. |
IWDAction |
getOnSelect()
Returns the action to which the event onSelect is mapped. |
java.lang.String |
getSelectedTab()
Returns the value of the selectedTab property. |
IWDTab |
getTab(int index)
Returns the Tab at the given index. |
WDTabAlignment |
getTabAlignment()
Returns the value of the tabAlignment property. |
IWDTab[] |
getTabs()
Returns the list of Tabs. |
java.lang.String |
getWidth()
Returns the value of the width property. |
boolean |
hasTabs()
Checks if there exist Tabs. |
int |
indexOfTab(IWDTab aTab)
Returns the index of the given element in the list of Tabs or -1 if it is not contained in the list. |
java.util.Iterator |
iterateTabs()
Returns an iterator over the list of Tabs. |
IWDParameterMapping |
mappingOfOnSelect()
Returns the parameter mapping of event onSelect. |
int |
numberOfTabs()
Returns the number of Tabs. |
void |
removeAllTabs()
Removes all entries from the list of Tabs. |
IWDTab |
removeTab(int index)
Removes the entry at the given index from the list of Tabs. |
IWDTab |
removeTab(java.lang.String id)
Removes the entry with the given ID from the list of Tabs. |
void |
setAccessibilityDescription(java.lang.String value)
Sets property accessibilityDescription to the new value. |
void |
setHeight(java.lang.String value)
Sets property height to the new value. |
void |
setOnSelect(IWDAction action)
Maps the event onSelect to the given action. |
void |
setSelectedTab(java.lang.String value)
Sets property selectedTab to the new value. |
void |
setTabAlignment(WDTabAlignment tabAlignment)
Sets property tabAlignment to the given value. |
void |
setWidth(java.lang.String value)
Sets property width to the new value. |
void |
swapTabs(int i,
int j)
Swaps the Tabs 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_ACCESSIBILITY_DESCRIPTION
accessibilityDescription.public static final java.lang.String DEFAULT_HEIGHT
height.public static final java.lang.String DEFAULT_SELECTED_TAB
selectedTab.public static final WDTabAlignment DEFAULT_TAB_ALIGNMENT
tabAlignment.public static final java.lang.String DEFAULT_WIDTH
width.| Method Detail |
public IWDAction getOnSelect()
onSelect is mapped.
The action performed when a tab is selected.
Event parameter is the ID of the selected tab.mappingOfOnSelect()public void setOnSelect(IWDAction action)
onSelect to the given action.action - the action for the eventgetOnSelect()public IWDParameterMapping mappingOfOnSelect()
onSelect.
To be accessible in a view controller, a UI element event parameter has to be mapped to a controller event handler parameter. This is done by defining a parameter mapping.
Event parameters:getOnSelect()public void bindAccessibilityDescription(java.lang.String path)
accessibilityDescription to the context attribute
specified by path.path - the path of the context attribute to which the accessibilityDescription
property is boundpublic void bindAccessibilityDescription(IWDAttributeInfo attributeInfo)
accessibilityDescription to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
accessibilityDescription property is boundpublic java.lang.String bindingOfAccessibilityDescription()
accessibilityDescription.public java.lang.String getAccessibilityDescription()
accessibilityDescription property.
The initial value is "".
Short description for the TabStrip (It's like a title) in the accessibility mode. It is only used if accessibility mode (508) is switched on and will be included into the tooltip. Its read by the screen reader when the whole UI element gets the focus.setAccessibilityDescription(String)public void setAccessibilityDescription(java.lang.String value)
accessibilityDescription to the new value.value - the new value of the accessibilityDescription propertygetAccessibilityDescription()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 the tab strip and its tabs.setHeight(String)public void setHeight(java.lang.String value)
height to the new value.value - the new value of the height propertygetHeight()public void bindSelectedTab(java.lang.String path)
selectedTab to the context attribute
specified by path.path - the path of the context attribute to which the selectedTab
property is boundpublic void bindSelectedTab(IWDAttributeInfo attributeInfo)
selectedTab to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
selectedTab property is boundpublic java.lang.String bindingOfSelectedTab()
selectedTab.public java.lang.String getSelectedTab()
selectedTab property.
The initial value is "".
Contains the ID of the currently selected tab.setSelectedTab(String)public void setSelectedTab(java.lang.String value)
selectedTab to the new value.value - the new value of the selectedTab propertygetSelectedTab()public WDTabAlignment getTabAlignment()
tabAlignment property.
The initial value is WDTabAlignment.FAST.
Determines how each tab's width and height are aligned with the other tabs' widths and heights. BEWARE Forcing a browser based client to make all tabs equally wide and high is extremely inefficient.setTabAlignment(WDTabAlignment)public void setTabAlignment(WDTabAlignment tabAlignment)
tabAlignment to the given value.tabAlignment - the new tabAlignment valuegetTabAlignment()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 the tab strip and its tabs.setWidth(String)public void setWidth(java.lang.String value)
width to the new value.value - the new value of the width propertygetWidth()public void addTab(IWDTab aTab)
aTab - the Tab to be added into the listgetTabs()
public void addTab(IWDTab aTab,
int index)
aTab - the Tab to be added into the listindex - zero based index of the insertion position in the listgetTabs()
public void swapTabs(int i,
int j)
i - index of the first Tab to swapj - index of the second Tab to swapIndexOutOfBoundsException - If one of the indices is out of boundspublic IWDTab[] getTabs()
public IWDTab getTab(int index)
public int indexOfTab(IWDTab aTab)
-1 if it is not contained in the list.public int numberOfTabs()
getTabs()public boolean hasTabs()
true if there are Tabs;
false otherwise.getTabs()public java.util.Iterator iterateTabs()
getTabs()public IWDTab removeTab(int index)
index - zero based index of the deletion position in the listaddTab(IWDTab),
getTabs()public IWDTab removeTab(java.lang.String id)
id - unique ID of the element to be deleted from the listaddTab(IWDTab),
getTabs()public void removeAllTabs()
addTab(IWDTab),
getTabs()public void destroyAllTabs()
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||