Class DateField

    • Constructor Detail

      • DateField

        public DateField()
        Creates a new date field.
      • DateField

        public DateField​(DateCell cell)
        Creates a new date field.
        Parameters:
        cell - the date cell
      • DateField

        public DateField​(DateCell cell,
                         DateTimePropertyEditor propertyEditor)
        Creates a new date field.
        Parameters:
        cell - the date cell
        propertyEditor - the property editor
      • DateField

        public DateField​(DateTimePropertyEditor propertyEditor)
        Creates a new date field.
        Parameters:
        propertyEditor - the property editor
    • Method Detail

      • setAutoValidate

        public void setAutoValidate​(boolean autoValidate)
        Sets whether the value is validated on each key press and when a date is selected via the picker (defaults to false).
        Overrides:
        setAutoValidate in class Field<Date>
        Parameters:
        autoValidate - true to validate on each key press
      • getDatePicker

        public DatePicker getDatePicker()
        Returns the field's date picker.
        Returns:
        the date picker
      • getMaxValue

        public Date getMaxValue()
        Returns the field's max value.
        Returns:
        the max value
      • getMinValue

        public Date getMinValue()
        Returns the field's minimum value.
        Returns:
        the minimum value
      • setMaxValue

        public void setMaxValue​(Date maxValue)
        The maximum date allowed. Adds a maximum date validator.
        Parameters:
        maxValue - the maximum value. Set maxValue to null to remove the maximum validation.
      • setMinValue

        public void setMinValue​(Date minValue)
        The minimum date allowed. Adds a minimum date validator.
        Parameters:
        minValue - the minimum value. Set minValue to null to remove the minimum validation.