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

PropertyReturnsDescription
enabledbooleanWhether this listener is switched on. A disabled listener stays registered but is not run.
eventClassClassEvent 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.
eventTypeStringSimple event type name or event id this listener matches against, or null when the listener was registered by event class instead.
functionObjectThe 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.