Code example for PropertyChangeListener

Methods: propertyChange

0
        PropertyChangeListener listener = _listenerRef.get();
        if (listener == null) {
            removeListener(); 
        } 
        else 
            listener.propertyChange(evt);
    } 
 
    public void itemStateChanged(ItemEvent e) {
 
    } 
 
    public void stateChanged(ChangeEvent e) {
 
    } 
 
    private void removeListener() { 
        try { 
            Method method = _src.getClass().getMethod("removePropertyChangeListener"
                    , new Class[]{PropertyChangeListener.class});