Code example for PropertyChangeSupport

Methods: getPropertyChangeListeners

0
    public void removePropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.removePropertyChangeListener(listener);
    } 
 
    public PropertyChangeListener[] getPropertyChangeListeners() {
        return changeSupport.getPropertyChangeListeners();
    } 
 
    public boolean containsPropertyChangeListener(PropertyChangeListener listener) {
        PropertyChangeListener[] listeners = getPropertyChangeListeners();
        for(int i=0; i<listeners.length; i++) {
            if(listeners[i]==listener)
                return true; 
        } 
        return false; 
    } 
 
}