< prev index next >
src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/DesktopProperty.java
Print this page
*** 30,43 ****
import javax.swing.*;
import javax.swing.plaf.*;
/**
* Wrapper for a value from the desktop. The value is lazily looked up, and
! * can be accessed using the <code>UIManager.ActiveValue</code> method
! * <code>createValue</code>. If the underlying desktop property changes this
* will force the UIs to update all known Frames. You can invoke
! * <code>invalidate</code> to force the value to be fetched again.
*
*/
// NOTE: Don't rely on this class staying in this location. It is likely
// to move to a different package in the future.
public class DesktopProperty implements UIDefaults.ActiveValue {
--- 30,43 ----
import javax.swing.*;
import javax.swing.plaf.*;
/**
* Wrapper for a value from the desktop. The value is lazily looked up, and
! * can be accessed using the {@code UIManager.ActiveValue} method
! * {@code createValue}. If the underlying desktop property changes this
* will force the UIs to update all known Frames. You can invoke
! * {@code invalidate} to force the value to be fetched again.
*
*/
// NOTE: Don't rely on this class staying in this location. It is likely
// to move to a different package in the future.
public class DesktopProperty implements UIDefaults.ActiveValue {
*** 189,199 ****
invalidate();
}
/**
* Invalides the current value so that the next invocation of
! * <code>createValue</code> will ask for the property again.
*/
public void invalidate() {
value = null;
}
--- 189,199 ----
invalidate();
}
/**
* Invalides the current value so that the next invocation of
! * {@code createValue} will ask for the property again.
*/
public void invalidate() {
value = null;
}
< prev index next >