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

Class ErrorEvent

source code

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

Class of all component originated error events.

The component error event is normally fired by AbstractComponent.setComponentError. The component errors are set by the framework in some situations and can be set by user code. They are indicated in a component with an error indicator.

Instance Methods [hide private]
 
__init__(self, message, component)
Constructs a new event with a specified source component.
source code
 
getErrorMessage(self)
Gets the error message.
source code

Inherited from Event: getComponent

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, message, component)
(Constructor)

source code 

Constructs a new event with a specified source component.

Parameters:
  • message - the error message.
  • component - the source component.
Overrides: object.__init__

getErrorMessage(self)

source code 

Gets the error message.

Returns:
the error message.