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
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
-
Method Summary
Modifier and TypeMethodDescriptiongetClazz()
Class attribute of the main tab tag.Get the (HTML) contents of the tab.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.getId()
ID attribute of the main tab tag.getStyle()
Extra CSS style attributes that will be added to thestyle
attribute of the main tab tag.int
Get the tab index used to control focus order when tabbing.getTitle()
Get the title of the tab.A tooltip that is shown as a yellow popup when the user points the mouse at the tab.boolean
If the tab should be visible or not.void
void
setContent
(String content) void
void
void
void
setTabIndex
(int tabIndex) void
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)
-