UIManager
.Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans
package.
Please see java.
.
UIManager
Modifier and Type | Class and Description |
---|---|
public static interface | UIDefaults.
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 |
public static class | UIDefaults.
|
public static interface | UIDefaults.
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 |
public static class | UIDefaults.
This class provides an implementation of |
private static class | UIDefaults.
|
Modifier and Type | Field and Description |
---|---|
private SwingPropertyChangeSupport | |
private Locale | |
private static final Object | |
private Vector | |
private Map | resourceCache
Maps from a Locale to a cached Map of the ResourceBundle. |
Access | Constructor and Description |
---|---|
public | |
public | UIDefaults(int
the initial capacity of the defaults table initialCapacity, float the load factor of the defaults table loadFactor)Creates an empty defaults table with the specified initial capacity and load factor. |
public | UIDefaults(Object[]
an array of objects containing the key/value
pairs keyValueList)Creates a defaults table initialized with the specified key/value pairs. |
Modifier and Type | Method and Description |
---|---|
private synchronized void | addInternalBundle(final String
the base name of the resource bundle to be added bundleName)This methods should be used to register internal resource bundles from the java.desktop module. |
public synchronized void | addPropertyChangeListener(PropertyChangeListener
the listener)PropertyChangeListener to be addedAdds a |
public synchronized void | addResourceBundle(final String
the base name of the resource bundle to be added bundleName)Adds a resource bundle to the list of resource bundles that are searched for localized values. |
protected void | firePropertyChange(String
the programmatic name of the property
that was changed propertyName, Object the old value of the property oldValue, Object the new value of the property newValue)Support for reporting bound property changes. |
public Object | Returns: the value forkey the desired key key)Overrides java. Implements java. |
public Object | |
public boolean | Returns: if the value ofkey is boolean, return the
boolean value, otherwise return false.an key)Object specifying the key for the desired boolean valueIf the value of |
public boolean | Returns: if the value forkey and Locale
is boolean, return the
boolean value, otherwise return false.an key, Locale Object specifying the key for the desired boolean valuethe desired locale l)If the value of |
public Border | |
public Border | |
public Color | |
public Color | |
public Locale | |
public Dimension | Returns: if the value forkey is a Dimension ,
return the Dimension object; otherwise return
null the desired key key)If the value of |
public Dimension | Returns: if the value forkey and Locale
is a Dimension ,
return the Dimension object; otherwise return
null the desired key key, Locale the desired locale l)If the value of |
public Font | |
public Font | |
private Object | getFromHashtable(final Object key)
Looks up the given key in our Hashtable and resolves LazyValues or ActiveValues. |
private Object | |
public Icon | |
public Icon | |
public Insets | |
public Insets | |
public int | |
public int | |
public synchronized PropertyChangeListener[] | Returns: all of thePropertyChangeListener s added or an empty
array if no listeners have been addedReturns an array of all the |
private Map | |
public String | |
public String | |
public ComponentUI | Returns: theComponentUI objectthe target)JComponent which needs a UICreates an |
public Class | Returns: the value ofClass.forName(get(uidClassID)) a string containing the class ID uiClassID, ClassLoader the object which will load the class uiClassLoader)The value of |
public Class | Returns: the Class object returned bygetUIClass(uiClassID, null) a string containing the class ID uiClassID)Returns the L&F class that renders this component. |
protected void | getUIError(String
message string to print msg)If |
private static boolean | |
public Object | Returns: the previousObject value, or null the unique key, Object Object who's value will be used
to retrieve the data value associated with itthe new value)Object to store as data under
that keyOverrides java. Implements java. key to value for all locales.
|
public void | putDefaults(Object[]
an array of key/value pairs keyValueList)Puts all of the key/value pairs in the database and
unconditionally generates one |
public synchronized void | removePropertyChangeListener(PropertyChangeListener
the listener)PropertyChangeListener to be removedRemoves a |
public synchronized void | removeResourceBundle(String
the base name of the resource bundle to be removed bundleName)Removes a resource bundle from the list of resource bundles that are searched for localized defaults. |
public void |