|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectzk.Object
zul.inp.SimpleConstraint
public class SimpleConstraint
The default constraint supporting no empty, regular expressions and so on.
Depending on the component (such as Intbox and Datebox).
| Field Summary |
|---|
| Fields inherited from class zk.Object |
|---|
$class, $oid |
| Method Summary | |
|---|---|
void |
$init(java.lang.Object a,
String b,
String c)
Constructor. |
java.lang.Object |
getFlags()
Returns the constraint flags Object which has many attribute about constraint, For example, f.NO_POSITIVE = true. |
protected void |
parseConstraint_(String cst)
Parses a constraint into an Object attribute. |
void |
validate(Widget wgt,
java.lang.Object val)
validation for flag, validate date if val is date |
| Methods inherited from class zk.Object |
|---|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void $init(java.lang.Object a,
String b,
String c)
a - It can be String or number, the number or name of flag,
such as "no positive", 0x0001.b - the regular expressionc - the error messagepublic java.lang.Object getFlags()
protected void parseConstraint_(String cst)
Deriving classes might override this to provide more constraints.
cst -
public void validate(Widget wgt,
java.lang.Object val)
wgt - val - a String, a number, or a date, the number or name of flag,
such as "no positive", 0x0001.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||