@Override public void propertyChange(PropertyChangeEvent evt) { _path = (String) evt.getNewValue(); _image = (PlanarImage) evt.getOldValue(); updateImage(); if (_support.hasListeners("_low")) { System.out.println("TH _support true"); _support.firePropertyChange("TRESHHOLD.update", _image, _path); } }
public boolean hasListeners(String propertyName) { return pcs.hasListeners(propertyName); }
public void firePropertyChange(String prop, Object old, Object newValue) { if (propertyChangeSupport.hasListeners(prop)) { propertyChangeSupport.firePropertyChange(prop, old, newValue); } }
public boolean hasListeners(String propertyName) { return changeSupport.hasListeners(propertyName); }
public void removePropertyChangeListener(PropertyChangeListener listener) { pcs.removePropertyChangeListener(listener); if (!alwaysActive && !pcs.hasListeners(null)) { setActive(false); } }
/** * Report a property change to registered listeners (for example edit parts). * * @param property the programmatic name of the property that changed * @param oldValue the old value of this property * @param newValue the new value of this property */ protected void firePropertyChange(String property, Object oldValue, Object newValue) { if (pcsDelegate.hasListeners(property)) { pcsDelegate.firePropertyChange(property, oldValue, newValue); } }