Package com.jidesoft.plaf
Class ExtWindowsDesktopProperty
- java.lang.Object
-
- com.jidesoft.plaf.ExtWindowsDesktopProperty
-
- All Implemented Interfaces:
javax.swing.UIDefaults.ActiveValue
public class ExtWindowsDesktopProperty extends java.lang.Object implements javax.swing.UIDefaults.ActiveValueWrapper for multiple values from the desktop. The value is lazily looked up, and can be accessed using theUIManager.ActiveValuemethodcreateValue. If the underlying desktop property changes this will force the UIs to update all known Frames. You can invokeinvalidateto force the value to be fetched again.
-
-
Constructor Summary
Constructors Constructor Description ExtWindowsDesktopProperty(java.lang.String[] keys, java.lang.Object[] fallback, java.awt.Toolkit toolkit, ConvertListener listener)Creates a DesktopProperty.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectconfigureValue(java.lang.Object value)Configures the value as appropriate for a defaults property in the UIDefaults table.protected java.lang.Object[]configureValue(java.lang.Object[] value)Configures the value as appropriate for a defaults property in the UIDefaults table.java.lang.ObjectcreateValue(javax.swing.UIDefaults table)UIManager.LazyValue method, returns the value from the desktop or the fallback value if the desktop value is null.protected java.lang.Object[]getDefaultValue()Returns the value to use if the desktop property is null.protected java.lang.String[]getKeys()Returns the key used to lookup the desktop properties value.protected java.lang.Object[]getValueFromDesktop()Returns the value from the desktop.voidinvalidate()Invalides the current value so that the next invocation ofcreateValuewill ask for the property again.protected voidupdateUI()Requests that all components in the GUI hierarchy be updated to reflect dynamic changes in this look&feel.
-
-
-
Constructor Detail
-
ExtWindowsDesktopProperty
public ExtWindowsDesktopProperty(java.lang.String[] keys, java.lang.Object[] fallback, java.awt.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 Detail
-
createValue
public java.lang.Object createValue(javax.swing.UIDefaults table)
UIManager.LazyValue method, returns the value from the desktop or the fallback value if the desktop value is null.- Specified by:
createValuein interfacejavax.swing.UIDefaults.ActiveValue
-
getValueFromDesktop
protected java.lang.Object[] getValueFromDesktop()
Returns the value from the desktop.
-
getDefaultValue
protected java.lang.Object[] 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 ofcreateValuewill 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 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.
-
configureValue
protected java.lang.Object[] configureValue(java.lang.Object[] value)
Configures the value as appropriate for a defaults property in the UIDefaults table.
-
configureValue
protected java.lang.Object configureValue(java.lang.Object value)
Configures the value as appropriate for a defaults property in the UIDefaults table.
-
getKeys
protected java.lang.String[] getKeys()
Returns the key used to lookup the desktop properties value.
-
-