/** * Fires a PropertyChangeEvent. * * @param propertyName The name of the property. * @param oldValue The old value of the property. * @param newValue The new value of the property. */ protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (propertyListeners != null) { propertyListeners.firePropertyChange(propertyName, oldValue, newValue); } }
/** * Removes a PropertyChangeListener for a named property from this instance. * * @param name The name of the property. * @param listener The PropertyChangeListener to be removed. */ public void removePropertyChangeListener(String name, PropertyChangeListener listener) { if (propertyListeners != null) { propertyListeners.removePropertyChangeListener(name, listener); } }
/** * Fires a PropertyChangeEvent. * * @param event The PropertyChangeEvent. */ protected void firePropertyChange(PropertyChangeEvent event) { if (propertyListeners != null) { propertyListeners.firePropertyChange(event); } }
/** * Removes a PropertyChangeListener from this instance. * * @param listener The PropertyChangeListener to be removed. */ public void removePropertyChangeListener(PropertyChangeListener listener) { if (propertyListeners != null) { propertyListeners.removePropertyChangeListener(listener); } }