Examples of removePropertyChangeListener()


Examples of javax.swing.JLabel.removePropertyChangeListener()

        new Test6570354().test(true);
    }

    protected JLabel getObject() {
        JLabel label = new JLabel("");
        label.removePropertyChangeListener((PropertyChangeListener) label.getUI());
        return label;
    }

    protected JLabel getAnotherObject() {
        return new JLabel("");
View Full Code Here

Examples of javax.swing.JMenu.removePropertyChangeListener()

        menu.removeMouseListener(mouseInputListener);
        menu.removeMouseMotionListener(mouseInputListener);
        mouseInputListener = null;
        menu.removeMenuKeyListener(menuKeyListener);
        menuKeyListener = null;
        menu.removePropertyChangeListener(propertyChangeListener);
        propertyChangeListener = null;
        menu.removeChangeListener(changeListener);
        changeListener = null;
        menu.removeMenuListener(menuListener);
        menuListener = null;
View Full Code Here

Examples of javax.swing.JScrollBar.removePropertyChangeListener()

            vsb.getModel().removeChangeListener(vsbChangeListener);
            vsb.removePropertyChangeListener(vsbPropertyChangeListener);
        }
        if (hsb != null) {
            hsb.getModel().removeChangeListener(hsbChangeListener);
            hsb.removePropertyChangeListener(hsbPropertyChangeListener);
        }

        scrollpane.removePropertyChangeListener(spPropertyChangeListener);

        if (mouseScrollListener != null) {
View Full Code Here

Examples of javax.swing.JScrollPane.removePropertyChangeListener()

            scrollPane.removeComponentListener(componentListener);
            scrollPane.getVerticalScrollBar()
                .removeAdjustmentListener(this);
            scrollPane.getHorizontalScrollBar()
                .removeAdjustmentListener(this);
            scrollPane.removePropertyChangeListener(this);
          }

          // Restores the layout cache of the backing graph
          backingGraph.setGraphLayoutCache(initialLayoutCache);
        }
View Full Code Here

Examples of javax.swing.UIDefaults.removePropertyChangeListener()

   
    public static void uninstall() {
        if (isInstalled()) {
            assert pcl != null;
            UIDefaults uid = UIManager.getDefaults();
            uid.removePropertyChangeListener(pcl);
            pcl = null;
            String val = originalImpl.getName();
            uid.put(KEY, val);
            uid.put(val, originalImpl);
            originalImpl = null;
View Full Code Here

Examples of javax.swing.event.SwingPropertyChangeSupport.removePropertyChangeListener()

    harness.check(s.hasListeners("X"), false);
   
    // add a listener for all events
    s.addPropertyChangeListener(this);
    harness.check(s.hasListeners("X"));
    s.removePropertyChangeListener(this);
    harness.check(s.hasListeners("X"), false);
   
    // add a listener for a specific event
    s.addPropertyChangeListener("X", this);
    harness.check(s.hasListeners("X"), true);
View Full Code Here

Examples of javax.swing.event.SwingPropertyChangeSupport.removePropertyChangeListener()

    harness.check(s.hasListeners("X"), false);
   
    // add a listener for a specific event
    s.addPropertyChangeListener("X", this);
    harness.check(s.hasListeners("X"), true);
    s.removePropertyChangeListener("X", this);
    harness.check(s.hasListeners("X"), false);
   
    // check null argument - in 1.5.0 the spec says that this checks for
    // listeners registered against all properties
    harness.check(s.hasListeners(null), false);
View Full Code Here

Examples of javax.swing.event.SwingPropertyChangeSupport.removePropertyChangeListener()

    harness.check(s.hasListeners(null), false);
   
    // add a listener for all events
    s.addPropertyChangeListener(this);
    harness.check(s.hasListeners(null));
    s.removePropertyChangeListener(this);
    harness.check(s.hasListeners(null), false);
  }

  public void propertyChange(PropertyChangeEvent e)
  {
View Full Code Here

Examples of javax.swing.event.SwingPropertyChangeSupport.removePropertyChangeListener()

    PropertyChangeListener[] listeners = s.getPropertyChangeListeners();
    harness.check(listeners.length, 1);
    harness.check(listeners[0], this);
   
    // remove it again
    s.removePropertyChangeListener(this);
    listeners = s.getPropertyChangeListeners();
    harness.check(listeners.length, 0);
   
    // remove a listener that doesn't exist
    s.removePropertyChangeListener(this);
View Full Code Here

Examples of javax.swing.table.TableColumn.removePropertyChangeListener()

            if (changeType == ListEvent.DELETE) {
                if (selectionModel != null)
                    selectionModel.removeIndexInterval(index, index);

                final TableColumn oldColumn = listChanges.getOldValue();
                oldColumn.removePropertyChangeListener(this);
                fireColumnRemoved(new TableColumnModelEvent(this, index, 0));

            } else if (changeType == ListEvent.INSERT) {
                final TableColumn newColumn = listChanges.getSourceList().get(index);
                if (newColumn == null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.