Code example for PropertyChangeSupport

Methods: addPropertyChangeListener

0
    // Class Public Methods 
    // *************************** 
 
    public void addPropertyChangeListener(PropertyChangeListener pcl) {
        if (propertySupport == null) {
            propertySupport = new PropertyChangeSupport(this);
        } 
        propertySupport.addPropertyChangeListener(pcl);
    } 
 
    protected void firePropertyChange(PropertyChangeEvent pce) {
        if (propertySupport != null) {
            propertySupport.firePropertyChange(pce);
        } 
    } 
 
    public void addAction(CloudAction action) {
    	actions.add(action);
    } 
     
    public void removeAction(CloudAction action) {