Class: ObjectListener

system.ioc. ObjectListener


new ObjectListener(dispatcher, type [, method] [, useCapture] [, order])

This object defines a listener definition in an object definition.

Parameters:
Name Type Argument Default Description
dispatcher string

The dispatcher expression reference of the listener.

type string

The type name of the event dispatched by the dispatcher of this listener.

method string <optional>
null

The name of the method to invoke when the event is handle.

useCapture boolean <optional>
false

Determinates if the event flow use capture or not.

order string <optional>
after

Indicates the order to register the listener "after" or "before" (see the system.ioc.ObjectOrder enumeration class).

Members


<static> DISPATCHER :string

Defines the "dispatcher" attribute in a listener object definition.

Type:
  • string
Default Value:
  • dispatcher

<static> METHOD :string

Defines the "method" attribute in a listener object definition.

Type:
  • string
Default Value:
  • method

<static> ORDER :string

Defines the "order" attribute in a listener object definition.

Type:
  • string
Default Value:
  • order

<static> TYPE :string

Defines the "type" attribute in a listener object definition.

Type:
  • string
Default Value:
  • type

<static> USE_CAPTURE :string

Defines the "useCapture" attribute in a listener object definition.

Type:
  • string
Default Value:
  • useCapture

dispatcher

The dispatcher expression reference of the listener.


method

The name of the method to invoke when the event is handle.


order

Determinates the order of the receiver registration ('after' or by default 'before').


type

The type name of the event dispatched by the dispatcher.


useCapture :boolean

Determinates if the event flow use capture or not.

Type:
  • boolean

Methods


toString()

Returns the string representation of this instance.

Returns:

the string representation of this instance.