| java.lang.Object org.araneaframework.uilib.form.constraint.BaseConstraint org.araneaframework.uilib.form.constraint.RangeConstraint
RangeConstraint | final public class RangeConstraint extends BaseConstraint (Code) | | Given two form elements checks that their values are one after another.
It assumes that the values of both form elements are of the same type and comparable.
TODO: Add locale support for string ranges.
author: Konstantin Tretyakov author: XXX: this is one messy constraint. |
Constructor Summary | |
public | RangeConstraint(FormElement fieldLo, FormElement fieldHi, boolean allowEquals) Parameters: fieldLo - The value of this field is checked to be less than the value of fieldHi (or null) Parameters: fieldHi - The value of this field is checked to be greater than the value of fieldLo (or null) Parameters: allowEquals - If this is true, the constraint will be considered satisfied when values of fieldLo and fieldHi are equal. |
allowEquals | protected boolean allowEquals(Code) | | |
RangeConstraint | public RangeConstraint(FormElement fieldLo, FormElement fieldHi, boolean allowEquals)(Code) | | Parameters: fieldLo - The value of this field is checked to be less than the value of fieldHi (or null) Parameters: fieldHi - The value of this field is checked to be greater than the value of fieldLo (or null) Parameters: allowEquals - If this is true, the constraint will be considered satisfied when values of fieldLo and fieldHi are equal. Otherwise the constraint won't be satisfied in this case. |
validateConstraint | protected void validateConstraint()(Code) | | |
Fields inherited from org.araneaframework.uilib.form.constraint.BaseConstraint | protected String customErrorMessage(Code)(Java Doc)
|
|
|