Exemplo n.º 1
0
  /**
   * 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);
    }
  }
Exemplo n.º 2
0
  /**
   * 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);
    }
  }
Exemplo n.º 3
0
  /**
   * Fires a PropertyChangeEvent.
   *
   * @param event The PropertyChangeEvent.
   */
  protected void firePropertyChange(PropertyChangeEvent event) {

    if (propertyListeners != null) {
      propertyListeners.firePropertyChange(event);
    }
  }
Exemplo n.º 4
0
  /**
   * Removes a PropertyChangeListener from this instance.
   *
   * @param listener The PropertyChangeListener to be removed.
   */
  public void removePropertyChangeListener(PropertyChangeListener listener) {

    if (propertyListeners != null) {
      propertyListeners.removePropertyChangeListener(listener);
    }
  }