Package muntjac :: Module application :: Class UserChangeEvent
[hide private]
[frames] | no frames]

Class UserChangeEvent

source code

      object --+    
               |    
util.EventObject --+
                   |
                  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.


Version: 1.1.2

Instance Methods [hide private]
 
__init__(self, source, newUser, prevUser)
Constructor for user change event.
source code
 
getNewUser(self)
Gets the new user of the application.
source code
 
getPreviousUser(self)
Gets the previous user of the application.
source code
 
getApplication(self)
Gets the application where the user change occurred.
source code

Inherited from util.EventObject: getSource

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, source, newUser, prevUser)
(Constructor)

source code 

Constructor for user change event.

Parameters:
  • source - the application source.
  • newUser - the new user.
  • prevUser - the previous user.
Overrides: object.__init__

getNewUser(self)

source code 

Gets the new user of the application.

Returns:
the new user.

getPreviousUser(self)

source code 

Gets the previous user of the application.

Returns:
the previous Muntjac user, if user has not changed ever on application it returns None

getApplication(self)

source code 

Gets the application where the user change occurred.

Returns:
the Application.