2.17.2: 2011-06-17

net.sf.basedb.clients.web.extensions.tabcontrol
Class TabBean

java.lang.Object
  extended by net.sf.basedb.clients.web.extensions.tabcontrol.TabBean
All Implemented Interfaces:
TabAction, Action

public class TabBean
extends Object
implements TabAction

A simple bean-like implementation of the TabAction interface.

Since:
2.17
Author:
Nicklas
Last modified
$Date: 2010-11-10 12:16:51 +0100 (Wed, 10 Nov 2010) $

Field Summary
private  String clazz
           
private  String content
           
private  String helpId
           
private  String id
           
private  String onActivate
           
private  String onValidate
           
private  String style
           
private  String title
           
private  String tooltip
           
private  boolean visible
           
 
Constructor Summary
TabBean()
           
 
Method Summary
 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 getOnActivate()
          A javascript action that is executed when activating the tab.
 String getOnValidate()
          A javascript action that is executed when validating form data on the tab.
 String getStyle()
          Extra CSS style attributes that will be added to the style attribute of the main tab tag.
 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 setOnActivate(String onActivate)
           
 void setOnValidate(String onValidate)
           
 void setStyle(String style)
           
 void setTitle(String title)
           
 void setTooltip(String tooltip)
           
 void setVisible(boolean visible)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private String id

clazz

private String clazz

style

private String style

title

private String title

tooltip

private String tooltip

helpId

private String helpId

visible

private boolean visible

onValidate

private String onValidate

onActivate

private String onActivate

content

private String content
Constructor Detail

TabBean

public TabBean()
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.

Specified by:
getId in interface TabAction
Returns:
The ID, or null

getClazz

public String getClazz()
Description copied from interface: TabAction
Class attribute of the main tab tag.

Specified by:
getClazz in interface TabAction
Returns:
Class attribute, or null to not add any class attribute

getStyle

public String getStyle()
Description copied from interface: TabAction
Extra CSS style attributes that will be added to the style attribute of the main tab tag.

Specified by:
getStyle in interface TabAction
Returns:
Style attributes, or null

getTitle

public String getTitle()
Description copied from interface: TabAction
Get the title of the tab.

Specified by:
getTitle in interface TabAction

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 interface TabAction
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. See Help.getExternalId().

Specified by:
getHelpId in interface TabAction
Returns:
The help id or null to not display any help

isVisible

public boolean isVisible()
Description copied from interface: TabAction
If the tab should be visible or not.

Specified by:
isVisible in interface TabAction

getOnValidate

public String getOnValidate()
Description copied from interface: TabAction
A javascript action that is executed when validating form data on the tab. This script is executed when the user is trying to save the form, or when navigating to another tab. The script should return TRUE to indicate successful validation, or display an error message and return FALSE otherwise.

Specified by:
getOnValidate in interface TabAction
Returns:
The javascript action or null if no validation is needed

getOnActivate

public String getOnActivate()
Description copied from interface: TabAction
A javascript action that is executed when activating the tab.

Specified by:
getOnActivate in interface TabAction
Returns:
The javascript action or null if no validation is needed

getContent

public String getContent()
Description copied from interface: TabAction
Get the (HTML) contents of the tab.

Specified by:
getContent in interface TabAction

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)

setOnValidate

public void setOnValidate(String onValidate)

setOnActivate

public void setOnActivate(String onActivate)

setContent

public void setContent(String content)

2.17.2: 2011-06-17