Package com.cmobilecom.af.model.view
Class TabView
- java.lang.Object
-
- com.cmobilecom.af.model.view.Widget
-
- com.cmobilecom.af.model.view.TabViewBase
-
- com.cmobilecom.af.model.view.TabView
-
- All Implemented Interfaces:
java.io.Serializable
public class TabView extends TabViewBase
TabView configuration for entityBackingBean properties. One tab for each property.- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getActiveIndex()
Get active tab index.java.lang.String
getEffect()
Get tab switch effect that can be fade, slide, blind, clip, drop, explode, fold, puff, or scale.java.lang.String
getEffectDuration()
Get the duration of tab switch: slow, normal, or fast.java.lang.String
getOrientation()
Get tab orientation: top, bottom, left or right.java.lang.String
getStyleClass()
Get the style class of this TabView in addition to default style classes.java.lang.String
getWidgetVar()
Get the name of the widgetVar that is the client side object of this TabView.boolean
isTabClosable()
Whether a tab can be closed?void
setActiveIndex(int activeIndex)
Set active tab index.void
setEffect(java.lang.String effect)
Set tab switch effect that can be fade, slide, blind, clip, drop, explode, fold, puff, or scale.void
setEffectDuration(java.lang.String effectDuration)
Set the duration of tab switch: slow, normal, or fast.void
setOrientation(java.lang.String orientation)
Set tab orientation.void
setStyleClass(java.lang.String styleClass)
Set style class of this TabView in addition to default style classes.void
setTabClosable(boolean tabClosable)
Set whether a tab can be closed.void
setWidgetVar(java.lang.String widgetVar)
Set the name of the widgetVar that is the client side object of this TabView.-
Methods inherited from class com.cmobilecom.af.model.view.TabViewBase
getOnTabChange, getOnTabShow, getTabTitleStyleClass, isCache, isDynamic, parseElement, setCache, setDynamic, setOnTabChange, setOnTabShow, setTabTitleStyleClass
-
-
-
-
Constructor Detail
-
TabView
public TabView()
Default constructor.Not dynamic and cache tabs on client. orientation is top, active index is 0, and tabClosable is false.
-
TabView
protected TabView(boolean dynamic, boolean cache)
Constructor. orientation is top, active index is 0, and tabClosable is false.- Parameters:
dynamic
- whether to load tabs on demandcache
- whether to cache tabs on client
-
TabView
public TabView(TabView tabView)
Copy constructor- Parameters:
tabView
- the tabView to copy from- Since:
- 5.8
-
-
Method Detail
-
getOrientation
public java.lang.String getOrientation()
Get tab orientation: top, bottom, left or right. default is top.- Returns:
- orientation
-
setOrientation
public void setOrientation(java.lang.String orientation)
Set tab orientation.- Parameters:
orientation
- top, bottom, left or right.
-
getEffect
public java.lang.String getEffect()
Get tab switch effect that can be fade, slide, blind, clip, drop, explode, fold, puff, or scale. default is null.- Returns:
- effect name
-
setEffect
public void setEffect(java.lang.String effect)
Set tab switch effect that can be fade, slide, blind, clip, drop, explode, fold, puff, or scale. default is null.- Parameters:
effect
- effect name
-
getEffectDuration
public java.lang.String getEffectDuration()
Get the duration of tab switch: slow, normal, or fast. default is normal.- Returns:
- duration of tab switch
-
setEffectDuration
public void setEffectDuration(java.lang.String effectDuration)
Set the duration of tab switch: slow, normal, or fast. default is normal.- Parameters:
effectDuration
- the duration of tab switch
-
getStyleClass
public java.lang.String getStyleClass()
Get the style class of this TabView in addition to default style classes.- Returns:
- style class
-
setStyleClass
public void setStyleClass(java.lang.String styleClass)
Set style class of this TabView in addition to default style classes.- Parameters:
styleClass
- style class
-
getActiveIndex
public int getActiveIndex()
Get active tab index. Only one tab is active.- Returns:
- active tab index
-
setActiveIndex
public void setActiveIndex(int activeIndex)
Set active tab index. Only one tab is active.- Parameters:
activeIndex
- active tab index
-
isTabClosable
public boolean isTabClosable()
Whether a tab can be closed?- Returns:
- true if closable
-
setTabClosable
public void setTabClosable(boolean tabClosable)
Set whether a tab can be closed.- Parameters:
tabClosable
- true if closable
-
getWidgetVar
public java.lang.String getWidgetVar()
Get the name of the widgetVar that is the client side object of this TabView.- Returns:
- widgetVar name
-
setWidgetVar
public void setWidgetVar(java.lang.String widgetVar)
Set the name of the widgetVar that is the client side object of this TabView.- Parameters:
widgetVar
- widgetVar name
-
-