|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.ui.TabSheet.TabSheetTabImpl
public class TabSheet.TabSheetTabImpl
TabSheet's implementation of TabSheet.Tab - tab metadata.
| Constructor Summary | |
|---|---|
TabSheet.TabSheetTabImpl(java.lang.String key,
java.lang.String caption,
Resource icon)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getCaption()
Returns the tab caption. |
Component |
getComponent()
Get the component related to the Tab |
ErrorMessage |
getComponentError()
Gets the current error message shown for the tab. |
Component.Focusable |
getDefaultFocusComponent()
Get the component that should be automatically focused when the tab is selected. |
java.lang.String |
getDescription()
Gets the description for the tab. |
Resource |
getIcon()
Gets the icon for the tab. |
java.lang.String |
getIconAlternateText()
Gets the icon alt text for the tab. |
java.lang.String |
getId()
Gets currently set debug identifier |
java.lang.String |
getStyleName()
Gets the user-defined CSS style name of the tab. |
protected com.vaadin.shared.ui.tabsheet.TabState |
getTabState()
|
boolean |
isClosable()
Returns the closability status for the tab. |
boolean |
isEnabled()
Returns the enabled status for the tab. |
boolean |
isVisible()
Returns the visible status for the tab. |
void |
setCaption(java.lang.String caption)
Sets the caption for the tab. |
void |
setClosable(boolean closable)
Sets the closability status for the tab. |
void |
setComponentError(ErrorMessage componentError)
Sets an error indicator to be shown in the tab. |
void |
setDefaultFocusComponent(Component.Focusable defaultFocus)
Set the component that should automatically focused when the tab is selected. |
void |
setDescription(java.lang.String description)
Sets the description for the tab. |
void |
setEnabled(boolean enabled)
Sets the enabled status for the tab. |
void |
setIcon(Resource icon)
Sets the icon for the tab. |
void |
setIcon(Resource icon,
java.lang.String iconAltText)
Sets the icon and alt text for the tab. |
void |
setIconAlternateText(java.lang.String iconAltText)
Sets the icon alt text for the tab. |
void |
setId(java.lang.String id)
Adds an unique id for component that is used in the client-side for testing purposes. |
void |
setStyleName(java.lang.String styleName)
Sets a style name for the tab. |
void |
setVisible(boolean visible)
Sets the visible status for the tab. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TabSheet.TabSheetTabImpl(java.lang.String key,
java.lang.String caption,
Resource icon)
| Method Detail |
|---|
public java.lang.String getCaption()
getCaption in interface TabSheet.Tabpublic void setCaption(java.lang.String caption)
TabSheet.Tab
setCaption in interface TabSheet.Tabcaption - the caption to setpublic Resource getIcon()
TabSheet.Tab
getIcon in interface TabSheet.Tabpublic void setIcon(Resource icon)
TabSheet.Tab
setIcon in interface TabSheet.Tabicon - the icon to setpublic java.lang.String getIconAlternateText()
TabSheet.Tab
getIconAlternateText in interface TabSheet.Tabpublic void setIconAlternateText(java.lang.String iconAltText)
TabSheet.Tab
setIconAlternateText in interface TabSheet.TabiconAltText - the icon to setpublic void setDefaultFocusComponent(Component.Focusable defaultFocus)
TabSheet.Tab
setDefaultFocusComponent in interface TabSheet.TabdefaultFocus - the component to focuspublic Component.Focusable getDefaultFocusComponent()
TabSheet.Tab
getDefaultFocusComponent in interface TabSheet.Tabpublic boolean isEnabled()
TabSheet.Tab
isEnabled in interface TabSheet.Tabpublic void setEnabled(boolean enabled)
TabSheet.Tab
setEnabled in interface TabSheet.Tabenabled - true for enabled, false for disabledpublic boolean isVisible()
TabSheet.Tab
isVisible in interface TabSheet.Tabpublic void setVisible(boolean visible)
TabSheet.Tab
setVisible in interface TabSheet.Tabvisible - true for visible, false for hiddenpublic boolean isClosable()
TabSheet.Tab
isClosable in interface TabSheet.Tabpublic void setClosable(boolean closable)
TabSheet.TabNote! Currently only supported by TabSheet, not Accordion.
setClosable in interface TabSheet.Tabclosable - true if the end user is allowed to close the tab, false
for not allowing to close. Should default to false.public java.lang.String getDescription()
TabSheet.Tab
getDescription in interface TabSheet.Tabpublic void setDescription(java.lang.String description)
TabSheet.Tab
setDescription in interface TabSheet.Tabdescription - the new description string for the tab.public ErrorMessage getComponentError()
TabSheet.Tab
getComponentError in interface TabSheet.TabAbstractComponent.setComponentError(ErrorMessage)public void setComponentError(ErrorMessage componentError)
TabSheet.Tab
setComponentError in interface TabSheet.TabcomponentError - error message or null for noneAbstractComponent.setComponentError(ErrorMessage)public Component getComponent()
TabSheet.Tab
getComponent in interface TabSheet.Tabpublic void setStyleName(java.lang.String styleName)
TabSheet.Tab
Tab tab = tabsheet.addTab(tabContent, "Tab text");
tab.setStyleName("mystyle");
The used style name will be prefixed with "
v-tabsheet-tabitemcell-". For example, if you give a tab the
style "mystyle", the tab will get a "
v-tabsheet-tabitemcell-mystyle" style. You could then style
the component with:
.v-tabsheet-tabitemcell-mystyle {font-style: italic;}
This method will trigger a RepaintRequestEvent on the
TabSheet to which the Tab belongs.
setStyleName in interface TabSheet.TabstyleName - the new style to be set for tabTabSheet.Tab.getStyleName()public java.lang.String getStyleName()
TabSheet.Tab
getStyleName in interface TabSheet.TabTabSheet.Tab.setStyleName(String)protected com.vaadin.shared.ui.tabsheet.TabState getTabState()
public void setId(java.lang.String id)
TabSheet.Tab
setId in interface TabSheet.Tabid - An alphanumeric idpublic java.lang.String getId()
TabSheet.Tab
getId in interface TabSheet.Tab
public void setIcon(Resource icon,
java.lang.String iconAltText)
TabSheet.Tab
setIcon in interface TabSheet.Tabicon - the icon to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||