| java.lang.Object com.jidesoft.plaf.WindowsDesktopProperty
WindowsDesktopProperty | public class WindowsDesktopProperty implements UIDefaults.ActiveValue(Code) | | 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.
Note: This class is the same as DesktopProperty under com.sun.java.swing.plaf.windows.
We keep a copy of it here is mainly for compatibility reason in case Sun
decides to change the location of this class.
|
Method Summary | |
protected Object | configureValue(Object value) Configures the value as appropriate for a defaults property in
the UIDefaults table. | public 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 | getKey() Returns the key used to lookup the desktop properties value. | protected Object | getValueFromDesktop() Returns the value from the desktop. | public 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. |
WindowsDesktopProperty | public WindowsDesktopProperty(String key, Object fallback, Toolkit toolkit)(Code) | | Creates a DesktopProperty.
Parameters: key - Key used in looking up desktop value. Parameters: fallback - Value used if desktop property is null. Parameters: toolkit - Toolkit used to fetch property from, can be nullin which default will be used. |
WindowsDesktopProperty | public WindowsDesktopProperty(String key, Object fallback, Toolkit toolkit, float fontSize, int fontStyle)(Code) | | |
configureValue | protected Object configureValue(Object value)(Code) | | Configures the value as appropriate for a defaults property in
the UIDefaults table.
|
createValue | public Object createValue(UIDefaults table)(Code) | | UIManager.LazyValue method, returns the value from the desktop
or the fallback value if the desktop value is null.
|
getDefaultValue | protected Object getDefaultValue()(Code) | | Returns the value to use if the desktop property is null.
|
getKey | protected String getKey()(Code) | | Returns the key used to lookup the desktop properties value.
|
getValueFromDesktop | protected Object getValueFromDesktop()(Code) | | Returns the value from the desktop.
|
invalidate | public void invalidate()(Code) | | Invalides the current value so that the next invocation of
createValue will ask for the property again.
|
updateUI | protected void updateUI()(Code) | | 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.
|
|
|