|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.plaf.DefaultsList
public final class DefaultsList
A specialty "list" for working with UI defaults. Requires adds to be done using key/value pairs. The purpose of this list is to enforce additions as pairs.
| Constructor Summary | |
|---|---|
DefaultsList()
Creates a DefaultsList. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.Object key,
java.lang.Object value)
Adds a key/value pair to the defaults list. |
void |
add(java.lang.Object key,
java.lang.Object value,
boolean enableChecking)
Adds a key/value pair to the defaults list. |
java.lang.Object[] |
toArray()
Gets a copy of this list as an array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultsList()
DefaultsList.
| Method Detail |
|---|
public void add(java.lang.Object key,
java.lang.Object value)
add(Object, Object, boolean) with enableChecking set to
true.
key - the key that will be used to query UIDefaultsvalue - the value associated with the key
java.lang.NullPointerException - if key is null
java.lang.IllegalArgumentException - if value is a type that should be a
UIResource but is not. For instance, passing in a
Border that is not a UIResource will
cause an exception. This checking must be enabled.
public void add(java.lang.Object key,
java.lang.Object value,
boolean enableChecking)
null
value is treated specially. A null-value pair is never added to
the list and, furthermore, if a key/value pair exists in this list with
the same key as the newly added one, it is removed.
key - the key that will be used to query UIDefaultsvalue - the value associated with the keyenableChecking - if true then the value is checked to ensure that
it is a UIResource, if appropriate
java.lang.NullPointerException - if key is null
java.lang.IllegalArgumentException - if value is a type that should be a
UIResource but is not. For instance, passing in a
Border that is not a UIResource will
cause an exception. This checking must be enabled.public java.lang.Object[] toArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||