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) $
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TabBean()
-
Method Summary
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, setDynamicAttribute
-
Field Details
-
id
-
clazz
-
style
-
title
-
tooltip
-
helpId
-
visible
private boolean visible -
-
tabIndex
private int tabIndex
-
-
Constructor Details
-
TabBean
public TabBean()
-
-
Method Details
-
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
Description copied from interface:TabAction
Class attribute of the main tab tag. -
getStyle
Description copied from interface:TabAction
Extra CSS style attributes that will be added to thestyle
attribute of the main tab tag. -
getTitle
Description copied from interface:TabAction
Get the title of the tab. -
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
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
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
-
setClazz
-
setStyle
-
setTitle
-
setTooltip
-
setVisible
public void setVisible(boolean visible) -
setHelpId
-
setContent
-
setTabIndex
public void setTabIndex(int tabIndex)
-