| org.araneaframework.uilib.tab.TabContainerContext
All known Subclasses: org.araneaframework.uilib.tab.TabContainerWidget,
TabContainerContext | public interface TabContainerContext extends Serializable(Code) | | This context represents interface of tab management component.
author: Taimo Peelo (taimo@araneaframework.org) since: 1.1 |
addTab | void addTab(String id, String labelId, Widget contentWidget)(Code) | | Adds the stateful tab with specified identifier.
Parameters: id - tab identifier Parameters: labelId - key to resource text to be used as tab label Parameters: contentWidget - tab's content widget |
addTab | void addTab(String id, Widget labelWidget, Widget contentWidget)(Code) | | Adds the stateful tab with specified identifier.
Parameters: id - tab identifier Parameters: labelWidget - tab's label widget Parameters: contentWidget - tab's content widget |
addTab | void addTab(String id, String labelId, WidgetFactory contentWidgetFactory)(Code) | | Adds the stateless (content widget is destroyed when tab is deselected) tab with specified identifier.
Parameters: id - tab identifier Parameters: labelId - key to resource text to be used as tab label Parameters: contentWidgetFactory - WidgetFactory that produces tab's contents. |
addTab | void addTab(String id, Widget labelWidget, WidgetFactory contentWidgetFactory)(Code) | | Adds the stateless (content widget is destroyed when tab is deselected) tab with specified identifier.
Parameters: id - tab identifier Parameters: labelWidget - tab's label widget Parameters: contentWidgetFactory - |
disableTab | boolean disableTab(String id)(Code) | | Disables the tab with given id—the label be shown but tab cannot be
selected before it is enabled again.
whether tab with given id existed |
enableTab | boolean enableTab(String id)(Code) | | Enables the tab with id that previously was disabled.
whether tab with given id existed |
getSelectedTab | Widget getSelectedTab()(Code) | | Returns the currently selected tab as a widget. Widget's type is implementation specific,
as a rule it cannot be expected to be of the same type as added tab's content widget.
|
getTabs | Map getTabs()(Code) | | Returns all the tabs present in this
TabContainerContext . Keys in the map are tab
identifiers, values are implementation dependent structures that hold tab information.
Returned Map must be unmodifiable.
|
isTabSelected | boolean isTabSelected(String id)(Code) | | Returns whether specified tab is currently active (selected).
whether specified tab is currently active (selected). |
removeTab | boolean removeTab(String id)(Code) | | Removes tab with given id.
whether the tab existed and was really removed |
selectTab | boolean selectTab(String id)(Code) | | Switches selected tab to one identified by id
whether tab with given id existed |
|
|