Interface UserServiceTab
-
public interface UserServiceTabA tab in a tabbed pane. The tab has a title text represented by aUIFormLabelSpecand thus can have aUIFormLabelSpec.DocumentationPane.It is designed to be created and added by a
UserServiceTabbedPane.The
idcan be get, and be used tohideorshowa tab via JavaScript. The initial hiding statecan be set.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetId()Returns the id previously defined, ornull.UserServicePanegetPane()Returns the pane associated with this tab.UIFormLabelSpecgetTitle()Returns the label specification for title of the tab.booleanisInitiallyHidden()Returns the initially hidden mode for this tab.voidsetId(String anId)Sets an id for the tab.voidsetInitiallyHidden(boolean isHidden)Sets the initially hidden mode for this tab.voidsetPane(UserServicePane aPane)Returns the pane associated with this tab.voidsetTitle(UserMessage aTitle)Sets the tab's localized title.voidsetTitle(UIFormLabelSpec aTitle)Sets the tab's localized title.voidsetTitle(String aTitle)Sets the tab's title.
-
-
-
Method Detail
-
getId
String getId()
Returns the id previously defined, ornull.- Returns:
- The id previously defined, or
null
-
setId
void setId(String anId)
Sets an id for the tab.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.
- Parameters:
anId- the id to set for the tab. The id attribute must respect the W3C Recommendation (in particular, by being unique in the page).- See Also:
- https://www.w3.org/TR/REC-html40/struct/global.html#adef-id
-
getTitle
UIFormLabelSpec getTitle()
Returns the label specification for title of the tab.- Returns:
- the title of the or
nullif not defined.
-
setTitle
void setTitle(String aTitle)
Sets the tab's title.- Parameters:
aTitle- the title.
-
setTitle
void setTitle(UserMessage aTitle)
Sets the tab's localized title.- Parameters:
aTitle- the title.
-
setTitle
void setTitle(UIFormLabelSpec aTitle)
Sets the tab's localized title.- Parameters:
aTitle- the title.
-
isInitiallyHidden
boolean isInitiallyHidden()
Returns the initially hidden mode for this tab.- Returns:
trueif this tab is initially hidden orfalseif this tab is initially displayed.- See Also:
setInitiallyHidden(boolean)
-
setInitiallyHidden
void setInitiallyHidden(boolean isHidden)
Sets the initially hidden mode for this tab.The tab can be shown or hidden by a JavaScript function using the tab id.
- Parameters:
isHidden- true if the tab is initially hidden.- See Also:
UIFormWriter.addJS_hideTab(String),UIFormWriter.addJS_showTab(String)
-
getPane
UserServicePane getPane()
Returns the pane associated with this tab.- Returns:
- the pane.
-
setPane
void setPane(UserServicePane aPane)
Returns the pane associated with this tab.- Parameters:
aPane- the new pane for this tab, cannot be null.
-
-