Package org.zkoss.zul

Class SimpleDateConstraint

    • Constructor Detail

      • SimpleDateConstraint

        public SimpleDateConstraint​(int flags)
      • SimpleDateConstraint

        public SimpleDateConstraint​(java.util.regex.Pattern regex,
                                    java.lang.String errmsg)
        Constructs a regular-expression constraint.
        Parameters:
        regex - ignored if null or empty
        errmsg - the error message to display. Ignored if null or empty.
        Since:
        8.0.1
      • SimpleDateConstraint

        public SimpleDateConstraint​(int flags,
                                    java.util.regex.Pattern regex,
                                    java.lang.String errmsg)
        Constructs a constraint combining regular expression.
        Parameters:
        flags - a combination of SimpleConstraint.NO_POSITIVE, SimpleConstraint.NO_NEGATIVE, SimpleConstraint.NO_ZERO, and so on.
        regex - ignored if null or empty
        errmsg - the error message to display. Ignored if null or empty.
        Since:
        8.0.1
      • SimpleDateConstraint

        public SimpleDateConstraint​(int flags,
                                    java.util.Date begin,
                                    java.util.Date end,
                                    java.lang.String errmsg)
        Constructs a constraint with beginning and ending date.
        Parameters:
        flags - a combination of SimpleConstraint.NO_POSITIVE, SimpleConstraint.NO_NEGATIVE, SimpleConstraint.NO_ZERO, and so on.
        begin - the beginning date, or null if no constraint at the beginning date.
        end - the ending date, or null if no constraint at the ending date.
        errmsg - the error message to display. Ignored if null or empty.
      • SimpleDateConstraint

        public SimpleDateConstraint​(java.lang.String constraint)
        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"