class fwt::EventListeners

sys::Obj
  fwt::EventListeners

@Js

Source

EventListeners manages a list of event callback functions.

add

Void add(|Event| cb)

Source

Add a listener callback function

fire

Void fire(Event? event)

Source

Fire the event to all the listeners

isEmpty

Bool isEmpty()

Source

Return if size is zero.

list

|Event|[] list()

Source

Get the list of registered callback functions.

remove

Void remove(|Event| cb)

Source

Remove a listener callback function

size

Int size()

Source

Return number of registered callback functions.