|
|||||||||||
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.SelectControl
The SelectControl
Field Summary | |
private java.lang.String |
body
Additional HTML Body |
private SelectDesignModel |
designModel
The design modell |
private java.lang.Object |
optionElements
The Option elements |
private OptionListDesignModel |
options
The design model for the option elements - not for the control! |
private static long |
serialVersionUID
Serial Version UID |
private java.lang.Object[] |
values
Text Value |
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 | |
SelectControl()
Constructor |
|
SelectControl(SelectDesignModel designModel)
Constructor |
Method Summary | |
java.lang.String |
getBody()
Returns the optional HTML Body of the control |
DataModel |
getDataModel()
Returns the data model of the Control |
ControlDesignModel |
getDesignModel()
Returns the design model of the control |
java.lang.Object |
getOptionElements()
Returns the Option elements |
OptionListDesignModel |
getOptions()
Returns the option list. |
int |
getSize()
Returns the Size (Number of visible Characters) |
StateModel |
getStateModel()
Returns the state model of the control |
java.lang.Object[] |
getValues()
Returns the keys for the selected Item |
boolean |
isMultiple()
Indicates that multiple selections is allowed. |
void |
reset()
Resets the actual state of a control to the initial state |
void |
setBody(java.lang.String string)
Sets the optional HTML Body of the control. |
void |
setDesignModel(SelectDesignModel designModel)
Sets the DesignModel |
void |
setOptions(OptionListDesignModel options,
java.lang.Object elements)
Sets a option list. |
void |
setValue(RequestContext ctx,
ControlValuePath path,
java.lang.String[] values)
This method is called to set the value of the data model |
void |
setValues(java.lang.Object[] values)
Sets the key for the selected Item |
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 SelectDesignModel designModel
private java.lang.Object[] values
private OptionListDesignModel options
private java.lang.Object optionElements
private java.lang.String body
Constructor Detail |
public SelectControl()
public SelectControl(SelectDesignModel designModel)
designModel
- SelectDesignModelMethod Detail |
public DataModel getDataModel()
Control
getDataModel
in class Control
Control.getDataModel()
public ControlDesignModel getDesignModel()
Control
getDesignModel
in class Control
Control.getDesignModel()
public void setDesignModel(SelectDesignModel designModel)
designModel
- SwapSelectDesignModelpublic StateModel getStateModel()
Control
getStateModel
in class Control
Control.getStateModel()
public void reset()
StateModel
reset
in interface StateModel
StateModel.reset()
public java.lang.Object[] getValues()
SelectDataModel
getValues
in interface SelectDataModel
SelectDataModel.getValues()
public void setValue(RequestContext ctx, ControlValuePath path, java.lang.String[] values) throws java.lang.Exception
Control
setValue
in class Control
ctx
- The Action Contextpath
- Path Name of the input elementvalues
- the values to set
java.lang.Exception
- a derived class can throw an exception if the value could not
be setControl.setValue(com.cc.framework.adapter.RequestContext,
com.cc.framework.ui.control.ControlValuePath, java.lang.String[])
public void setValues(java.lang.Object[] values)
SelectDataModel
setValues
in interface SelectDataModel
values
- Values (item to be selected)SelectDataModel.setValues(java.lang.Object[])
public OptionListDesignModel getOptions()
public void setOptions(OptionListDesignModel options, java.lang.Object elements)
options
- The options to setelements
- The Option elementspublic java.lang.Object getOptionElements()
public int getSize()
public boolean isMultiple()
true
for a multiple selection controlpublic java.lang.String getBody()
public void setBody(java.lang.String string)
string
- HTML String
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |