java.lang.Object | |
↳ | com.sun.java.swing.plaf.windows.DesktopProperty |
Wrapper for a value 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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a DesktopProperty.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
UIManager.LazyValue method, returns the value from the desktop
or the fallback value if the desktop value is null.
| |||||||||||
Invalidates the current value.
| |||||||||||
Invalides the current value so that the next invocation of
createValue will ask for the property again. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Configures the value as appropriate for a defaults property in
the UIDefaults table.
| |||||||||||
Returns the value to use if the desktop property is null.
| |||||||||||
Returns the key used to lookup the desktop properties value.
| |||||||||||
Returns the value from the desktop.
| |||||||||||
Requests that all components in the GUI hierarchy be updated
to reflect dynamic changes in this look&feel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
javax.swing.UIDefaults.ActiveValue
|
Creates a DesktopProperty.
key | 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. |
UIManager.LazyValue method, returns the value from the desktop or the fallback value if the desktop value is null.
table | a UIDefaults table |
---|
Object
Invalidates the current value.
laf | the LookAndFeel this DesktopProperty was created with |
---|
Invalides the current value so that the next invocation of
createValue
will ask for the property again.
Configures the value as appropriate for a defaults property in the UIDefaults table.
Requests that all components in the GUI hierarchy be updated to reflect dynamic changes in this look&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.