SalesPoint v3.3 API

users.events
Class UserDataAdapter

java.lang.Object
  extended by users.events.UserDataAdapter
All Implemented Interfaces:
EventListener, UserDataListener

public abstract class UserDataAdapter
extends Object
implements UserDataListener

An abstract adapter class for receiving user data events. The methods in this class are empty. This class exists as convenience for creating listener objects.

Extend this class to create a UserDataEvent listener and override the methods for the events of interest. (If you implement the UserDataListener 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 UserManager using the UserManager's UserManager.addUserDataListener(users.events.UserDataListener) method. When a user is added or removed, the relevant method in the listener object is invoked, and the UserDataEvent is passed to it.

Since:
v2.0
Author:
Steffen Zschaler
See Also:
UserDataEvent, UserDataListener, UserManager

Constructor Summary
UserDataAdapter()
           
 
Method Summary
 void userAdded(UserDataEvent e)
          Called whenever a user was added to the source.
 void userDeleted(UserDataEvent e)
          Called whenever a user was deleted from the source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDataAdapter

public UserDataAdapter()
Method Detail

userAdded

public void userAdded(UserDataEvent e)
Called whenever a user was added to the source. The new user will be contained in the event object.

Specified by:
userAdded in interface UserDataListener
Parameters:
e - the event object describing the event.
Override:
Sometimes

userDeleted

public void userDeleted(UserDataEvent e)
Called whenever a user was deleted from the source. The deleted user will be contained in the event object.

Specified by:
userDeleted in interface UserDataListener
Parameters:
e - the event object describing the event.
Override:
Sometimes

SalesPoint v3.3 API