public void unbind() { UIManager.removePropertyChangeListener( listener ); }
public void unbind() { UIManager.removePropertyChangeListener( listener ); }
public void unbind() { UIManager.removePropertyChangeListener( listener ); }
public void unbind() { UIManager.removePropertyChangeListener( listener ); }
public static void tearDown() throws Exception { if (!initialised) return; UIManager.removePropertyChangeListener(reinitListener); //reset the current UI which will overwrite all our values UIManager.setLookAndFeel(UIManager.getLookAndFeel()); uiDelegates=null; reinitListener=null; internalListener=null; initialised=false; } }
@Override public void windowClosing(WindowEvent e) { this.cancelRequests(); UIManager.removePropertyChangeListener(lafSwitchListener); }
@Override public void windowClosed(WindowEvent e) { this.cancelRequests(); UIManager.removePropertyChangeListener(lafSwitchListener); }
/** * {@inheritDoc} */ @Override public void propertyChange(PropertyChangeEvent evt) { SearchFactory sf = ref.get(); if (sf == null) { UIManager.removePropertyChangeListener(this); } else if ("lookAndFeel".equals(evt.getPropertyName())) { sf.updateUI(); } } }
/** * {@inheritDoc} */ @Override public void propertyChange(PropertyChangeEvent evt) { SearchFactory sf = ref.get(); if (sf == null) { UIManager.removePropertyChangeListener(this); } else if ("lookAndFeel".equals(evt.getPropertyName())) { sf.updateUI(); } } }
/** * {@inheritDoc} */ @Override public void propertyChange(PropertyChangeEvent evt) { SearchFactory sf = ref.get(); if (sf == null) { UIManager.removePropertyChangeListener(this); } else if ("lookAndFeel".equals(evt.getPropertyName())) { sf.updateUI(); } } }
/** * {@inheritDoc} */ @Override public void propertyChange(PropertyChangeEvent evt) { SearchFactory sf = ref.get(); if (sf == null) { UIManager.removePropertyChangeListener(this); } else if ("lookAndFeel".equals(evt.getPropertyName())) { sf.updateUI(); } } }
public void propertyChange(PropertyChangeEvent evt) { if ("lookAndFeel".equals(evt.getPropertyName())) { // The look and feel was changed so we need to re-insert // our hook into the new UIDefaults map, first de-initialise // Don't want to call tearDown() as we're already in a LAF change. UIManager.removePropertyChangeListener(reinitListener); initialised=false; uiDelegates=null; reinitListener=null; internalListener=null; startWidget(); } } }
public void propertyChange(PropertyChangeEvent evt) { MockFileSystemView fileSystemView = weakReference.get(); if (fileSystemView == null) { // FileSystemView was destroyed UIManager.removePropertyChangeListener(this); } else { if (evt.getPropertyName().equals("lookAndFeel")) { fileSystemView.useSystemExtensionHiding = UIManager.getDefaults().getBoolean("FileChooser.useSystemExtensionHiding"); } } } });
private synchronized void dispose() { timer.stop(); UIManager.removePropertyChangeListener(this); synchronized (AnimationController.class) { AppContext.getAppContext() .put(ANIMATION_CONTROLLER_KEY, null); } }
/** * Destroys this manager and releases resources. */ @FrameworkOnly public void kill(){ theme.uninstall( controller ); UIManager.removePropertyChangeListener( lookAndFeelObserver ); }
/** * Destroys this manager and releases resources. */ @FrameworkOnly public void kill(){ theme.uninstall( controller ); UIManager.removePropertyChangeListener( lookAndFeelObserver ); }
public void propertyChange (PropertyChangeEvent pce) { if (pce.getSource() instanceof UIManager && "lookAndFeel".equals( //NOI18N pce.getPropertyName())) { String s = UIManager.getLookAndFeel().getClass().getName(); if (s.indexOf("gtk") < 0) { //NOI18N //We have changed look and feels somehow. Unregister. UIManager.removePropertyChangeListener(this); Toolkit.getDefaultToolkit().removePropertyChangeListener( "gnome.Gtk/FontName", this); //NOI18N Toolkit.getDefaultToolkit().removePropertyChangeListener( "gnome.Xft/DPI", this); //NOI18N Toolkit.getDefaultToolkit().removePropertyChangeListener( "gnome.Net/ThemeName", this); //NOI18N } } else { for (ThemeValue tv: instances) { tv.clear(); } } } }
/** * If true, everytime the Swing look and feel is changed, the addon which best matches the * current look and feel will be automatically selected. * * @param tracking * true to automatically update the addon, false to not automatically track the * addon. Defaults to false. * @see #getBestMatchAddonClassName() */ public static synchronized void setTrackingLookAndFeelChanges(boolean tracking) { if (trackingChanges != tracking) { if (tracking) { if (changeListener == null) { changeListener = new UpdateAddon(); } UIManager.addPropertyChangeListener(changeListener); } else { if (changeListener != null) { UIManager.removePropertyChangeListener(changeListener); } changeListener = null; } trackingChanges = tracking; } }
/** * If true, everytime the Swing look and feel is changed, the addon which * best matches the current look and feel will be automatically selected. * * @param tracking * true to automatically update the addon, false to not automatically * track the addon. Defaults to false. * @see #getBestMatchAddonClassName() */ public static synchronized void setTrackingLookAndFeelChanges(boolean tracking) { if (trackingChanges != tracking) { if (tracking) { if (changeListener == null) { changeListener = new UpdateAddon(); } UIManager.addPropertyChangeListener(changeListener); } else { if (changeListener != null) { UIManager.removePropertyChangeListener(changeListener); } changeListener = null; } trackingChanges = tracking; } }
/** * Installs UIDefaults for Help components and installs "lookAndFeel" * property change listener. */ static void installUIDefaults() { UIDefaults table = UIManager.getLookAndFeelDefaults(); if (uiDefaults != table) { uiDefaults = table; UIManager.removePropertyChangeListener(myLAFListener); installLookAndFeelDefaults(); UIManager.addPropertyChangeListener(myLAFListener); } }