|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zul.SimpleConstraint org.zkoss.zul.SimpleDoubleSpinnerConstraint
public class SimpleDoubleSpinnerConstraint
A simple double spinner constraint.
Field Summary |
---|
Fields inherited from class org.zkoss.zul.SimpleConstraint |
---|
_flags, AFTER_END, AFTER_POINTER, AFTER_START, AT_POINTER, BEFORE_END, BEFORE_START, END_AFTER, END_BEFORE, NO_EMPTY, NO_FUTURE, NO_NEGATIVE, NO_PAST, NO_POSITIVE, NO_TODAY, NO_ZERO, OVERLAP, OVERLAP_AFTER, OVERLAP_BEFORE, OVERLAP_END, SERVER, START_AFTER, START_BEFORE, STRICT |
Constructor Summary | |
---|---|
SimpleDoubleSpinnerConstraint()
Constraints a constraint. |
|
SimpleDoubleSpinnerConstraint(int flags)
Constraints a constraint. |
|
SimpleDoubleSpinnerConstraint(java.lang.String constraint)
Constructs a constraint with a list of constraints separated by comma. |
Method Summary | |
---|---|
java.lang.Double |
getMax()
Returns the maximum value. |
java.lang.Double |
getMin()
Returns the minimum value. |
protected int |
parseConstraint(java.lang.String constraint)
Parses a constraint into an integer value. |
void |
setMax(java.lang.Double max)
Set the maximum value. |
void |
setMin(java.lang.Double min)
Set the minimum value. |
void |
validate(Component comp,
java.lang.Object value)
Verifies whether the value is acceptable. |
Methods inherited from class org.zkoss.zul.SimpleConstraint |
---|
getClientConstraint, getClientPackages, getErrorMessage, getFlags, getInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleDoubleSpinnerConstraint()
public SimpleDoubleSpinnerConstraint(int flags)
flags
- a combination of SimpleConstraint.NO_POSITIVE
, SimpleConstraint.NO_NEGATIVE
,
SimpleConstraint.NO_ZERO
, and so on.public SimpleDoubleSpinnerConstraint(java.lang.String constraint)
constraint
- a list of constraints separated by comma.
Example: no positive, no zeroMethod Detail |
---|
public java.lang.Double getMin()
public void setMin(java.lang.Double min)
public java.lang.Double getMax()
public void setMax(java.lang.Double max)
protected int parseConstraint(java.lang.String constraint) throws UiException
SimpleConstraint
SimpleConstraint.NO_POSITIVE
.
Deriving classes might override this to provide more constraints.
parseConstraint
in class SimpleConstraint
UiException
public void validate(Component comp, java.lang.Object value) throws WrongValueException
Constraint
validate
in interface Constraint
validate
in class SimpleConstraint
comp
- the component being validated
WrongValueException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |