Class StringValues

java.lang.Object
org.jdesktop.swingx.renderer.StringValues

public final class StringValues extends Object
A collection of common StringValue implementations.
  • Field Details

    • EMPTY

      public static final StringValue EMPTY
      A StringValue that always presents an empty string.
    • TO_STRING

      public static final StringValue TO_STRING
      A StringValue that presents a toString value for the given object. If the value passed is null, this has the same effect as EMPTY.
    • FILE_NAME

      public static final StringValue FILE_NAME
      A StringValue that presents the current Linvalid input: '&F' display name for a given file. If the value passed to FILE_NAME is not a File, this has the same effect as TO_STRING.
    • FILE_TYPE

      public static final StringValue FILE_TYPE
      A StringValue that presents the current Linvalid input: '&F' type name for a given file. If the value passed to FILE_TYPE is not a File, this has the same effect as TO_STRING.
    • defaultLocale

      private static Locale defaultLocale
      keep track of default locale.
    • DATE_TO_STRING

      public static final FormatStringValue DATE_TO_STRING
      Default converter for Date types. Uses the default format as returned from DateFormat.
    • NUMBER_TO_STRING

      public static final FormatStringValue NUMBER_TO_STRING
      Default converter for Number types. Uses the default format as returned from NumberFormat.
    • TO_STRING_UI

      public static final StringValue TO_STRING_UI
    • EMPTY_UI

      public static final StringValue EMPTY_UI
  • Constructor Details

    • StringValues

      private StringValues()
  • Method Details

    • localeChanged

      private static boolean localeChanged()
      Returns a boolean to indicate if the default Locale has changed. Updates internal state to keep track of the default Locale.
      Returns:
      true if the default Locale has changed.