public interface UserServiceTab
UIFormLabelSpec
and thus can have a UIFormLabelSpec.DocumentationPane
.
It is designed to be created and added by a UserServiceTabbedPane
.
The id
can be get,
and be used to hide
or show
a tab via JavaScript.
The initial hiding state can be set
.
Modifier and Type | Method and Description |
---|---|
String |
getId()
Returns the id previously defined, or
null . |
UserServicePane |
getPane()
Returns the pane associated with this tab.
|
UIFormLabelSpec |
getTitle()
Returns the label specification for title of the tab.
|
boolean |
isInitiallyHidden()
Returns the initially hidden mode for this tab.
|
void |
setId(String anId)
Sets an id for the tab.
|
void |
setInitiallyHidden(boolean isHidden)
Sets the initially hidden mode for this tab.
|
void |
setPane(UserServicePane aPane)
Returns the pane associated with this tab.
|
void |
setTitle(String aTitle)
Sets the tab's title.
|
void |
setTitle(UIFormLabelSpec aTitle)
Sets the tab's localized title.
|
void |
setTitle(UserMessage aTitle)
Sets the tab's localized title.
|
String getId()
null
.null
void setId(String anId)
When tabs in a tabbed pane are dynamic (that is, their display depends on the record state), it is recommended to invoke this method with a stable identifier, to ensure the tab selection remains the same if the page is redisplayed after a page submit.
anId
- the id to set for the tab. The id attribute must respect the W3C Recommendation
(in particular, by being unique in the page).UIFormLabelSpec getTitle()
null
if not defined.void setTitle(String aTitle)
aTitle
- the title.void setTitle(UserMessage aTitle)
aTitle
- the title.void setTitle(UIFormLabelSpec aTitle)
aTitle
- the title.boolean isInitiallyHidden()
true
if this tab is initially hidden or
false
if this tab is initially displayed.setInitiallyHidden(boolean)
void setInitiallyHidden(boolean isHidden)
The tab can be shown or hidden by a JavaScript function using the tab id.
isHidden
- true if the tab is initially hidden.UIFormWriter.addJS_hideTab(String)
,
UIFormWriter.addJS_showTab(String)
UserServicePane getPane()
void setPane(UserServicePane aPane)
aPane
- the new pane for this tab, cannot be null.