|
JIDE Common Layer 2.7.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jidesoft.plaf.WindowsDesktopProperty
public class WindowsDesktopProperty
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.
Constructor Summary | |
---|---|
WindowsDesktopProperty(java.lang.String key,
java.lang.Object fallback,
java.awt.Toolkit toolkit)
Creates a DesktopProperty. |
|
WindowsDesktopProperty(java.lang.String key,
java.lang.Object fallback,
java.awt.Toolkit toolkit,
float fontSize)
|
|
WindowsDesktopProperty(java.lang.String key,
java.lang.Object fallback,
java.awt.Toolkit toolkit,
float fontSize,
int fontStyle)
|
Method Summary | |
---|---|
protected java.lang.Object |
configureValue(java.lang.Object value)
Configures the value as appropriate for a defaults property in the UIDefaults table. |
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. |
protected java.lang.Object |
getDefaultValue()
Returns the value to use if the desktop property is null. |
protected java.lang.String |
getKey()
Returns the key used to lookup the desktop properties value. |
protected java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WindowsDesktopProperty(java.lang.String key, java.lang.Object fallback, java.awt.Toolkit toolkit)
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.public WindowsDesktopProperty(java.lang.String key, java.lang.Object fallback, java.awt.Toolkit toolkit, float fontSize)
public WindowsDesktopProperty(java.lang.String key, java.lang.Object fallback, java.awt.Toolkit toolkit, float fontSize, int fontStyle)
Method Detail |
---|
public java.lang.Object createValue(javax.swing.UIDefaults table)
createValue
in interface javax.swing.UIDefaults.ActiveValue
protected java.lang.Object getValueFromDesktop()
protected java.lang.Object getDefaultValue()
public void invalidate()
createValue
will ask for the property again.
protected void updateUI()
protected java.lang.Object configureValue(java.lang.Object value)
protected java.lang.String getKey()
|
JIDE Common Layer 2.7.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |