package users.events;

/**
  * An abstract adapter class for receiving capability data events. The methods in this
  * class are empty. This class exists as convenience for creating listener objects.
  *
  * <p>Extend this class to create a CapabilityDataEvent listener and override the methods
  * for the events of interest. (If you implement the CapabilityDataListener interface, you
  * have to define all of the methods in it. This abstract class defines empty method bodies for
  * them all, so you can concentrate on defining methods only for events you care about.)</p>
  *
  * <p>Create a listener object using the extended class and then register it with a
  * user using the user's {@link users.User#addCapabilityDataListener} method. When a capability
  * is added or replaced, the relevant method in the listener object is invoked, and the
  * {@link CapabilityDataEvent} is passed to it.</p>
  *
  * @see CapabilityDataEvent
  * @see CapabilityDataListener
  * @see users.User
  * @see users.Capability
  *
  * @author Steffen Zschaler
  * @version 2.0 06/05/1999
  * @since v2.0
  */
public abstract class CapabilityDataAdapter implements CapabilityDataListener {

  /**
    * 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 Sometimes
    */
  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 Sometimes
    */
  public void capabilitiesReplaced (CapabilityDataEvent e) {};
}