Modifier and Type | Method and Description |
---|---|
L |
addEventParent(Evented obj)
Adds an event parent - an Evented that will receive propagated events
|
L |
clearAllEventListeners()
Clear all event listeners.
|
L |
fire(java.lang.String type)
Fires an event of the specified type.
|
java.lang.Boolean |
listens(java.lang.String type)
Returns true if a particular event type has any listeners attached to it.
|
L |
off()
Removes all listener
|
L |
off(java.lang.String type)
Removes a listener
|
L |
off(java.lang.String[] type)
Removes a set of listener
|
L |
on(java.lang.String type,
Function fn)
Adds a set of type/listener pairs.
|
L |
once(java.lang.String type,
Function fn)
the listener will only get fired once and then removed.
|
L |
removeEventParent(Evented obj)
Removes an event parent, so it will stop receiving propagated events
|
L clearAllEventListeners()
L on(java.lang.String type, Function fn)
type
- the typefn
- the callback functionL once(java.lang.String type, Function fn)
type
- the typefn
- the callback functionL off(java.lang.String type)
type
- the typeL off(java.lang.String[] type)
type
- the typeL off()
type
- the typeL fire(java.lang.String type)
type
- the typejava.lang.Boolean listens(java.lang.String type)
L addEventParent(Evented obj)
the
- parent object that will receive the propagated events