< prev index next >

src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/DesktopProperty.java

Print this page




 182 
 183     /**
 184      * Invalidates the current value.
 185      *
 186      * @param laf the LookAndFeel this DesktopProperty was created with
 187      */
 188     public void invalidate(LookAndFeel laf) {
 189         invalidate();
 190     }
 191 
 192     /**
 193      * Invalides the current value so that the next invocation of
 194      * <code>createValue</code> will ask for the property again.
 195      */
 196     public void invalidate() {
 197         value = null;
 198     }
 199 
 200     /**
 201      * Requests that all components in the GUI hierarchy be updated
 202      * to reflect dynamic changes in this look&feel.  This update occurs
 203      * by uninstalling and re-installing the UI objects. Requests are
 204      * batched and collapsed into a single update pass because often
 205      * many desktop properties will change at once.
 206      */
 207     protected void updateUI() {
 208         if (!isUpdatePending()) {
 209             setUpdatePending(true);
 210             Runnable uiUpdater = new Runnable() {
 211                 public void run() {
 212                     updateAllUIs();
 213                     setUpdatePending(false);
 214                 }
 215             };
 216             SwingUtilities.invokeLater(uiUpdater);
 217         }
 218     }
 219 
 220     /**
 221      * Configures the value as appropriate for a defaults property in
 222      * the UIDefaults table.




 182 
 183     /**
 184      * Invalidates the current value.
 185      *
 186      * @param laf the LookAndFeel this DesktopProperty was created with
 187      */
 188     public void invalidate(LookAndFeel laf) {
 189         invalidate();
 190     }
 191 
 192     /**
 193      * Invalides the current value so that the next invocation of
 194      * <code>createValue</code> will ask for the property again.
 195      */
 196     public void invalidate() {
 197         value = null;
 198     }
 199 
 200     /**
 201      * Requests that all components in the GUI hierarchy be updated
 202      * to reflect dynamic changes in this {@literal look&feel}. This update occurs
 203      * by uninstalling and re-installing the UI objects. Requests are
 204      * batched and collapsed into a single update pass because often
 205      * many desktop properties will change at once.
 206      */
 207     protected void updateUI() {
 208         if (!isUpdatePending()) {
 209             setUpdatePending(true);
 210             Runnable uiUpdater = new Runnable() {
 211                 public void run() {
 212                     updateAllUIs();
 213                     setUpdatePending(false);
 214                 }
 215             };
 216             SwingUtilities.invokeLater(uiUpdater);
 217         }
 218     }
 219 
 220     /**
 221      * Configures the value as appropriate for a defaults property in
 222      * the UIDefaults table.


< prev index next >