Package adams.data

Class DateFormatString

    • Constructor Detail

      • DateFormatString

        public DateFormatString​(String s)
        Initializes the object with the string to parse.
        Parameters:
        s - the string to parse
    • Method Detail

      • isValid

        public boolean isValid​(String value)
        Checks whether the string value is a valid presentation for this class.
        Overrides:
        isValid in class AbstractBaseString
        Parameters:
        value - the string value to check
        Returns:
        always true
      • getTipText

        public String getTipText()
        Returns a tool tip for the GUI editor (ignored if null is returned).
        Specified by:
        getTipText in class AbstractBaseString
        Returns:
        the tool tip
      • toDateFormat

        public DateFormat toDateFormat()
        Returns a configured DateFormat object.
        Returns:
        the configured object
      • toDateFormat

        public DateFormat toDateFormat​(TimeZone tz)
        Returns a configured DateFormat object.
        Parameters:
        tz - the timezone to use
        Returns:
        the configured object
      • getHelpURL

        public String getHelpURL()
        Returns a URL with additional information.
        Specified by:
        getHelpURL in interface HelpProvider
        Returns:
        the URL, null if not available
      • getHelpDescription

        public String getHelpDescription()
        Returns a long help description, e.g., used in tiptexts.
        Specified by:
        getHelpDescription in interface HelpProvider
        Returns:
        the help text, null if not available
      • getHelpTitle

        public String getHelpTitle()
        Returns a short title for the help, e.g., used for buttons.
        Specified by:
        getHelpTitle in interface HelpProvider
        Returns:
        the short title, null if not available
      • getHelpIcon

        public String getHelpIcon()
        Returns the name of a help icon, e.g., used for buttons.
        Specified by:
        getHelpIcon in interface HelpProvider
        Returns:
        the icon name, null if not available
      • hasFavoritesSupport

        public boolean hasFavoritesSupport()
        Whether this object should have favorites support.
        Overrides:
        hasFavoritesSupport in class BaseObject
        Returns:
        true if to support favorites