package users.events;

import java.util.EventListener;

/**
  * A listener listening for CapabilityDataEvents.
  *
  * @see users.User
  * @see users.Capability
  * @see CapabilityDataEvent
  *
  * @author Steffen Zschaler
  * @version 2.0 05/05/1999
  * @since v2.0
  */
public interface CapabilityDataListener extends EventListener {

  /**
    * Called whenever capabilities where added to the source. The new capabilities
    * will be contained in the event object.
    *
    * @param e the event object describing the event.
    *
    * @override Always
    */
  public void capabilitiesAdded (CapabilityDataEvent e);

  /**
    * Called whenever capabilities where replaced in the source. The new capabilities
    * will be contained in the event object.
    *
    * @param e the event object describing the event.
    *
    * @override Always
    */
  public void capabilitiesReplaced (CapabilityDataEvent e);
}