|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--javax.swing.UIDefaults
|
+--javax.swing.MultiUIDefaults
| Field Summary | |
private UIDefaults[] |
tables
|
| Fields inherited from class javax.swing.UIDefaults |
|
| Fields inherited from class java.util.Hashtable |
|
| Constructor Summary | |
MultiUIDefaults()
|
|
MultiUIDefaults(UIDefaults[] defaults)
|
|
| Method Summary | |
void |
clear()
Enabled: Clears this hashtable so that it contains no keys. |
Enumeration |
elements()
Enabled: Returns an enumeration of the values in this hashtable. |
Object |
get(Object key)
Suppressed: Returns the value for key. |
Object |
get(Object key,
Locale l)
Suppressed: Returns the value for key associated with the given locale. |
boolean |
isEmpty()
Enabled: Tests if this hashtable maps no keys to values. |
Enumeration |
keys()
Enabled: Returns an enumeration of the keys in this hashtable. |
Object |
remove(Object key)
Enabled: Removes the key (and its corresponding value) from this hashtable. |
int |
size()
Enabled: Returns the number of keys in this hashtable. |
| Methods inherited from class javax.swing.UIDefaults |
addPropertyChangeListener, addResourceBundle, firePropertyChange, getBoolean, getBoolean, getBorder, getBorder, getColor, getColor, getDefaultLocale, getDimension, getDimension, getFont, getFont, getIcon, getIcon, getInsets, getInsets, getInt, getInt, getPropertyChangeListeners, getString, getString, getUI, getUIClass, getUIClass, getUIError, put, putDefaults, removePropertyChangeListener, removeResourceBundle, setDefaultLocale |
| Methods inherited from class java.util.Hashtable |
clone, contains, containsKey, containsValue, entrySet, equals, hashCode, keySet, putAll, rehash, toString, values |
| Methods inherited from class java.util.Dictionary |
iterate |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private UIDefaults[] tables
| Constructor Detail |
public MultiUIDefaults(UIDefaults[] defaults)
public MultiUIDefaults()
| Method Detail |
public Object get(Object key)
UIDefaultsUIDefaults.LazyValue then the real
value is computed with LazyValue.createValue(),
the table entry is replaced, and the real value is returned.
If the value is an UIDefaults.ActiveValue
the table entry is not replaced - the value is computed
with ActiveValue.createValue() for each
get() call.
If the key is not found in the table then it is searched for in the list
of resource bundles maintained by this object. The resource bundles are
searched most recently added first using the locale returned by
getDefaultLocale. LazyValues and
ActiveValues are not supported in the resource bundles.
get in interface Mapget in class UIDefaultskey - the desired key
keyLazyValue,
ActiveValue,
java.util.Hashtable#get,
UIDefaults.getDefaultLocale(),
UIDefaults.addResourceBundle(java.lang.String)
public Object get(Object key,
Locale l)
UIDefaultsUIDefaults.LazyValue then the real
value is computed with LazyValue.createValue(),
the table entry is replaced, and the real value is returned.
If the value is an UIDefaults.ActiveValue
the table entry is not replaced - the value is computed
with ActiveValue.createValue() for each
get() call.
If the key is not found in the table then it is searched for in the list
of resource bundles maintained by this object. The resource bundles are
searched most recently added first using the given locale.
LazyValues and ActiveValues are not supported
in the resource bundles.
get in class UIDefaultskey - the desired keyl - the desired locale
keyLazyValue,
ActiveValue,
java.util.Hashtable#get,
UIDefaults.addResourceBundle(java.lang.String)public int size()
Hashtable
size in interface Mapsize in class Hashtablepublic boolean isEmpty()
Hashtable
isEmpty in interface MapisEmpty in class Hashtabletrue if this hashtable maps no keys to values;
false otherwise.public Enumeration keys()
Hashtable
keys in class HashtableEnumeration,
Hashtable.elements(),
Hashtable.keySet(),
Mappublic Enumeration elements()
Hashtable
elements in class Hashtablejava.util.Enumeration,
Hashtable.keys(),
Hashtable.values(),
Mappublic Object remove(Object key)
Hashtable
remove in interface Mapremove in class Hashtablekey - the key that needs to be removed.
null if the key did not have a mapping.public void clear()
Hashtable
clear in interface Mapclear in class Hashtable
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||