Package com.jidesoft.plaf
Class ExtWindowsDesktopProperty
java.lang.Object
com.jidesoft.plaf.ExtWindowsDesktopProperty
- All Implemented Interfaces:
UIDefaults.ActiveValue
Wrapper for multiple values from the desktop. The value is lazily looked up, and can be accessed using the
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 Summary
ConstructorsConstructorDescriptionExtWindowsDesktopProperty
(String[] keys, Object[] fallback, Toolkit toolkit, ConvertListener listener) Creates a DesktopProperty. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.createValue
(UIDefaults table) UIManager.LazyValue method, returns the value from the desktop or the fallback value if the desktop value is null.protected Object[]
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[]
Returns the value from the desktop.void
Invalides the current value so that the next invocation ofcreateValue
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 lookinvalid input: '&feel'.
-
Constructor Details
-
ExtWindowsDesktopProperty
public ExtWindowsDesktopProperty(String[] keys, Object[] fallback, Toolkit toolkit, ConvertListener listener) Creates a DesktopProperty.- Parameters:
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.
-
-
Method Details
-
createValue
UIManager.LazyValue method, returns the value from the desktop or the fallback value if the desktop value is null.- Specified by:
createValue
in interfaceUIDefaults.ActiveValue
-
getValueFromDesktop
Returns the value from the desktop. -
getDefaultValue
Returns the value to use if the desktop property is null. -
invalidate
public void invalidate()Invalides the current value so that the next invocation ofcreateValue
will ask for the property again. -
updateUI
protected void updateUI()Requests that all components in the GUI hierarchy be updated to reflect dynamic changes in this lookinvalid input: '&feel'. This update occurs by uninstalling and re-installing the UI objects. Requests are batched and collapsed into a single update pass because often many desktop properties will change at once. -
configureValue
Configures the value as appropriate for a defaults property in the UIDefaults table. -
configureValue
Configures the value as appropriate for a defaults property in the UIDefaults table. -
getKeys
Returns the key used to lookup the desktop properties value.
-