Examples of removePropertyChangeListener()


Examples of es.iiia.shapegrammar.model.NodeModel.removePropertyChangeListener()

    NodeModel model = (NodeModel) editor.getModel();
    ShapeEditorOutlinePage outline = (ShapeEditorOutlinePage) editor
        .getContentOutlinePage(model);

    model.removePropertyChangeListener(outline);
    model.addPropertyChangeListener(outline);

    outline.repaint(editor.getModel());

    // this.fireChangeListeners(null, part);
View Full Code Here

Examples of java.awt.KeyboardFocusManager.removePropertyChangeListener()

        PropertyChangeListener[] listeners = manager
                .getPropertyChangeListeners("permanentFocusOwner");
        for (int i = listeners.length - 1; i >= 0; i--) {
            if (listeners[i].getClass().getName().startsWith(
                    "javax.swing.JTable")) {
                manager.removePropertyChangeListener("permanentFocusOwner",
                        listeners[i]);
                break;
            }
        }
        if (editorRemover == null) {
View Full Code Here

Examples of java.beans.PropertyChangeSupport.removePropertyChangeListener()

                PropertyChangeListener listener)
        {
            PropertyChangeSupport pcs = (PropertyChangeSupport)
                    AppContext.getAppContext().get(PROP_CHANGE_SUPPORT_KEY);
            if (null != pcs) {
                pcs.removePropertyChangeListener(propertyName, listener);
            }
        }

        @Override
        public synchronized PropertyChangeListener[] getPropertyChangeListeners()
View Full Code Here

Examples of java.beans.PropertyEditor.removePropertyChangeListener()

            fail("Should throw IllegalArgumentException");
        } catch (IllegalArgumentException e) {
            // expected
        }

        e2.removePropertyChangeListener(listener);
        e2.setAsText("255,255,255");
        assertEquals("java.awt.Color[r=255,g=255,b=255]", ((Color) e2
                .getValue()).toString());
    }
   
View Full Code Here

Examples of java.beans.PropertyEditorSupport.removePropertyChangeListener()

        support.addPropertyChangeListener(proxy);
        support.firePropertyChange();
        assertSame(support, target.getEventSource());

        target.setEventSource(null);
        support.removePropertyChangeListener(proxy);
        support.firePropertyChange();
        assertNull(target.getEventSource());
    }

    public void testRemovePropertyChangeListener_null() {
View Full Code Here

Examples of java.beans.beancontext.BeanContextChild.removePropertyChangeListener()

            */
            if (publicApi) {

                // remove the property/veto listeners -- we know we want to remove the bean
                // and don't need to be notified if we have initiated the removal
                bcc.removePropertyChangeListener("beanContext", _childPcl);
                bcc.removeVetoableChangeListener("beanContext", _childVcl);

                try {
                    bcc.setBeanContext(null);
                }
View Full Code Here

Examples of java.beans.beancontext.BeanContextChildSupport.removePropertyChangeListener()

        assertSame(ctx2, support.lastReleaseBeanContext);
    }

    public void testRemovePropertyChangeListener_NullParam() {
        BeanContextChildSupport support = new MockBeanContextChildSupport();
        support.removePropertyChangeListener("property name", null);
    }

    public void testRemovePropertyChangeListener() {
        BeanContextChildSupport support = new MockBeanContextChildSupport();
        MockPropertyChangeListener l1 = new MockPropertyChangeListener();
View Full Code Here

Examples of java.util.logging.LogManager.removePropertyChangeListener()

    public void removePropertyChangeListener(PropertyChangeListener l) throws SecurityException {
        LogManager logManager = getContextualLogManager();
        if (logManager == null) {
            super.removePropertyChangeListener(l);
        } else {
            logManager.removePropertyChangeListener(l);
        }
    }

    @Override
    public void reset() throws SecurityException {
View Full Code Here

Examples of javax.accessibility.AccessibleContext.removePropertyChangeListener()

        frame.show();
        SwingWaitTestCase.requestFocusInWindowForComponent(button1);
        listener1.checkLastPropertyFired(button1.getAccessibleContext(),
                AccessibleContext.ACCESSIBLE_STATE_PROPERTY, null, AccessibleState.FOCUSED);
        listener1.reset();
        bContext.removePropertyChangeListener(listener1);
        SwingWaitTestCase.requestFocusInWindowForComponent(button2);
        assertFalse(listener1.isChanged());
    }

    /*
 
View Full Code Here

Examples of javax.swing.JButton.removePropertyChangeListener()

            }
        });
        button.addPropertyChangeListener(new PropertyChangeListener() {
            public void propertyChange(PropertyChangeEvent event) {
                for (PropertyChangeListener listener : button.getPropertyChangeListeners())
                    button.removePropertyChangeListener(listener);
            }
        });
        button.setName(null);
        if (!isCalled)
            throw new Error("test failed");
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.