|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.control.Control
com.cc.framework.ui.control.CrumbsControl
TabbarControl
| Field Summary | |
private CrumbsDataModel |
dataModel
Data model |
private CrumbsDesignModel |
designModel
Design model |
private static long |
serialVersionUID
Serial Version UID |
private CrumbsStateModel |
stateModel
Design model |
| Fields inherited from class com.cc.framework.ui.control.Control |
log |
| Fields inherited from interface com.cc.framework.ui.model.CrumbsStateModel |
PROP_SELECTED |
| Fields inherited from interface com.cc.framework.ui.model.StateModel |
PROP_CONTROL |
| Constructor Summary | |
CrumbsControl()
Constructor |
|
| Method Summary | |
protected CrumbsStateModel |
doCreateStatemodel()
Creates the state model for this control instance |
boolean |
filter()
Returns if the filter is activated (default=true). |
java.lang.String |
getAction(CrumbModel crumb)
Returns the associated Action for a TabPage |
CrumbModel[] |
getCrumbs()
Returns all tab pages |
DataModel |
getDataModel()
Returns the data model of the Control |
ControlDesignModel |
getDesignModel()
Returns the design model of the control |
ImageMap |
getImageMap()
Returns the ImageMap |
int |
getLabelLength()
Returns the maximal length of the Labels on the TabPages |
java.lang.String |
getSelectedCrumb()
Returns the current selected crumb |
StateModel |
getStateModel()
Returns the state model of the control |
CrumbModel[] |
getVisibleCrumbs()
Returns all visible crumbs |
boolean |
isSelected(CrumbModel crumb)
Returns true if the crumb is selected |
void |
onCrumbClick(ControlRequestContext ctx,
java.lang.String crumb)
The default handler for the onCrumbClick Event |
void |
reset()
Resets the actual state of a control to the initial state |
void |
setDataModel(CrumbsDataModel dataModel)
Sets the data model |
void |
setDesignModel(CrumbsDesignModel designModel)
Sets the DesignModel |
void |
setSelectedCrumb(java.lang.String selected)
Selects the specified crumb |
void |
setStateModel(CrumbsStateModel 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 CrumbsDataModel dataModel
private CrumbsDesignModel designModel
private CrumbsStateModel stateModel
| Constructor Detail |
public CrumbsControl()
| Method Detail |
protected CrumbsStateModel doCreateStatemodel()
public ControlDesignModel getDesignModel()
Control
getDesignModel in class ControlControl.getDesignModel()public DataModel getDataModel()
Control
getDataModel in class ControlControl.getDataModel()public void setDataModel(CrumbsDataModel dataModel)
dataModel - DataModelpublic StateModel getStateModel()
Control
getStateModel in class ControlControl.getStateModel()public void setStateModel(CrumbsStateModel stateModel)
stateModel - CrumbsStateModelpublic void setDesignModel(CrumbsDesignModel designModel)
designModel - TabsetDesignModelpublic int getLabelLength()
public boolean filter()
true if string will be HTML encoded;
false otherwisepublic CrumbModel[] getCrumbs()
public CrumbModel[] getVisibleCrumbs()
public java.lang.String getSelectedCrumb()
CrumbsStateModel
getSelectedCrumb in interface CrumbsStateModelCrumbsStateModel.getSelectedCrumb()public void setSelectedCrumb(java.lang.String selected)
CrumbsStateModel
setSelectedCrumb in interface CrumbsStateModelselected - crumb to be selectedCrumbsStateModel.setSelectedCrumb(java.lang.String)public void reset()
StateModel
reset in interface StateModelStateModel.reset()public boolean isSelected(CrumbModel crumb)
true if the crumb is selected
isSelected in interface CrumbsStateModelcrumb - CrumbDesignModel
public ImageMap getImageMap()
public java.lang.String getAction(CrumbModel crumb)
crumb - CrumbDesignModel
public void onCrumbClick(ControlRequestContext ctx,
java.lang.String crumb)
throws java.lang.Exception
ctx - ControlRequestContextcrumb - Id of the Crumb
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 | ||||||||||