|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.araneaframework.core.BaseComponent
org.araneaframework.core.BaseService
org.araneaframework.core.BaseWidget
org.araneaframework.core.BaseApplicationWidget
org.araneaframework.uilib.form.GenericFormElement
Represents a general form element, a node in form element hierarchy.
| Nested Class Summary | |
class |
GenericFormElement.ViewModel
This class represents a form element view model. |
| Nested classes inherited from class org.araneaframework.core.BaseApplicationWidget |
BaseApplicationWidget.CompositeImpl, BaseApplicationWidget.ViewableImpl |
| Nested classes inherited from class org.araneaframework.core.BaseWidget |
BaseWidget.WidgetImpl |
| Nested classes inherited from class org.araneaframework.core.BaseService |
BaseService.ServiceImpl |
| Nested classes inherited from class org.araneaframework.core.BaseComponent |
BaseComponent.ComponentImpl |
| Nested classes inherited from class org.araneaframework.core.ApplicationWidget |
ApplicationWidget.WidgetViewModel |
| Nested classes inherited from class org.araneaframework.core.ApplicationService |
ApplicationService.ServiceViewModel |
| Nested classes inherited from class org.araneaframework.core.ApplicationComponent |
ApplicationComponent.ComponentViewModel |
| Nested classes inherited from class org.araneaframework.Component |
Component.Interface |
| Nested classes inherited from class org.araneaframework.Composite |
Composite.CompositeComponent, Composite.CompositeService, Composite.CompositeWidget, Composite.Interface |
| Nested classes inherited from class org.araneaframework.Viewable |
Viewable.Interface, Viewable.ViewableComponent, Viewable.ViewableService, Viewable.ViewableWidget |
| Nested classes inherited from class org.araneaframework.Service |
Service.Interface |
| Nested classes inherited from class org.araneaframework.Widget |
Widget.Interface |
| Field Summary | |
protected Boolean |
backgroundValidation
|
protected Constraint |
constraint
|
protected boolean |
converted
|
protected Map |
properties
|
static String |
SEAMLESS_VALIDATION_ACTION_ID
|
protected boolean |
validated
|
| Fields inherited from class org.araneaframework.core.BaseService |
currentInputData, currentOutputData |
| Fields inherited from interface org.araneaframework.core.ApplicationWidget |
EVENT_HANDLER_ID_KEY, EVENT_PARAMETER_KEY, EVENT_PATH_KEY |
| Fields inherited from interface org.araneaframework.core.ApplicationService |
ACTION_HANDLER_ID_KEY, ACTION_PARAMETER_KEY, ACTION_PATH_KEY |
| Constructor Summary | |
GenericFormElement()
|
|
| Method Summary | |
abstract void |
accept(String id,
FormElementVisitor visitor)
Accepts the visitor. |
void |
addError(String error)
|
void |
addErrors(Set errors)
|
void |
clearErrors()
Clears element errors. |
void |
convert()
Converts the value from Controls to Data. |
boolean |
convertAndValidate()
Converts the element value from control to data item and validates the value. |
protected abstract void |
convertInternal()
Converts the element value from control to data item |
Constraint |
getConstraint()
Returns element constraint. |
Environment |
getConstraintEnvironment()
|
Set |
getErrors()
Since 1.1 this returns an immutable Set. |
protected MessageContext |
getMessageCtx()
|
protected Set |
getMutableErrors()
|
Map |
getProperties()
Returns all properties of the element as a map (string -> string). |
Object |
getProperty(Object key)
Returns the value of the property. |
Object |
getValue()
|
protected void |
init()
Init callback. |
boolean |
isBackgroundValidation()
|
abstract boolean |
isDisabled()
Returns whether the element is disabled. |
boolean |
isEvaluated()
Returns whether last evaluation (converting and optional validating) has succeeded. |
abstract boolean |
isStateChanged()
Returns whether data item state has changed after it was marked. |
boolean |
isValid()
Returns whether the element is valid. |
abstract void |
markBaseState()
Marks the current value of the data item as the base state that will be used to determine whether its state has changed in isStateChanged(). |
abstract void |
restoreBaseState()
Restores the value of the data item from the marked base state. |
void |
setBackgroundValidation(boolean b)
|
void |
setConstraint(Constraint constraint)
Sets element constraint. |
abstract void |
setDisabled(boolean disabled)
Sets wether the element is disabled. |
void |
setProperty(Object key,
Object value)
Method for setting property values. |
boolean |
validate()
Validates the element. |
protected boolean |
validateInternal()
Validates the element. |
| Methods inherited from class org.araneaframework.core.BaseApplicationWidget |
_getComposite, _getViewable, action, addActionListener, addEventListener, addWidget, addWidget, clearActionListeners, clearEventlisteners, clearGlobalEventListener, disableWidget, enableWidget, event, getActionId, getChildEnvironment, getChildren, getChildWidgetEnvironment, getEnvironment, getEventId, getViewModel, getWidget, handleAction, handleEvent, handleUpdate, propagate, putViewData, putViewDataOnce, removeActionListener, removeEventListener, removeViewData, removeWidget, render, setGlobalEventListener, update |
| Methods inherited from class org.araneaframework.core.BaseWidget |
_getWidget, getInputData, getOutputData, handleWidgetException |
| Methods inherited from class org.araneaframework.core.BaseService |
_getService, handleServiceException |
| Methods inherited from class org.araneaframework.core.BaseComponent |
_addComponent, _addComponent, _checkCall, _disableComponent, _enableComponent, _endCall, _endWaitingCall, _getChildren, _getComponent, _getDisabledChildren, _propagate, _relocateComponent, _removeComponent, _setEnvironment, _setScope, _startCall, _startWaitingCall, _strictCheckCall, _strictStartCall, _waitNoCall, destroy, disable, enable, getScope, handleException, isAlive, isDead, isInitialized |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.araneaframework.Component |
_getComponent, getScope, isAlive |
| Methods inherited from interface org.araneaframework.Service |
_getService |
| Methods inherited from interface org.araneaframework.Widget |
_getWidget |
| Field Detail |
public static final String SEAMLESS_VALIDATION_ACTION_ID
protected Constraint constraint
protected Map properties
protected boolean converted
protected boolean validated
protected Boolean backgroundValidation
| Constructor Detail |
public GenericFormElement()
| Method Detail |
protected void init()
throws Exception
BaseComponent
init in class BaseComponentException - Any runtime exception that may occur.public Map getProperties()
public void setProperty(Object key,
Object value)
key - name of the property to be set.value - value for the property.public Object getProperty(Object key)
key - the name of the property to get.
null if property is not defined.public Constraint getConstraint()
public void setConstraint(Constraint constraint)
constraint - The constraint to set.public Environment getConstraintEnvironment()
public boolean isValid()
public boolean convertAndValidate()
public void convert()
Controls to Data.
public boolean validate()
public boolean isEvaluated()
public Set getErrors()
public void addError(String error)
public void addErrors(Set errors)
public void clearErrors()
public Object getValue()
public void setBackgroundValidation(boolean b)
public boolean isBackgroundValidation()
public abstract void markBaseState()
isStateChanged().
public abstract void restoreBaseState()
public abstract boolean isStateChanged()
public abstract void setDisabled(boolean disabled)
disabled - wether the element is disabled.public abstract boolean isDisabled()
public abstract void accept(String id,
FormElementVisitor visitor)
protected MessageContext getMessageCtx()
protected abstract void convertInternal()
throws Exception
Exception
protected boolean validateInternal()
throws Exception
Exceptionprotected Set getMutableErrors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||