Examples of firePropertyChange()


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

        assertSame(c, support.beanContextChildPeer);
    }

    public void testFirePropertyChange_NullParam() {
        BeanContextChildSupport support = new MockBeanContextChildSupport();
        support.firePropertyChange(null, "a", "b");
    }

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

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

        support.addPropertyChangeListener(propName, l1);
        support.addPropertyChangeListener("xxx", l2);
        l1.clearLastEvent();
        l2.clearLastEvent();
        support.firePropertyChange(propName, oldValue, newValue);
        assertEquals(propName, l1.lastEvent.getPropertyName());
        assertSame(oldValue, l1.lastEvent.getOldValue());
        assertSame(newValue, l1.lastEvent.getNewValue());
        assertSame(support, l1.lastEvent.getSource());
        assertNull(l2.lastEvent);
View Full Code Here

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

        support.addPropertyChangeListener(propName, l1);
        support.addPropertyChangeListener("xxx", l2);
        l1.clearLastEvent();
        l2.clearLastEvent();
        support.firePropertyChange(propName, oldValue, newValue);
        assertNull(l1.lastEvent);
        assertNull(l2.lastEvent);
    }

    public void testFirePropertyChange_OldEqualsNew_IsNull() {
View Full Code Here

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

        support.addPropertyChangeListener(propName, l1);
        support.addPropertyChangeListener("xxx", l2);
        l1.clearLastEvent();
        l2.clearLastEvent();
        support.firePropertyChange(propName, oldValue, newValue);
        assertEquals(propName, l1.lastEvent.getPropertyName());
        assertNull(l1.lastEvent.getOldValue());
        assertNull(l1.lastEvent.getNewValue());
        assertSame(support, l1.lastEvent.getSource());
        assertNull(l2.lastEvent);
View Full Code Here

Examples of javax.accessibility.AccessibleContext.firePropertyChange()

            if (value) {
                newValue = state;
            } else {
                oldValue = state;
            }
            ac.firePropertyChange(AccessibleContext.ACCESSIBLE_STATE_PROPERTY, oldValue,
                    newValue);
        }
    }

    public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes) {
View Full Code Here

Examples of javax.accessibility.AccessibleContext.firePropertyChange()

            // Because this code is executed in the DispatchThread, it is better tocatch every
            // exception that might occur
            try {
                AccessibleContext ac = Container.this.accessibleContext;
                if (ac != null) {
                    ac.firePropertyChange(propertyName, oldValue, newValue);
                }
            } catch (java.lang.Exception e) {
                if (Build.DEBUG) {
                    System.err.println(e.getClass().getName() + " caught propagating " + propertyName + " event: " + e.getMessage());
                    e.printStackTrace();
View Full Code Here

Examples of javax.accessibility.AccessibleContext.firePropertyChange()

            // Because this code is executed in the DispatchThread, it is better to catch every
            // exception that might occur
            try {
                AccessibleContext ac = accessibleContext;
                if (ac != null) {
                    ac.firePropertyChange(propertyName, oldValue, newValue);
                }
            } catch (java.lang.Exception e) {
                if (Build.DEBUG) {
                    System.err.println(e.getClass().getName() + " caught propagating " + propertyName + " event: " + e.getMessage());
                    e.printStackTrace();
View Full Code Here

Examples of javax.accessibility.AccessibleContext.firePropertyChange()

            if (value) {
                newValue = state;
            } else {
                oldValue = state;
            }
            ac.firePropertyChange(AccessibleContext.ACCESSIBLE_STATE_PROPERTY, oldValue,
                    newValue);
        }
    }

    public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes) {
View Full Code Here

Examples of javax.accessibility.AccessibleContext.firePropertyChange()

            if (value) {
                newValue = state;
            } else {
                oldValue = state;
            }
            ac.firePropertyChange(AccessibleContext.ACCESSIBLE_STATE_PROPERTY, oldValue,
                    newValue);
        }
    }

    public void setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes) {
View Full Code Here

Examples of javax.swing.JComponent.firePropertyChange()

       
        if (comp instanceof JComponent) {
            JComponent jc = (JComponent) comp;
            jc.putClientProperty("HasDataChanged", Boolean.valueOf(true));
            // TF:13/01/2009:Added in the posting of the hasDataChanged property to allow after value change events to be performed on grid fields
            jc.firePropertyChange("hasDataChanged", false, true);
            while ((jc.getParent() != null) && (jc.getParent() instanceof JComponent)) {
                jc = (JComponent) jc.getParent();
                jc.putClientProperty("HasDataChanged", Boolean.valueOf(true));
                // TF:13/01/2009:Added in the posting of the hasDataChanged property to allow after value change events to be performed on grid fields
                jc.firePropertyChange("hasDataChanged", false, true);
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.