Class JInputValidatorPreferences

    • Method Detail

      • getPreferences

        public static JInputValidatorPreferences getPreferences()
        Get the default preferences object. This object uses the default Preferences, so application-wide defaults can be set by setting preferences keys appropriately before calling this method.
        Returns:
        the default preferences
      • getPreferences

        public static JInputValidatorPreferences getPreferences​(Preferences preferences)
        Get a set of preferences using a Preferences object. The Preferences must contain the keys listed above, but not necessarily within the package specified above.
        Parameters:
        preferences - the preferences to use
        Returns:
        the preferences for a specific scenario
      • getFont

        public Font getFont()
        Get the font to use.
        Returns:
        the font
      • getIcon

        public String getIcon​(Validation.Type type)
        Get the icon for the specified type. Note the icon can be any string that can be rendered using the font returned by getFont() although it is recommended this be a Unicode glyph or emoji-style icon.
        Parameters:
        type - the validation type to get
        Returns:
        the specified icon or an empty String if type is Validation.Type.NONE or not recognized