Zimlet JavaScript API Reference - AjxListener

Class AjxListener


Extends AjxCallback.

This class represents a listener, which is a function to be called in response to an event. A listener is a slightly specialized callback: it has a #handleEvent method, and it does not return a value.

Defined in: AjxListener.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
AjxListener(obj, func, args)
Creates a new listener.
Method Summary
Method Attributes Method Name and Description
 
Invoke the listener function.
Methods borrowed from class AjxCallback:
run
Class Detail
AjxListener(obj, func, args)
Creates a new listener.
Author: Ross Dargahi.
Parameters:
{Object} obj
the object to call the function from
{function} func
the listener function
{primative|array} args
the default arguments
Method Detail
handleEvent(ev)
Invoke the listener function.
Parameters:
{AjxEvent} ev
the event object that gets passed to an event handler

Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:30 GMT-0400 (EDT)