Class TabBean
- java.lang.Object
-
- net.sf.basedb.clients.web.extensions.DynamicActionAttributeSupport
-
- net.sf.basedb.clients.web.extensions.tabcontrol.TabBean
-
- All Implemented Interfaces:
DynamicActionAttributes
,TabAction
,Action
public class TabBean extends DynamicActionAttributeSupport implements TabAction
A simple bean-like implementation of the TabAction interface.- Since:
- 2.17
- Author:
- Nicklas
- Last modified
- $Date: 2014-12-09 12:56:20 +0100 (ti, 09 dec 2014) $
-
-
Constructor Summary
Constructors Constructor Description TabBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClazz()
Class attribute of the main tab tag.String
getContent()
Get the (HTML) contents of the tab.String
getHelpId()
The external id of a help text that the user can display to get more information about how to use the information in this tab.String
getId()
ID attribute of the main tab tag.String
getStyle()
Extra CSS style attributes that will be added to thestyle
attribute of the main tab tag.int
getTabIndex()
Get the tab index used to control focus order when tabbing.String
getTitle()
Get the title of the tab.String
getTooltip()
A tooltip that is shown as a yellow popup when the user points the mouse at the tab.boolean
isVisible()
If the tab should be visible or not.void
setClazz(String clazz)
void
setContent(String content)
void
setHelpId(String helpId)
void
setId(String id)
void
setStyle(String style)
void
setTabIndex(int tabIndex)
void
setTitle(String title)
void
setTooltip(String tooltip)
void
setVisible(boolean visible)
-
Methods inherited from class net.sf.basedb.clients.web.extensions.DynamicActionAttributeSupport
addAttributes, getAttributesString, getDynamicActionAttributes, setDynamicActionAttributesSource
-
-
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:TabAction
ID attribute of the main tab tag. You need to set this value to reference the tab in a javascript.
-
getClazz
public String getClazz()
Description copied from interface:TabAction
Class attribute of the main tab tag.
-
getStyle
public String getStyle()
Description copied from interface:TabAction
Extra CSS style attributes that will be added to thestyle
attribute of the main tab tag.
-
getTitle
public String getTitle()
Description copied from interface:TabAction
Get the title of the tab.
-
getTooltip
public String getTooltip()
Description copied from interface:TabAction
A tooltip that is shown as a yellow popup when the user points the mouse at the tab.- Specified by:
getTooltip
in interfaceTabAction
- Returns:
- The tooltip or null to not display any tooltip
-
getHelpId
public String getHelpId()
Description copied from interface:TabAction
The external id of a help text that the user can display to get more information about how to use the information in this tab. SeeHelp.getExternalId()
.
-
isVisible
public boolean isVisible()
Description copied from interface:TabAction
If the tab should be visible or not.
-
getContent
public String getContent()
Description copied from interface:TabAction
Get the (HTML) contents of the tab.- Specified by:
getContent
in interfaceTabAction
-
getTabIndex
public int getTabIndex()
Description copied from interface:TabAction
Get the tab index used to control focus order when tabbing. Use -1 to disable.- Specified by:
getTabIndex
in interfaceTabAction
-
setId
public void setId(String id)
-
setClazz
public void setClazz(String clazz)
-
setStyle
public void setStyle(String style)
-
setTitle
public void setTitle(String title)
-
setTooltip
public void setTooltip(String tooltip)
-
setVisible
public void setVisible(boolean visible)
-
setHelpId
public void setHelpId(String helpId)
-
setContent
public void setContent(String content)
-
setTabIndex
public void setTabIndex(int tabIndex)
-
-