| java.lang.Object org.zkoss.zul.SimpleConstraint org.zkoss.zul.SimpleDateConstraint
SimpleDateConstraint | public class SimpleDateConstraint extends SimpleConstraint (Code) | | A simple date constraint.
author: tomyeh since: 3.0.2 |
Constructor Summary | |
public | SimpleDateConstraint(int flags) | public | SimpleDateConstraint(int flags, String errmsg) Constraints a constraint.
Parameters: flags - a combination of SimpleDateConstraint.NO_POSITIVE, SimpleDateConstraint.NO_NEGATIVE,SimpleDateConstraint.NO_ZERO, and so on. Parameters: errmsg - the error message to display. | public | SimpleDateConstraint(String regex, String errmsg) Constructs a regular-expression constraint.
Parameters: regex - ignored if null or empty Parameters: errmsg - the error message to display. | public | SimpleDateConstraint(int flags, String regex, String errmsg) Constructs a constraint combining regular expression.
Parameters: flags - a combination of SimpleDateConstraint.NO_POSITIVE, SimpleDateConstraint.NO_NEGATIVE,SimpleDateConstraint.NO_ZERO, and so on. Parameters: regex - ignored if null or empty Parameters: errmsg - the error message to display. | public | SimpleDateConstraint(int flags, Date begin, Date end, String errmsg) Constructs a constraint with beginning and ending date.
Parameters: flags - a combination of SimpleDateConstraint.NO_POSITIVE, SimpleDateConstraint.NO_NEGATIVE,SimpleDateConstraint.NO_ZERO, and so on. Parameters: begin - the beginning date, or null if no constraint at the beginningdate. Parameters: end - the ending date, or null if no constraint at the endingdate. Parameters: errmsg - the error message to display. | public | SimpleDateConstraint(String constraint) Constructs a constraint with a list of constraints separated by comma. |
SimpleDateConstraint | public SimpleDateConstraint(int flags)(Code) | | |
SimpleDateConstraint | public SimpleDateConstraint(String regex, String errmsg)(Code) | | Constructs a regular-expression constraint.
Parameters: regex - ignored if null or empty Parameters: errmsg - the error message to display. Ignored if null or empty. |
SimpleDateConstraint | public SimpleDateConstraint(String constraint)(Code) | | Constructs a constraint with a list of constraints separated by comma.
Parameters: constraint - a list of constraints separated by comma.Example: "between 20071012 and 20071223", "before 20080103" |
getBeginDate | public Date getBeginDate()(Code) | | Returns the beginning date, or null if there is no constraint of
the beginning date.
|
getEndDate | public Date getEndDate()(Code) | | Returns the ending date, or null if therer is no constraint of
the ending date.
|
|
|