APIdia Launch Partner
Top Inners Fields Constructors Methods
javax.swing

pack-priv Class MultiUIDefaults

extends UIDefaults
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.util.Enumeration, .HashSet, .Iterator, .Locale, .Map.Entry, .Set

Author
Hans Muller

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private UIDefaults[]

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Overrides java.util.Hashtable.clear.

Implements java.util.Map.clear.

Clears this hashtable so that it contains no keys.

public Enumeration<Object>
elements()

Overrides java.util.Hashtable.elements.

Returns an enumeration of the values in this hashtable.

public Set<Map.Entry<Object, Object>>
entrySet()

Overrides java.util.Hashtable.entrySet.

Implements java.util.Map.entrySet.

Returns a Set view of the mappings contained in this map.

public Object
get(Object key)

Overrides javax.swing.UIDefaults.get.

Implements java.util.Map.get.

Returns the value for key.

public Object
get(Object key, Locale l)

Overrides javax.swing.UIDefaults.get.

Returns the value for key associated with the given locale.

protected void
getUIError(String msg)

Overrides javax.swing.UIDefaults.getUIError.

If getUI() fails for any reason, it calls this method before returning null.

public boolean
isEmpty()

Overrides java.util.Hashtable.isEmpty.

Implements java.util.Map.isEmpty.

Tests if this hashtable maps no keys to values.

public Enumeration<Object>
keys()

Overrides java.util.Hashtable.keys.

Returns an enumeration of the keys in this hashtable.

public Set<Object>
keySet()

Overrides java.util.Hashtable.keySet.

Implements java.util.Map.keySet.

Returns a Set view of the keys contained in this map.

public Object
remove(Object key)

Overrides java.util.Hashtable.remove.

Implements java.util.Map.remove.

Removes the key (and its corresponding value) from this hashtable.

public int
size()

Overrides java.util.Hashtable.size.

Implements java.util.Map.size.

Returns the number of keys in this hashtable.

public synchronized String
toString()

Overrides java.util.Hashtable.toString.

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).

Inherited from javax.swing.UIDefaults:
addPropertyChangeListeneraddResourceBundlefirePropertyChangegetBooleangetBooleangetBordergetBordergetColorgetColorgetDefaultLocalegetDimensiongetDimensiongetFontgetFontgetIcongetIcongetInsetsgetInsetsgetIntgetIntgetPropertyChangeListenersgetStringgetStringgetUIgetUIClassgetUIClassputputDefaultsremovePropertyChangeListenerremoveResourceBundlesetDefaultLocale

Field Detail

tablesback to summary
private UIDefaults[] tables

Constructor Detail

MultiUIDefaultsback to summary
public MultiUIDefaults(UIDefaults[] defaults)
MultiUIDefaultsback to summary
public MultiUIDefaults()

Method Detail

clearback to summary
public void clear()

Overrides java.util.Hashtable.clear.

Implements java.util.Map.clear.

Doc from java.util.Hashtable.clear.

Clears this hashtable so that it contains no keys.

Annotations
@Override
elementsback to summary
public Enumeration<Object> elements()

Overrides java.util.Hashtable.elements.

Doc from java.util.Hashtable.elements.

Returns an enumeration of the values in this hashtable. Use the Enumeration methods on the returned object to fetch the elements sequentially. If the hashtable is structurally modified while enumerating over the values then the results of enumerating are undefined.

Annotations
@Override
entrySetback to summary
public Set<Map.Entry<Object, Object>> entrySet()

Overrides java.util.Hashtable.entrySet.

Implements java.util.Map.entrySet.

Doc from java.util.Hashtable.entrySet.

Returns a Set view of the mappings contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress (except through the iterator's own remove operation, or through the setValue operation on a map entry returned by the iterator) the results of the iteration are undefined. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll and clear operations. It does not support the add or addAll operations.

Annotations
@Override
getback to summary
public Object get(Object key)

Overrides javax.swing.UIDefaults.get.

Implements java.util.Map.get.

Doc from javax.swing.UIDefaults.get.

Returns the value for key. If the value is a 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.

Annotations
@Override
getback to summary
public Object get(Object key, Locale l)

Overrides javax.swing.UIDefaults.get.

Doc from javax.swing.UIDefaults.get.

Returns the value for key associated with the given locale. If the value is a 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.

Annotations
@Override
getUIErrorback to summary
protected void getUIError(String msg)

Overrides javax.swing.UIDefaults.getUIError.

Doc from javax.swing.UIDefaults.getUIError.

If getUI() fails for any reason, it calls this method before returning null. Subclasses may choose to do more or less here.

Annotations
@Override
isEmptyback to summary
public boolean isEmpty()

Overrides java.util.Hashtable.isEmpty.

Implements java.util.Map.isEmpty.

Doc from java.util.Hashtable.isEmpty.

Tests if this hashtable maps no keys to values.

Annotations
@Override
keysback to summary
public Enumeration<Object> keys()

Overrides java.util.Hashtable.keys.

Doc from java.util.Hashtable.keys.

Returns an enumeration of the keys in this hashtable. Use the Enumeration methods on the returned object to fetch the keys sequentially. If the hashtable is structurally modified while enumerating over the keys then the results of enumerating are undefined.

Annotations
@Override
keySetback to summary
public Set<Object> keySet()

Overrides java.util.Hashtable.keySet.

Implements java.util.Map.keySet.

Doc from java.util.Hashtable.keySet.

Returns a Set view of the keys contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress (except through the iterator's own remove operation), the results of the iteration are undefined. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll, and clear operations. It does not support the add or addAll operations.

Annotations
@Override
removeback to summary
public Object remove(Object key)

Overrides java.util.Hashtable.remove.

Implements java.util.Map.remove.

Doc from java.util.Hashtable.remove.

Removes the key (and its corresponding value) from this hashtable. This method does nothing if the key is not in the hashtable.

Annotations
@Override
sizeback to summary
public int size()

Overrides java.util.Hashtable.size.

Implements java.util.Map.size.

Doc from java.util.Hashtable.size.

Returns the number of keys in this hashtable.

Annotations
@Override
toStringback to summary
public synchronized String toString()

Overrides java.util.Hashtable.toString.

Doc from java.util.Hashtable.toString.

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). Each entry is rendered as the key, an equals sign =, and the associated element, where the toString method is used to convert the key and element to strings.

Annotations
@Override
javax.swing back to summary

private Class MultiUIDefaults.MultiUIDefaultsEnumerator

extends Object
implements Enumeration<Object>
Class Inheritance
All Implemented Interfaces
java.util.Enumeration

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private Iterator<Map.Entry<Object, Object>>
private MultiUIDefaults.MultiUIDefaultsEnumerator.Type

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
hasMoreElements()

Implements java.util.Enumeration.hasMoreElements.

Tests if this enumeration contains more elements.

public Object
nextElement()

Implements java.util.Enumeration.nextElement.

Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

iteratorback to summary
private Iterator<Map.Entry<Object, Object>> iterator
typeback to summary
private MultiUIDefaults.MultiUIDefaultsEnumerator.Type type

Constructor Detail

MultiUIDefaultsEnumeratorback to summary
pack-priv MultiUIDefaultsEnumerator(MultiUIDefaults.MultiUIDefaultsEnumerator.Type type, Set<Map.Entry<Object, Object>> entries)

Method Detail

hasMoreElementsback to summary
public boolean hasMoreElements()

Implements java.util.Enumeration.hasMoreElements.

Doc from java.util.Enumeration.hasMoreElements.

Tests if this enumeration contains more elements.

nextElementback to summary
public Object nextElement()

Implements java.util.Enumeration.nextElement.

Doc from java.util.Enumeration.nextElement.

Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

javax.swing back to summary

public final Enum MultiUIDefaults.MultiUIDefaultsEnumerator.Type

extends Enum<MultiUIDefaults.MultiUIDefaultsEnumerator.Type>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final MultiUIDefaults.MultiUIDefaultsEnumerator.Type
public static final MultiUIDefaults.MultiUIDefaultsEnumerator.Type

Constructor Summary

AccessConstructor and Description
private
Type()

Field Detail

ELEMENTSback to summary
public static final MultiUIDefaults.MultiUIDefaultsEnumerator.Type ELEMENTS
KEYSback to summary
public static final MultiUIDefaults.MultiUIDefaultsEnumerator.Type KEYS

Constructor Detail

Typeback to summary
private Type()

Method Detail

valueOfback to summary
public static MultiUIDefaults.MultiUIDefaultsEnumerator.Type valueOf(String name)
valuesback to summary
public static MultiUIDefaults.MultiUIDefaultsEnumerator.Type[] values()