API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. UIDefaults View Source
Author(s)
Hans Muller
Since
Version
1.64 03/15/07
Serial
Hierarchy
 Object
      Dictionary
          Hashtable
              UIDefaults
Implements
Subclasses
Description
public class UIDefaults
  A table of defaults for Swing components.
See also:    UIManager
Constructors
public UIDefaults ()
Creates an empty defaults table.
public UIDefaults (int initialCapacity, float loadFactor)
  Creates an empty defaults table with the specified initial capacity and load factor.
public UIDefaults (Object keyValueList)
  Creates a defaults table initialized with the specified key/value pairs.
Methods
Hide/Show inherited methods
publicsynchronized void addPropertyChangeListener (PropertyChangeListener listener)
  Adds a PropertyChangeListener to the listener list.
publicsynchronized void addResourceBundle (String bundleName)
  Adds a resource bundle to the list of resource bundles that are searched for localized values.
publicsynchronized void clear () [Inherited From Hashtable]
Clears this hashtable so that it contains no keys.
publicsynchronized Object clone () [Inherited From Hashtable]
  Creates a shallow copy of this hashtable.
publicsynchronized boolean contains (Object value) [Inherited From Hashtable]
  Tests if some key maps into the specified value in this hashtable.
publicsynchronized boolean containsKey (Object key) [Inherited From Hashtable]
  Tests if the specified object is a key in this hashtable.
public boolean containsValue (Object value) [Inherited From Hashtable]
  Returns true if this hashtable maps one or more keys to this value.
publicsynchronized Enumeration< V> elements () [Inherited From Hashtable] [Specified in Dictionary]
  Returns an enumeration of the values in this hashtable.
public Set<Entry< K, V>> entrySet () [Inherited From Hashtable]
  Returns a Set view of the mappings contained in this map.
publicsynchronized boolean equals (Object o) [Inherited From Hashtable]
  Compares the specified Object with this Map for equality, as per the definition in the Map interface.
protected void firePropertyChange (String propertyName, Object oldValue, Object newValue)
  Support for reporting bound property changes.
public Object get (Object key) [Overrides Hashtable] [Specified in Dictionary]
  Returns the value for key.
public Object get (Object key, Locale l)
  Returns the value for key associated with the given locale.
public boolean getBoolean (Object key)
  If the value of key is boolean, return the boolean value, otherwise return false.
public boolean getBoolean (Object key, Locale l)
  If the value of key for the given Locale is boolean, return the boolean value, otherwise return false.
public Border getBorder (Object key)
  If the value of key is a Border return it, otherwise return null.
public Border getBorder (Object key, Locale l)
  If the value of key for the given Locale is a Border return it, otherwise return null.
public Color getColor (Object key)
  If the value of key is a Color return it, otherwise return null.
public Color getColor (Object key, Locale l)
  If the value of key for the given Locale is a Color return it, otherwise return null.
public Locale getDefaultLocale ()
  Returns the default locale.
public Dimension getDimension (Object key)
  If the value of key is a Dimension return it, otherwise return null.
public Dimension getDimension (Object key, Locale l)
  If the value of key for the given Locale is a Dimension return it, otherwise return null.
public Font getFont (Object key)
  If the value of key is a Font return it, otherwise return null.
public Font getFont (Object key, Locale l)
  If the value of key for the given Locale is a Font return it, otherwise return null.
public Icon getIcon (Object key)
  If the value of key is an Icon return it, otherwise return null.
public Icon getIcon (Object key, Locale l)
  If the value of key for the given Locale is an Icon return it, otherwise return null.
public Insets getInsets (Object key)
  If the value of key is an Insets return it, otherwise return null.
public Insets getInsets (Object key, Locale l)
  If the value of key for the given Locale is an Insets return it, otherwise return null.
public int getInt (Object key)
  If the value of key is an Integer return its integer value, otherwise return 0.
public int getInt (Object key, Locale l)
  If the value of key for the given Locale is an Integer return its integer value, otherwise return 0.
publicsynchronized PropertyChangeListener getPropertyChangeListeners ()
  Returns an array of all the PropertyChangeListeners added to this UIDefaults with addPropertyChangeListener().
public String getString (Object key)
  If the value of key is a String return it, otherwise return null.
public String getString (Object key, Locale l)
  If the value of key for the given Locale is a String return it, otherwise return null.
public ComponentUI getUI (JComponent target)
  Creates an ComponentUI implementation for the specified component.
public Class<ComponentUI> getUIClass (String uiClassID)
  Returns the L&F class that renders this component.
public Class<ComponentUI> getUIClass (String uiClassID, ClassLoader uiClassLoader)
  The value of get(uidClassID) must be the String name of a class that implements the corresponding ComponentUI class.
protected void getUIError (String msg)
  If getUI() fails for any reason, it calls this method before returning null.
publicsynchronized int hashCode () [Inherited From Hashtable]
  Returns the hash code value for this Map as per the definition in the Map interface.
publicsynchronized boolean isEmpty () [Inherited From Hashtable] [Specified in Dictionary]
  Tests if this hashtable maps no keys to values.
publicsynchronized Enumeration< K> keys () [Inherited From Hashtable] [Specified in Dictionary]
  Returns an enumeration of the keys in this hashtable.
public Set< K> keySet () [Inherited From Hashtable]
  Returns a Set view of the keys contained in this map.
publicsynchronized V put ( K key, V value) [Inherited From Hashtable] [Specified in Dictionary]
  Maps the specified key to the specified value in this hashtable.
public Object put (Object key, Object value)
  Sets the value of key to value for all locales.
publicsynchronized void putAll (Map<Object, Object> t) [Inherited From Hashtable]
  Copies all of the mappings from the specified map to this hashtable.
public void putDefaults (Object keyValueList)
  Puts all of the key/value pairs in the database and unconditionally generates one PropertyChangeEvent.
protected void rehash () [Inherited From Hashtable]
  Increases the capacity of and internally reorganizes this hashtable, in order to accommodate and access its entries more efficiently.
publicsynchronized V remove (Object key) [Inherited From Hashtable] [Specified in Dictionary]
  Removes the key (and its corresponding value) from this hashtable.
publicsynchronized void removePropertyChangeListener (PropertyChangeListener listener)
  Removes a PropertyChangeListener from the listener list.
publicsynchronized void removeResourceBundle (String bundleName)
  Removes a resource bundle from the list of resource bundles that are searched for localized defaults.
public void setDefaultLocale (Locale l)
  Sets the default locale.
publicsynchronized int size () [Inherited From Hashtable] [Specified in Dictionary]
  Returns the number of keys in this hashtable.
publicsynchronized String toString () [Inherited From Hashtable]
  Returns a string representation of this Hashtable object in the form of a set of entries, enclosed in braces and separated by the ASCII characters "" (comma and space).
public Collection< V> values () [Inherited From Hashtable]
  Returns a Collection view of the values contained in this map.
Fields
Hide/Show inherited fields
Nested Classes
  UIDefaults.LazyValue
This class enables one to store an entry in the defaults table that isn't constructed until the first time it's looked up with one of the getXXX(key) methods.
  UIDefaults.ActiveValue
This class enables one to store an entry in the defaults table that's constructed each time it's looked up with one of the getXXX(key) methods.
  UIDefaults.ProxyLazyValue
This class provides an implementation of LazyValue which can be used to delay loading of the Class for the instance to be created.
  UIDefaults.LazyInputMap
LazyInputMap will create a InputMap in its createValue method.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar