Class ComponentResources


  • public class ComponentResources
    extends java.util.ListResourceBundle
    This resource bundle provides default values for custom components in this library.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  ComponentResources.Provider  
      • Nested classes/interfaces inherited from class java.util.ResourceBundle

        java.util.ResourceBundle.Control
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.ResourceBundle BUNDLE  
      • Fields inherited from class java.util.ResourceBundle

        parent
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object[][] getContents()  
      static java.awt.Color lookupColor​(java.lang.String key)
      Look up a color value from Provider bundles with fallback to BUNDLE.
      static float lookupFloat​(java.lang.String key)
      Look up a float value from Provider bundles with fallback to BUNDLE.
      static javax.swing.Icon lookupIcon​(java.lang.String key)
      Look up an icon value from Provider bundles with fallback to BUNDLE.
      static int lookupInt​(java.lang.String key)
      Look up an int value from Provider bundles with fallback to BUNDLE.
      static java.lang.String lookupString​(java.lang.String key)
      Look up a string value from Provider bundles with fallback to BUNDLE.
      • Methods inherited from class java.util.ListResourceBundle

        getKeys, handleGetObject, handleKeySet
      • Methods inherited from class java.util.ResourceBundle

        clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, keySet, setParent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BUNDLE

        public static final java.util.ResourceBundle BUNDLE
    • Constructor Detail

      • ComponentResources

        public ComponentResources()
    • Method Detail

      • lookupString

        public static java.lang.String lookupString​(java.lang.String key)
        Look up a string value from Provider bundles with fallback to BUNDLE.
        Parameters:
        key - the resource key
        Returns:
        the value from a provider if it exists, otherwise the value from BUNDLE
        Throws:
        java.util.MissingResourceException - if the key is not defined in any of the bundles
      • lookupColor

        public static java.awt.Color lookupColor​(java.lang.String key)
        Look up a color value from Provider bundles with fallback to BUNDLE.
        Parameters:
        key - the resource key
        Returns:
        the value from bundle if it exists, otherwise the value from BUNDLE
        Throws:
        java.util.MissingResourceException - if the key is not defined in any of the bundles
      • lookupIcon

        public static javax.swing.Icon lookupIcon​(java.lang.String key)
        Look up an icon value from Provider bundles with fallback to BUNDLE.
        Parameters:
        key - the resource key
        Returns:
        the value from bundle if it exists, otherwise the value from BUNDLE
        Throws:
        java.util.MissingResourceException - if the key is not defined in any of the bundles
      • lookupInt

        public static int lookupInt​(java.lang.String key)
        Look up an int value from Provider bundles with fallback to BUNDLE.
        Parameters:
        key - the resource key
        Returns:
        the value from bundle if it exists, otherwise the value from BUNDLE
        Throws:
        java.util.MissingResourceException - if the key is not defined in any of the bundles
      • lookupFloat

        public static float lookupFloat​(java.lang.String key)
        Look up a float value from Provider bundles with fallback to BUNDLE.
        Parameters:
        key - the resource key
        Returns:
        the value from bundle if it exists, otherwise the value from BUNDLE
        Throws:
        java.util.MissingResourceException - if the key is not defined in any of the bundles
      • getContents

        protected java.lang.Object[][] getContents()
        Specified by:
        getContents in class java.util.ListResourceBundle