Class DateTextField.DateCheckModel

    • Field Detail

      • m_Format

        protected String m_Format
        the format in use.
      • m_DateFormat

        protected transient DateFormat m_DateFormat
        the formatter object.
    • Constructor Detail

      • DateCheckModel

        public DateCheckModel()
        Initializes the check model with the current date/time as default date and with default date format.
        See Also:
        DateFormat.DEFAULT_FORMAT
      • DateCheckModel

        public DateCheckModel​(String format)
        Initializes the check model with the current date/time as default date.
        Parameters:
        format - the format to use
      • DateCheckModel

        public DateCheckModel​(String format,
                              Date defValue)
        Initializes the check model with the current date/time as default date.
        Parameters:
        format - the format to use
        defValue - the default date to use
    • Method Detail

      • getDateFormat

        protected DateFormat getDateFormat()
        Returns the DateFormat object to use, creates it if necessary.
        Returns:
        the date formatter
      • getFormat

        public String getFormat()
        Returns the underlying format.
        Returns:
        format