com.vaadin
Class Application.UserChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.vaadin.Application.UserChangeEvent
All Implemented Interfaces:
Serializable
Enclosing class:
Application

public class Application.UserChangeEvent
extends EventObject

An event that characterizes a change in the current selection.

Application user change event sent when the setUser is called to change the current user of the application.

Since:
3.0
Version:
7.0.0.alpha3
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
Application.UserChangeEvent(Application source, Object newUser, Object prevUser)
          Constructor for user change event.
 
Method Summary
 Application getApplication()
          Gets the application where the user change occurred.
 Object getNewUser()
          Gets the new user of the application.
 Object getPreviousUser()
          Gets the previous user of the application.
 
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

Application.UserChangeEvent

public Application.UserChangeEvent(Application source,
                                   Object newUser,
                                   Object prevUser)
Constructor for user change event.

Parameters:
source - the application source.
newUser - the new User.
prevUser - the previous User.
Method Detail

getNewUser

public Object getNewUser()
Gets the new user of the application.

Returns:
the new User.

getPreviousUser

public Object getPreviousUser()
Gets the previous user of the application.

Returns:
the previous Vaadin user, if user has not changed ever on application it returns null

getApplication

public Application getApplication()
Gets the application where the user change occurred.

Returns:
the Application.


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.