A registered listener for a repository app event, created by ControllerMappingList.addEventListener or addEventListenerForType. Matches events either by a simple event type name or event id, or by an event class or interface, and runs the given JavaScript function when a matching event is fired.
Implements: Serializable
Properties
| Property | Returns | Description |
|---|---|---|
| enabled | boolean | Whether this listener is switched on. A disabled listener stays registered but is not run. |
| eventClass | Class | Event class or interface this listener matches against, or null when the listener was registered by event type name instead. When set, any event whose class is assignable to it is matched. |
| eventType | String | Simple event type name or event id this listener matches against, or null when the listener was registered by event class instead. |
| function | Object | The JavaScript function run when a matching event fires, given either as a function name or as an actual function. |
Methods
getEventType()
Returns: String
Simple event type name or event id this listener matches against, or null when the listener was registered by event class instead.
getEventClass()
Returns: Class
Event class or interface this listener matches against, or null when the listener was registered by event type name instead. When set, any event whose class is assignable to it is matched.
isEnabled()
Returns: boolean
Whether this listener is switched on. A disabled listener stays registered but is not run.
getFunction()
Returns: Object
The JavaScript function run when a matching event fires, given either as a function name or as an actual function.