SalesPoint v3.3 API

users.events
Class CapabilityDataAdapter

java.lang.Object
  extended by users.events.CapabilityDataAdapter
All Implemented Interfaces:
EventListener, CapabilityDataListener

public abstract class CapabilityDataAdapter
extends Object
implements CapabilityDataListener

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.

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.)

Create a listener object using the extended class and then register it with a user using the user's User.addCapabilityDataListener(users.events.CapabilityDataListener) method. When a capability is added or replaced, the relevant method in the listener object is invoked, and the CapabilityDataEvent is passed to it.

Since:
v2.0
Author:
Steffen Zschaler
See Also:
CapabilityDataEvent, CapabilityDataListener, User, Capability

Constructor Summary
CapabilityDataAdapter()
           
 
Method Summary
 void capabilitiesAdded(CapabilityDataEvent e)
          Called whenever capabilities where added to the source.
 void capabilitiesReplaced(CapabilityDataEvent e)
          Called whenever capabilities where replaced in the source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapabilityDataAdapter

public CapabilityDataAdapter()
Method Detail

capabilitiesAdded

public void capabilitiesAdded(CapabilityDataEvent e)
Called whenever capabilities where added to the source. The new capabilities will be contained in the event object.

Specified by:
capabilitiesAdded in interface CapabilityDataListener
Parameters:
e - the event object describing the event.
Override:
Sometimes

capabilitiesReplaced

public void capabilitiesReplaced(CapabilityDataEvent e)
Called whenever capabilities where replaced in the source. The new capabilities will be contained in the event object.

Specified by:
capabilitiesReplaced in interface CapabilityDataListener
Parameters:
e - the event object describing the event.
Override:
Sometimes

SalesPoint v3.3 API