public interface UserServiceTabbedPane extends UserServicePane
tabs
.
More features (like using a documentation pane
in the title or showing
a tab with JavaScript) are available using UserServiceTab
.
UserServiceTab
Modifier and Type | Method and Description |
---|---|
void |
addAllTabs(List<UserServiceTab> tabs)
Adds a list of tabs.
|
void |
addAllTabs(UserServiceTab... tabs)
Writes an array of tabs.
|
void |
addTab(UserServiceTab aTab)
Adds a tab.
|
String |
getId()
Get the id of the pane with tabs.
|
String |
getSelectedTabId()
Returns the selected tab id or
null if none is selected. |
UserServiceTab |
newTab(ObjectKey anObjectKey,
Path aPath)
Creates a new tab containing a standard pane representing
aPath children. |
UserServiceTab |
newTab(String aTitle,
UserServicePane aPane)
Creates a new tab.
|
UserServiceTab |
newTab(UIFormLabelSpec aTitle,
UserServicePane aPane)
Create a new tab.
|
UserServiceTab |
newTab(UserMessage aTitle,
UserServicePane aPane)
Create a new tab.
|
UserServiceTab |
newTab(UserServicePane aPane)
Creates a new tab.
|
List<UserServiceTab> |
newTabsFromPath(ObjectKey anObjectKey,
Path aPath)
Iterates through a path and its children to create a tab for each path
which should be displayed in the tab.
|
void |
selectTab(String aTabId)
Specifies the id of the tab to select when the page is displayed.
|
isPaddingEnabled, writePane
String getId()
String getSelectedTabId()
null
if none is selected.null
if no tab is selected.selectTab(String)
void selectTab(String aTabId)
If no tab has this id, the default tab will be selected.
The default tab can be the first one, if it is the first display of the form, or the last one selected by the user if form was already displayed.
aTabId
- the id of the tab to select.getSelectedTabId()
void addTab(UserServiceTab aTab)
aTab
- the tab.void addAllTabs(List<UserServiceTab> tabs)
tabs
- A list of tabs.void addAllTabs(UserServiceTab... tabs)
tabs
- An array of tabs.UserServiceTab newTab(UserServicePane aPane)
Tab should be added afterward to the tabbed pane thanks to addTab(UserServiceTab)
.
aPane
- the content of the tab.UserServiceTab newTab(String aTitle, UserServicePane aPane)
The tab should be added to the tabbed pane using method addTab(UserServiceTab)
.
aTitle
- the label of the tab.aPane
- the content of the tab.UserServiceTab newTab(UserMessage aTitle, UserServicePane aPane)
The tab should be added to the tabbed pane using method addTab(UserServiceTab)
.
aTitle
- the label of the tab.aPane
- the content of the tab.UserServiceTab newTab(UIFormLabelSpec aTitle, UserServicePane aPane)
The tab should be added to the tabbed pane using method addTab(UserServiceTab)
.
aTitle
- the label of the tab.aPane
- the content of the tab.List<UserServiceTab> newTabsFromPath(ObjectKey anObjectKey, Path aPath)
Root node at aPath
is added in a tab only if it should be displayed in the tab.
The tab should be added to the tabbed pane using method addTab(UserServiceTab)
or addAllTabs(List)
.
anObjectKey
- the key of the object to display.aPath
- a valid path relative to anObjectKey
, must not be
a terminal descendant node.newTab(ObjectKey, Path)
UserServiceTab newTab(ObjectKey anObjectKey, Path aPath)
aPath
children. Children that should display is separate tabs
are ignored.
The tab should be added to the tabbed pane using method addTab(UserServiceTab)
.
anObjectKey
- the key of the object to display.aPath
- a valid path relative to anObjectKey
, must not be
a terminal descendant node.