|
|||||||||||
| 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.CheckboxControl
The Checkbox control
| Field Summary | |
private java.lang.Boolean |
checked
The check state |
private CheckboxDesignModel |
designModel
DesignModel for the control |
private static long |
serialVersionUID
Serial Version UID |
| Fields inherited from class com.cc.framework.ui.control.Control |
log |
| Fields inherited from interface com.cc.framework.ui.model.StateModel |
PROP_CONTROL |
| Constructor Summary | |
CheckboxControl()
Constructor |
|
CheckboxControl(CheckboxDesignModel designModel)
Constructor |
|
| Method Summary | |
DataModel |
getDataModel()
Returns the data model of the Control |
ControlDesignModel |
getDesignModel()
Returns the design model of the control |
StateModel |
getStateModel()
Returns the state model of the control |
java.lang.String |
getValue()
Returns the value |
java.lang.Boolean |
isChecked()
Returns if the checkbox is selected |
void |
reset()
Resets the actual state of a control to the initial state |
void |
setChecked(java.lang.Boolean checked)
Indicates that this option is selected. |
void |
setDesignModel(CheckboxDesignModel designModel)
Sets the design model |
void |
setValue(RequestContext ctx,
ControlValuePath path,
java.lang.String[] values)
The values "on" or "off" are passed in by the HTTP-Request |
| 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, 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 CheckboxDesignModel designModel
private java.lang.Boolean checked
| Constructor Detail |
public CheckboxControl()
public CheckboxControl(CheckboxDesignModel designModel)
designModel - CheckboxDesignModel| Method Detail |
public DataModel getDataModel()
Control
getDataModel in class ControlControl.getDataModel()public void setDesignModel(CheckboxDesignModel designModel)
designModel - The design modelpublic ControlDesignModel getDesignModel()
Control
getDesignModel in class ControlControl.getDesignModel()public StateModel getStateModel()
Control
getStateModel in class ControlControl.getStateModel()public void reset()
StateModel
reset in interface StateModelStateModel.reset()public java.lang.Boolean isChecked()
CheckboxDataModel
isChecked in interface CheckboxDataModeltrue if selected, false otherwise.CheckboxDataModel.isChecked()public void setChecked(java.lang.Boolean checked)
CheckboxDataModel
setChecked in interface CheckboxDataModelchecked - True if the checkbox should be selectedCheckboxDataModel.setChecked(java.lang.Boolean)public java.lang.String getValue()
public void setValue(RequestContext ctx,
ControlValuePath path,
java.lang.String[] values)
setValue in class Controlctx - The Action Contextpath - Path Name of the input elementvalues - the values to setControl.setValue(com.cc.framework.adapter.RequestContext,
com.cc.framework.ui.control.ControlValuePath, java.lang.String[])
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||