|
|||||||||||
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)
UIDefaults
UIDefaults.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 Map
get
in class UIDefaults
key
- the desired key
key
LazyValue
,
ActiveValue
,
java.util.Hashtable#get
,
UIDefaults.getDefaultLocale()
,
UIDefaults.addResourceBundle(java.lang.String)
public Object get(Object key, Locale l)
UIDefaults
UIDefaults.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 UIDefaults
key
- the desired keyl
- the desired locale
key
LazyValue
,
ActiveValue
,
java.util.Hashtable#get
,
UIDefaults.addResourceBundle(java.lang.String)
public int size()
Hashtable
size
in interface Map
size
in class Hashtable
public boolean isEmpty()
Hashtable
isEmpty
in interface Map
isEmpty
in class Hashtable
true
if this hashtable maps no keys to values;
false
otherwise.public Enumeration keys()
Hashtable
keys
in class Hashtable
Enumeration
,
Hashtable.elements()
,
Hashtable.keySet()
,
Map
public Enumeration elements()
Hashtable
elements
in class Hashtable
java.util.Enumeration
,
Hashtable.keys()
,
Hashtable.values()
,
Map
public Object remove(Object key)
Hashtable
remove
in interface Map
remove
in class Hashtable
key
- the key that needs to be removed.
null
if the key did not have a mapping.public void clear()
Hashtable
clear
in interface Map
clear
in class Hashtable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |