|
|||||||||||
| 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.ComboBoxControl
ComboBox Control. A ComboBox is much like a normal Edit control with a additional drop down list box.
| Field Summary | |
private ComboBoxDesignModel |
designModel
The design model |
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 |
value
(Display-) 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 | |
ComboBoxControl()
Constructor |
|
ComboBoxControl(ComboBoxDesignModel designModel)
Constructor |
|
| Method Summary | |
boolean |
filter()
Returns if the filter is activated (default=true). |
DataModel |
getDataModel()
Returns the data model of the Control |
ControlDesignModel |
getDesignModel()
Returns the design model of the control |
int |
getMaxLength()
Returns the maximal number of input characters which can be inserted into the text field. |
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 |
getValue()
Returns the value |
void |
reset()
Resets the actual state of a control to the initial state |
void |
setDesignModel(ComboBoxDesignModel designModel)
Sets the DesignModel |
void |
setOptions(OptionListDesignModel options,
java.lang.Object elements)
Sets a option list. |
void |
setValue(java.lang.Object value)
Sets the selected value |
void |
setValue(RequestContext ctx,
ControlValuePath path,
java.lang.String[] values)
This method is called to set the value of the data model |
| 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 ComboBoxDesignModel designModel
private java.lang.Object value
private OptionListDesignModel options
private java.lang.Object optionElements
| Constructor Detail |
public ComboBoxControl()
public ComboBoxControl(ComboBoxDesignModel designModel)
designModel - ComboBoxDesignModel| Method Detail |
public DataModel getDataModel()
Control
getDataModel in class ControlControl.getDataModel()public ControlDesignModel getDesignModel()
Control
getDesignModel in class ControlControl.getDesignModel()public void setDesignModel(ComboBoxDesignModel designModel)
designModel - ComboBoxDesignModelpublic StateModel getStateModel()
Control
getStateModel in class ControlControl.getStateModel()public void reset()
StateModel
reset in interface StateModelStateModel.reset()public java.lang.Object getValue()
ComboBoxDataModel
getValue in interface ComboBoxDataModelComboBoxDataModel.getValue()
public void setValue(RequestContext ctx,
ControlValuePath path,
java.lang.String[] values)
throws java.lang.Exception
Control
setValue in class Controlctx - 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 setValue(java.lang.Object value)
ComboBoxDataModel
setValue in interface ComboBoxDataModelvalue - ValueComboBoxDataModel.setValue(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 int getMaxLength()
public boolean filter()
true if string will be HTML encoded;
false otherwise
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||