We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.
Class Application.UserChangeEvent
java.lang.Object
java.util.EventObject
com.vaadin.Application.UserChangeEvent
All Implemented Interfaces:
Enclosing class:
- extends EventObject
public class Application.UserChangeEvent
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:
6.8.18
See Also:
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)
- Parameters:
source
- the application source.newUser
- the new User.prevUser
- the previous User.
Constructor for user change event.
Method Detail |
---|
getNewUser
public Object getNewUser()
- Returns:
- the new User.
Gets the new user of the application.
getPreviousUser
public Object getPreviousUser()
- Returns:
- the previous Vaadin user, if user has not changed ever on
application it returns
null
Gets the previous user of the application.
getApplication
public Application getApplication()
- Returns:
- the Application.
Gets the application where the user change occurred.