|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.control.Control com.cc.framework.ui.control.TabbarControl
TabbarControl
Field Summary | |
private TabsetDataModel |
dataModel
Data model |
private TabsetDesignModel |
designModel
Design model |
private static long |
serialVersionUID
Serial Version UID |
private TabsetStateModel |
stateModel
State model |
Fields inherited from class com.cc.framework.ui.control.Control |
log |
Fields inherited from interface com.cc.framework.ui.model.TabsetStateModel |
PROP_FIRST, PROP_SELECTED |
Fields inherited from interface com.cc.framework.ui.model.StateModel |
PROP_CONTROL |
Constructor Summary | |
TabbarControl()
Constructor |
Method Summary | |
protected TabsetStateModel |
doCreateStatemodel()
Creates the state model for this control instance |
boolean |
filter()
Returns if the filter is activated (default=true). |
java.lang.String |
getAction(TabDesignModel tab)
Returns the associate Action for a TabPage |
Color |
getBgColor()
Returns the Background Color |
DataModel |
getDataModel()
Returns the data model of the Control |
ControlDesignModel |
getDesignModel()
Returns the design model of the control |
java.lang.String |
getFirstVisibleTab()
Returns the first visible TabPage of the tabSet |
ImageMap |
getImageMap()
Returns the ImageMap |
int |
getLabelLength()
Returns the maximal length of the Labels on the TabPages |
int |
getMaxVisible()
Returns the Number of visible TabPages |
java.lang.String |
getSelectedTab()
Returns the current selected TabPage of the tabSet |
StateModel |
getStateModel()
Returns the state model of the control |
TabDesignModel[] |
getTabs()
Returns all tab pages |
TabDesignModel[] |
getVisibleTabs()
Returns all visible tab pages |
boolean |
isOverlapping()
|
boolean |
isSelected(TabDesignModel tab)
Returns if the TabPage is selected |
boolean |
isStacked()
|
void |
onTabClick(ControlRequestContext ctx,
java.lang.String tabId)
The default handler for the onTabClick Event |
void |
onTabScroll(ControlRequestContext ctx,
java.lang.String tabId)
The default handler for the onTabScroll Event |
void |
reset()
Resets the actual state of a control to the initial state |
void |
setDesignModel(TabsetDesignModel designModel)
Sets the DesignModel |
void |
setFirstVisibleTab(java.lang.String first)
Selects the first visible TabPage |
void |
setSelectedTab(java.lang.String selected)
Selects the specified TabPage |
void |
setStateModel(TabsetStateModel stateModel)
Sets the StateModel |
Methods inherited from class com.cc.framework.ui.control.Control |
addButton, allowAjaxRendering, execute, execute, execute, execute, execute, execute, execute, getAction, getAjaxId, getButtons, getControlName, getDesignRules, getFrameworkString, getHandler, getHandlers, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getPrincipal, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getUniqueStyleId, getWidth, isAjaxEnabled, isDisabled, isFormElement, markDirty, onHelp, setAjaxAttribute, setHandler, setPrincipal, setValue, show, showButton, synchronizeState, synchronizeState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cc.framework.ui.model.StateModel |
synchronizeState |
Field Detail |
private static final long serialVersionUID
private TabsetDataModel dataModel
private TabsetDesignModel designModel
private TabsetStateModel stateModel
Constructor Detail |
public TabbarControl()
Method Detail |
protected TabsetStateModel doCreateStatemodel()
public ControlDesignModel getDesignModel()
Control
getDesignModel
in class Control
Control.getDesignModel()
public DataModel getDataModel()
Control
getDataModel
in class Control
Control.getDataModel()
public StateModel getStateModel()
Control
getStateModel
in class Control
Control.getStateModel()
public void setStateModel(TabsetStateModel stateModel)
stateModel
- TabsetStateModelpublic java.lang.String getSelectedTab()
TabsetStateModel
getSelectedTab
in interface TabsetStateModel
TabsetStateModel.getSelectedTab()
public void setSelectedTab(java.lang.String selected)
TabsetStateModel
setSelectedTab
in interface TabsetStateModel
selected
- TabPage to be selectedTabsetStateModel.setSelectedTab(java.lang.String)
public void reset()
StateModel
reset
in interface StateModel
StateModel.reset()
public void setDesignModel(TabsetDesignModel designModel)
designModel
- TabsetDesignModelpublic int getMaxVisible()
public boolean isStacked()
true
when stacked display mode is enabledpublic int getLabelLength()
public boolean isSelected(TabDesignModel tab)
isSelected
in interface TabsetStateModel
tab
- TabDesignModel
public java.lang.String getFirstVisibleTab()
TabsetStateModel
getFirstVisibleTab
in interface TabsetStateModel
null
TabsetStateModel.getFirstVisibleTab()
public void setFirstVisibleTab(java.lang.String first)
TabsetStateModel
setFirstVisibleTab
in interface TabsetStateModel
first
- The first visible TabPageTabsetStateModel.setFirstVisibleTab(java.lang.String)
public boolean filter()
true
if string will be HTML encoded;
false
otherwisepublic TabDesignModel[] getTabs()
public TabDesignModel[] getVisibleTabs()
public Color getBgColor()
public ImageMap getImageMap()
public boolean isOverlapping()
true
when the tabs should be displayed in
overlapping modepublic java.lang.String getAction(TabDesignModel tab)
tab
- TabDesignModel
public void onTabClick(ControlRequestContext ctx, java.lang.String tabId) throws java.lang.Exception
ctx
- ControlRequestContexttabId
- Id of the Tab
java.lang.Exception
- is thrown when an error occurspublic void onTabScroll(ControlRequestContext ctx, java.lang.String tabId) throws java.lang.Exception
ctx
- ControlRequestContexttabId
- Id of the Tab to scroll to
java.lang.Exception
- is thrown when an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |