|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro PatternTabStrip API. PatternTabStrip is used to display a set of data organized in tabs. One tab at a time may be selected and its content be displayed. A tab is selected by clicking its title. If not all tabs can be displayed, scrolling between the tabs is possible. The PatternTabStrip combines Tray funktionality with a TabStrip. The PatternTabStrip can contain a Menu and several PatternExpandFunction elements (for open/close buttons).
This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!
IWDPatternExpandFunction,
IWDPatternTab| Field Summary | |
static int |
DEFAULT_MAX_VISIBLE_TABS
Default value of property maxVisibleTabs. |
static java.lang.String |
DEFAULT_SELECTED_TAB
Default value of property selectedTab. |
| Fields inherited from interface com.sap.tc.webdynpro.clientserver.uielib.pattern.api.IWDAbstractPatternContainer |
DEFAULT_ACCESSIBILITY_DESCRIPTION, DEFAULT_DESIGN, DEFAULT_HAS_CONTENT_CONNECTOR |
| Fields inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
DEFAULT_ENABLED, DEFAULT_TOOLTIP, DEFAULT_VISIBLE |
| Method Summary | |
void |
addTab(IWDPatternTab aPatternTab)
Adds the given Tab at the end of the list of Tabs. |
void |
addTab(IWDPatternTab aPatternTab,
int index)
Adds the given Tab at the specified index in the list of Tabs. |
java.lang.String |
bindingOfMaxVisibleTabs()
Binding path of property maxVisibleTabs. |
java.lang.String |
bindingOfSelectedTab()
Binding path of property selectedTab. |
void |
bindMaxVisibleTabs(IWDAttributeInfo attributeInfo)
Binds property maxVisibleTabs to the context attribute
specified by the given attribute info. |
void |
bindMaxVisibleTabs(java.lang.String path)
Binds property maxVisibleTabs to the context attribute
specified by path. |
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 |
destroyAllTabs()
Destroys all entries in the list of Tabs. |
int |
getMaxVisibleTabs()
Returns the value of the maxVisibleTabs property. |
IWDAction |
getOnSelect()
Returns the action to which the event onSelect is mapped. |
java.lang.String |
getSelectedTab()
Returns the value of the selectedTab property. |
IWDPatternTab |
getTab(int index)
Returns the Tab at the given index. |
IWDPatternTab[] |
getTabs()
Returns the list of Tabs. |
boolean |
hasTabs()
Checks if there exist Tabs. |
int |
indexOfTab(IWDPatternTab aPatternTab)
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. |
IWDPatternTab |
removeTab(int index)
Removes the entry at the given index from the list of Tabs. |
IWDPatternTab |
removeTab(java.lang.String id)
Removes the entry with the given ID from the list of Tabs. |
void |
setMaxVisibleTabs(int value)
Sets property maxVisibleTabs 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 |
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 int DEFAULT_MAX_VISIBLE_TABS
maxVisibleTabs.public static final java.lang.String DEFAULT_SELECTED_TAB
selectedTab.| Method Detail |
public IWDAction getOnSelect()
onSelect is mapped.
The action performed when a PatternTab is selected.
Event parameter is the ID of the selected PatternTab.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 bindMaxVisibleTabs(java.lang.String path)
maxVisibleTabs to the context attribute
specified by path.path - the path of the context attribute to which the maxVisibleTabs
property is boundpublic void bindMaxVisibleTabs(IWDAttributeInfo attributeInfo)
maxVisibleTabs to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
maxVisibleTabs property is boundpublic java.lang.String bindingOfMaxVisibleTabs()
maxVisibleTabs.public int getMaxVisibleTabs()
maxVisibleTabs property.
The initial value is 7.
Sets the maximum number of visible items for the PatternTab control. If the PatternTabStrip contains more PatternTabs scrolling between PatternTabs is enabled.setMaxVisibleTabs(int)public void setMaxVisibleTabs(int value)
maxVisibleTabs to the new value.value - the new value of the maxVisibleTabs propertygetMaxVisibleTabs()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 PatternTab.setSelectedTab(String)public void setSelectedTab(java.lang.String value)
selectedTab to the new value.value - the new value of the selectedTab propertygetSelectedTab()public void addTab(IWDPatternTab aPatternTab)
aPatternTab - the Tab to be added into the listgetTabs()
public void addTab(IWDPatternTab aPatternTab,
int index)
aPatternTab - 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 IWDPatternTab[] getTabs()
public IWDPatternTab getTab(int index)
public int indexOfTab(IWDPatternTab aPatternTab)
-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 IWDPatternTab removeTab(int index)
index - zero based index of the deletion position in the listaddTab(IWDPatternTab),
getTabs()public IWDPatternTab removeTab(java.lang.String id)
id - unique ID of the element to be deleted from the listaddTab(IWDPatternTab),
getTabs()public void removeAllTabs()
addTab(IWDPatternTab),
getTabs()public void destroyAllTabs()
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||