SalesPoint Framework v3.1

users.events
Class UserDataEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byusers.events.UserDataEvent
All Implemented Interfaces:
Serializable

public class UserDataEvent
extends EventObject

An event indicating changes in a UserManager's list of users.

Since:
v2.0
Author:
Steffen Zschaler
See Also:
UserManager, User, UserDataListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UserDataEvent(Object source, User usrData)
          Create a new UserDataEvent giving the source and the user that was affected.
 
Method Summary
 User getUser()
          Get the affected user.
 String getUserName()
          Get the affected user's name.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserDataEvent

public UserDataEvent(Object source,
                     User usrData)
Create a new UserDataEvent giving the source and the user that was affected.

Parameters:
source - the source of this event, usually a UserManager
usrData - the user that was affected.
Method Detail

getUserName

public String getUserName()
Get the affected user's name.

Returns:
the affected user's name.
Override:
Never

getUser

public User getUser()
Get the affected user.

Returns:
the affected user.
Override:
Never

SalesPoint Framework v3.1