org.richfaces.model
Class Tab

java.lang.Object
  extended by org.richfaces.model.Tab
All Implemented Interfaces:
TabModel

public class Tab
extends java.lang.Object
implements TabModel

Tab model bean represent a single tab in list of tabs for panel.

Version:
$Revision: 1.3 $ $Date: 2007/02/21 20:35:05 $
Author:
shura (latest modification by $Author: ishabalov $)

Constructor Summary
Tab()
          No-argument constructor for JavaBean contract.
Tab(java.lang.Object value)
           
Tab(java.lang.Object value, java.lang.String label, boolean disabled, java.lang.String labelWidth, java.lang.String title)
           
 
Method Summary
 java.lang.String getLabel()
          Get label for this tab.
 java.lang.String getLabelWidth()
          Get width of label for this tab.
 java.lang.Object getName()
          Get Get internal value for this tab - to store in selectedTab attribute of UITabPanelPane.
 java.lang.String getSwitchType()
          Get Tab selection behavior for panel - one of "client", "server", "ajax", "page".
 java.lang.String getTitle()
          Get Tab title - for pop-up message.
 boolean isDisabled()
           
 void setDisabled(boolean disabled)
           
 void setLabel(java.lang.String label)
          Set label for this tab.
 void setLabelWidth(java.lang.String labelWidth)
          Set width of label for this tab.
 void setName(java.lang.Object value)
          Set Get internal value for this tab - to store in selectedTab attribute of UITabPanelPane.
 void setSwitchType(java.lang.String switchType)
          Set Tab selection behavior for panel - one of "client", "server", "ajax", "page".
 void setTitle(java.lang.String newvalue)
          Set Tab title - for pop-up message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tab

public Tab()
No-argument constructor for JavaBean contract.


Tab

public Tab(java.lang.Object value)

Tab

public Tab(java.lang.Object value,
           java.lang.String label,
           boolean disabled,
           java.lang.String labelWidth,
           java.lang.String title)
Parameters:
value -
label -
disabled -
labelWidth -
title -
Method Detail

isDisabled

public boolean isDisabled()
Specified by:
isDisabled in interface TabModel
Returns:
Returns the disabled.

setDisabled

public void setDisabled(boolean disabled)
Specified by:
setDisabled in interface TabModel
Parameters:
disabled - The disabled to set.

getLabel

public java.lang.String getLabel()
Description copied from interface: TabModel
Get label for this tab.

Specified by:
getLabel in interface TabModel
Returns:
Returns the label.

setLabel

public void setLabel(java.lang.String label)
Description copied from interface: TabModel
Set label for this tab.

Specified by:
setLabel in interface TabModel
Parameters:
label - The label to set.

getLabelWidth

public java.lang.String getLabelWidth()
Description copied from interface: TabModel
Get width of label for this tab.

Specified by:
getLabelWidth in interface TabModel
Returns:
Returns the labelWidth.

setLabelWidth

public void setLabelWidth(java.lang.String labelWidth)
Description copied from interface: TabModel
Set width of label for this tab.

Specified by:
setLabelWidth in interface TabModel
Parameters:
labelWidth - The labelWidth to set.

getName

public java.lang.Object getName()
Description copied from interface: TabModel
Get Get internal value for this tab - to store in selectedTab attribute of UITabPanelPane. by default, if no tabValue set, as it's value used ordered number of this tab in panel.

Specified by:
getName in interface TabModel
Returns:
Returns the value.

setName

public void setName(java.lang.Object value)
Description copied from interface: TabModel
Set Get internal value for this tab - to store in selectedTab attribute of UITabPanelPane.

Specified by:
setName in interface TabModel
Parameters:
value - The value to set.

getSwitchType

public java.lang.String getSwitchType()
Description copied from interface: TabModel
Get Tab selection behavior for panel - one of "client", "server", "ajax", "page".

Specified by:
getSwitchType in interface TabModel
Returns:
Returns the switchType.

setSwitchType

public void setSwitchType(java.lang.String switchType)
Description copied from interface: TabModel
Set Tab selection behavior for panel - one of "client", "server", "ajax", "page".

Specified by:
setSwitchType in interface TabModel
Parameters:
switchType - The switchType to set.

getTitle

public java.lang.String getTitle()
Description copied from interface: TabModel
Get Tab title - for pop-up message.

Specified by:
getTitle in interface TabModel
Returns:
Returns the title.

setTitle

public void setTitle(java.lang.String newvalue)
Description copied from interface: TabModel
Set Tab title - for pop-up message.

Specified by:
setTitle in interface TabModel
Parameters:
title - The title to set.


Copyright © 2007. All Rights Reserved.