Code example for PropertyChangeSupport

Methods: getPropertyChangeListeners

0
    protected abstract Object getItemFromXML(Element itemElt) throws InvalidDataException;
 
    protected abstract String getXMLRootElement();
 
    public PropertyChangeListener[] getListeners() {
        return listenerSupport.getPropertyChangeListeners();
    } 
 
    public void addListener(PropertyChangeListener listener) {
        listenerSupport.addPropertyChangeListener(listener);
    } 
 
    public void notifyListenersOfChange() { 
        listenerSupport.firePropertyChange("configuration", null, this);
    } 
 
    public void removeListener(PropertyChangeListener listener) {
        listenerSupport.removePropertyChangeListener(listener);
    } 
}