Package java.beans

Examples of java.beans.PropertyChangeEvent


            }
        };

        assertTrue(changer.addListener(listener));
        assertFalse(changer.addListener(listener));
        changer.firePropertyChange(new PropertyChangeEvent(this, "NOTHING", null, null));

        assertTrue(changer.removeListener(listener));
    }
View Full Code Here


            return;

        if (oldValue != null && newValue != null && oldValue.equals(newValue)) {
            return;
        }
        firePropertyChange(new PropertyChangeEvent(getSource(), propertyName,
                oldValue, newValue));
    }
View Full Code Here

        return listeners.remove(l);
    }

    public void fireChanges() {
        for (PropertyChangeListener pcl : listeners) {
            pcl.propertyChange(new PropertyChangeEvent(this, ICalendarSettings.CHANGE_ALL, null, null));
        }
    }
View Full Code Here

     * edit tool loaders.
     */
    public void addPropertyChangeListener(PropertyChangeListener listener) {
        if (listener != null) {
            super.addPropertyChangeListener(listener);
            listener.propertyChange(new PropertyChangeEvent(this, LoadersProperty, null, rawLoaders));
        }
    }
View Full Code Here

    }

    public void addPropertyChangeListener(String property,
                                          PropertyChangeListener pcl) {
        super.addPropertyChangeListener(property, pcl);
        pcl.propertyChange(new PropertyChangeEvent(this, FORMATTER_PROPERTY, null, activeFormatter));
    }
View Full Code Here

    }

    public void addPropertyChangeListener(PropertyChangeListener pcl) {
        if (pcl != null) {
            pcs.addPropertyChangeListener(pcl);
            pcl.propertyChange(new PropertyChangeEvent(this, AvailableProjectionProperty, null, projLoaders));
        }
    }
View Full Code Here

    public void addPropertyChangeListener(String propertyName,
                                          PropertyChangeListener pcl) {
        if (pcl != null) {
            pcs.addPropertyChangeListener(propertyName, pcl);
            pcl.propertyChange(new PropertyChangeEvent(this, AvailableProjectionProperty, null, projLoaders));
        }
    }
View Full Code Here

     * does, this method also provides the listener with the initial version of
     * the Layer and Cursor properties.
     */
    public void addPropertyChangeListener(PropertyChangeListener pcl) {
        super.addPropertyChangeListener(pcl);
        pcl.propertyChange(new PropertyChangeEvent(this, LayersProperty, currentLayers, currentLayers));
        pcl.propertyChange(new PropertyChangeEvent(this, CursorProperty, this.getCursor(), this.getCursor()));
        pcl.propertyChange(new PropertyChangeEvent(this, BackgroundProperty, this.getBckgrnd(), this.getBckgrnd()));
    }
View Full Code Here

  if (!rejectedSetBCOnce) {
      if (rejectedSetBCOnce = !validatePendingSetBeanContext(bc)) {
    throw new PropertyVetoException(
        "setBeanContext() change rejected:",
        new PropertyChangeEvent(beanContextChildPeer, "beanContext", oldValue, newValue)
    );
      }

      try {
    fireVetoableChange("beanContext",
View Full Code Here

    }

    private void firePropertyChangedEvent(String fieldName, Object oldValue,
        Object newValue) throws PropertyVetoException
    {
        _changeSupport.fireVetoableChange(new PropertyChangeEvent(this,
                fieldName, oldValue, newValue));
    }
View Full Code Here

TOP

Related Classes of java.beans.PropertyChangeEvent

Copyright © 2018 www.massapicom. 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.