|
|||||||||||
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.TextControl
TextControl
Field Summary | |
private TextDesignModel |
designModel
Designmodel |
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 | |
TextControl()
Constructor |
|
TextControl(TextDesignModel designModel)
Constructor |
Method Summary | |
boolean |
filter()
Returns if the filter is activated (default=true). |
Converter |
getConverter()
Returns the the Converter that should be used to convert Java Objects into their localized String representation. |
DataModel |
getDataModel()
Returns the data model of the Control |
ControlDesignModel |
getDesignModel()
Returns the design model of the control |
InputFieldType |
getInputType()
Returns the Type |
int |
getMaxLength()
returns the maximal Number of Characters, which can be inserted into the Control |
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(TextDesignModel designModel)
Sets the design model |
void |
setValue(java.lang.Object value)
Sets the 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 TextDesignModel designModel
private java.lang.Object value
Constructor Detail |
public TextControl()
public TextControl(TextDesignModel designModel)
designModel
- TextDesignModelMethod Detail |
public void setDesignModel(TextDesignModel designModel)
designModel
- The design modelpublic DataModel getDataModel()
Control
getDataModel
in class Control
Control.getDataModel()
public ControlDesignModel getDesignModel()
Control
getDesignModel
in class Control
Control.getDesignModel()
public StateModel getStateModel()
Control
getStateModel
in class Control
Control.getStateModel()
public void reset()
StateModel
reset
in interface StateModel
StateModel.reset()
public int getSize()
public int getMaxLength()
public java.lang.Object getValue()
TextDataModel
getValue
in interface TextDataModel
TextDataModel.getValue()
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 setValue(java.lang.Object value)
TextDataModel
setValue
in interface TextDataModel
value
- The valueTextDataModel.setValue(java.lang.Object)
public InputFieldType getInputType()
public boolean filter()
true
if string will be HTML encoded;
false
otherwisepublic Converter getConverter()
null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |