public class UIResourceCollection
extends java.lang.Object
| Constructor and Description |
|---|
UIResourceCollection()
Default constructor.
|
UIResourceCollection(javax.swing.UIDefaults defaults)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasHandler(java.lang.String id)
Is there a handler for a given id?
|
static void |
main(java.lang.String[] args)
Test code.
|
(package private) boolean |
setUIValue(java.lang.String id,
java.lang.Object value)
Set the value in the UI defaults.
|
boolean |
setValue(java.lang.String id,
java.lang.String value)
Set a value in the wrapped UI defaults.
|
int |
setValues(java.lang.String glob,
java.lang.String value)
Set some values in the wrapped UI defaults.
|
public UIResourceCollection()
public UIResourceCollection(javax.swing.UIDefaults defaults)
defaults - UI defaultspublic boolean setValue(java.lang.String id,
java.lang.String value)
id - the id of the valuevalue - the value in textual formtrue if the value was set,false if the value was not set because there was no handler
or the textual value was not convertablepublic int setValues(java.lang.String glob,
java.lang.String value)
glob - glob mask with * (any number of chars), ? (one char), or
[ABX-Z] (a char out of a set)value - value to set with matching keysGlobMatcherpublic boolean hasHandler(java.lang.String id)
id - the resource idboolean setUIValue(java.lang.String id,
java.lang.Object value)
id - the stringized keyvalue - the value to settrue if the id could be resolved into a key,false otherwisepublic static void main(java.lang.String[] args)
args - ignored