|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Control is the widget that does the actual parsing and reading of the request
parameters. It corresponds to the controls found in HTML forms, like textbox,
textarea, selectbox, button …
Control is meant to be used inside FormElement that provides
type safety and additional Constraints to request data.
| Nested Class Summary | |
static interface |
Control.ViewModel
|
| Nested classes inherited from class org.araneaframework.Widget |
Widget.Interface |
| Nested classes inherited from class org.araneaframework.Viewable |
Viewable.Interface, Viewable.ViewableComponent, Viewable.ViewableService, Viewable.ViewableWidget |
| Method Summary | |
void |
convert()
Converts the data submitted by the user. |
Object |
getRawValue()
Returns the value of the control (value read from the request). |
String |
getRawValueType()
This method should be overriden by the control, returning the type of the value of this control. |
boolean |
isDisabled()
|
boolean |
isRead()
Returns whether the control data was present in the HTTP request. |
void |
setRawValue(Object value)
Sets the control value. |
void |
validate()
Validates the data submitted by the user. |
| Methods inherited from interface org.araneaframework.Widget |
_getWidget |
| Methods inherited from interface org.araneaframework.Service |
_getService |
| Methods inherited from interface org.araneaframework.Component |
_getComponent, getEnvironment, getScope, isAlive |
| Methods inherited from interface org.araneaframework.Viewable |
_getViewable |
| Methods inherited from interface org.araneaframework.uilib.form.FormElementAware |
setFormElementCtx |
| Method Detail |
public boolean isRead()
public String getRawValueType()
ConverterFactoryto
determine the BaseConverterused to transfer the values
from Datato control and back.
public Object getRawValue()
public void setRawValue(Object value)
Converter when
value of FormElement (this is stored in Data) that owns this BaseControl changes.
value - control value.getRawValue()public void convert()
public void validate()
public boolean isDisabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||