Package muntjac :: Package ui :: Module component :: Class Event
[hide private]
[frames] | no frames]

Class Event

source code

      object --+    
               |    
util.EventObject --+
                   |
                  Event

Superclass of all component originated events.

Events are the basis of all user interaction handling in Muntjac. To handle events, you provide a listener object that receives the events of the particular event type:


Notice that while each of the event types have their corresponding listener types; the listener interfaces are not required to inherit the IComponent.IListener interface.


See Also: component.IListener

Instance Methods [hide private]
 
__init__(self, source)
Constructs a new event with the specified source component.
source code
 
getComponent(self)
Gets the component where the event 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)
(Constructor)

source code 

Constructs a new event with the specified source component.

Parameters:
  • source - the source component of the event
Overrides: object.__init__

getComponent(self)

source code 

Gets the component where the event occurred.

Returns:
the source component of the event