|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.araneaframework.uilib.form.constraint.BaseConstraint
org.araneaframework.uilib.form.constraint.BaseFieldConstraint
public abstract class BaseFieldConstraint
Base implementation of the Constraint that is associated with
some FormElement. Most constraints
may find it useful to extend this form-field-related implementation to
define a new constraint.
| Nested Class Summary | |
|---|---|
static class |
BaseFieldConstraint.FieldConstraintException
Exception thrown when FormElement
associated with BaseFieldConstraint could not be determined. |
| Field Summary |
|---|
| Fields inherited from class org.araneaframework.uilib.form.constraint.BaseConstraint |
|---|
customErrorMessage |
| Constructor Summary | |
|---|---|
BaseFieldConstraint()
An empty constructor that does not bind this constraint with a form element. |
|
BaseFieldConstraint(FormElement field)
A constructor that binds this constraint with given form element ( field) |
|
| Method Summary | |
|---|---|
Environment |
getEnvironment()
Provides the Environment of the constraint. |
protected FormElementContext |
getField()
Returns the FormElement that this Constraint is
constraining. |
protected String |
getLabel()
Provides the label of the constraint field. |
protected Object |
getValue()
Provides the value of the constraint field. |
boolean |
isDisabled()
Specifies whether the constraint field is disabled. |
boolean |
isMandatory()
Specifies whether the constraint field is mandatory. |
boolean |
isRead()
Specifies whether the constraint field was read. |
| Methods inherited from class org.araneaframework.uilib.form.constraint.BaseConstraint |
|---|
addError, addErrors, clearErrors, getConfiguration, getErrors, isValid, setCustomErrorMessage, setEnvironment, t, validate, validateConstraint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseFieldConstraint()
public BaseFieldConstraint(FormElement field)
field)
field - The form element to bind this contraint with.| Method Detail |
|---|
protected FormElementContext getField()
FormElement that this Constraint is
constraining.
FormElementpublic Environment getEnvironment()
BaseConstraintEnvironment of the constraint.
getEnvironment in class BaseConstraintEnvironment of the constraint.protected String getLabel()
protected Object getValue()
public boolean isRead()
public boolean isDisabled()
public boolean isMandatory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||