public class ExtWindowsDesktopProperty extends Object implements UIDefaults.ActiveValue
UIManager.ActiveValue method
createValue. If the underlying desktop property changes this
will force the UIs to update all known Frames. You can invoke
invalidate to force the value to be fetched again.| Constructor and Description |
|---|
ExtWindowsDesktopProperty(String[] keys,
Object[] fallback,
Toolkit toolkit,
ConvertListener listener)
Creates a DesktopProperty.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
configureValue(Object value)
Configures the value as appropriate for a defaults property in
the UIDefaults table.
|
protected Object[] |
configureValue(Object[] value)
Configures the value as appropriate for a defaults property in
the UIDefaults table.
|
Object |
createValue(UIDefaults table)
UIManager.LazyValue method, returns the value from the desktop
or the fallback value if the desktop value is null.
|
protected Object[] |
getDefaultValue()
Returns the value to use if the desktop property is null.
|
protected String[] |
getKeys()
Returns the key used to lookup the desktop properties value.
|
protected Object[] |
getValueFromDesktop()
Returns the value from the desktop.
|
void |
invalidate()
Invalides the current value so that the next invocation of
createValue will ask for the property again. |
protected void |
updateUI()
Requests that all components in the GUI hierarchy be updated
to reflect dynamic changes in this look&feel.
|
public ExtWindowsDesktopProperty(String[] keys, Object[] fallback, Toolkit toolkit, ConvertListener listener)
keys - Key used in looking up desktop value.fallback - Value used if desktop property is null.toolkit - Toolkit used to fetch property from, can be null
in which default will be used.public Object createValue(UIDefaults table)
createValue in interface UIDefaults.ActiveValueprotected Object[] getValueFromDesktop()
protected Object[] getDefaultValue()
public void invalidate()
createValue will ask for the property again.protected void updateUI()
protected Object[] configureValue(Object[] value)
protected Object configureValue(Object value)
protected String[] getKeys()