|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TabContainerContext
This context represents interface of tab management component.
| Nested Class Summary | |
|---|---|
static interface |
TabContainerContext.TabSwitchListener
An interface for tab switch listeners. |
| Method Summary | |
|---|---|
void |
addTab(String id,
String labelId,
Widget contentWidget)
Adds the stateful tab with specified identifier. |
void |
addTab(String id,
String labelId,
WidgetFactory contentWidgetFactory)
Adds the stateless (content widget is destroyed when tab is deselected) tab with specified identifier. |
void |
addTab(String id,
Widget labelWidget,
Widget contentWidget)
Adds the stateful tab with specified identifier. |
void |
addTab(String id,
Widget labelWidget,
WidgetFactory contentWidgetFactory)
Adds the stateless (content widget is destroyed when tab is deselected) tab with specified identifier. |
boolean |
disableTab(String id)
Disables the tab with given id — the label be shown but tab cannot be selected before it is enabled again. |
boolean |
enableTab(String id)
Enables the tab with the id that previously was disabled. |
TabContext |
getSelectedTab()
Returns the currently selected tab widget, which is the container for the widget that was added using the addTab(..) method. |
Map |
getTabs()
Returns all the tabs present in this TabContainerContext. |
TabContainerContext.TabSwitchListener |
getTabSwitchListener()
Returns the current listener for tab switch events. |
boolean |
isTabSelected(String id)
Specifies whether the specified tab is currently active (selected). |
boolean |
removeTab(String id)
Removes tab with given id. |
boolean |
selectTab(String id)
Switches selected tab to one identified by id. |
void |
setTabSwitchListener(TabContainerContext.TabSwitchListener tabSwitchListener)
Sets the listener for tab switch events. |
| Method Detail |
|---|
void addTab(String id,
String labelId,
Widget contentWidget)
id - tab identifierlabelId - key to resource text to be used as tab labelcontentWidget - tab's content widget
void addTab(String id,
Widget labelWidget,
Widget contentWidget)
id - tab identifierlabelWidget - tab's label widgetcontentWidget - tab's content widget
void addTab(String id,
String labelId,
WidgetFactory contentWidgetFactory)
id - tab identifierlabelId - key to resource text to be used as tab labelcontentWidgetFactory - WidgetFactory that produces tab's
contents.
void addTab(String id,
Widget labelWidget,
WidgetFactory contentWidgetFactory)
id - tab identifierlabelWidget - tab's label widgetcontentWidgetFactory - boolean removeTab(String id)
boolean disableTab(String id)
boolean enableTab(String id)
boolean selectTab(String id)
boolean isTabSelected(String id)
TabContext getSelectedTab()
addTab(..) method.
TabContext.Map getTabs()
TabContainerContext. Keys in
the map are tab identifiers, values are implementation dependent structures
that hold tab information. Returned Map must be
unmodifiable.
void setTabSwitchListener(TabContainerContext.TabSwitchListener tabSwitchListener)
tabSwitchListener parameter cannot be
null. Tab switch occurs when the currently
selected tab changes.
tabSwitchListener - A listener for listening tab switch events.TabContainerContext.TabSwitchListener getTabSwitchListener()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||