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(String type)
Fires an event of the specified type.
|
Boolean |
listens(String type)
Returns true if a particular event type has any listeners attached to it.
|
L |
off()
Removes all listener
|
L |
off(String type)
Removes a listener
|
L |
off(String[] type)
Removes a set of listener
|
L |
on(String type,
EventCallback fn)
Adds a set of type/listener pairs.
|
L |
once(String type,
EventCallback 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(String type, EventCallback fn)
type
- the typefn
- the callback functionL once(String type, EventCallback fn)
type
- the typefn
- the callback functionL off()
type
- the typeL fire(String type)
type
- the typeBoolean listens(String type)
L addEventParent(Evented obj)
the
- parent object that will receive the propagated eventsCopyright © 2018 G-Widgets. All rights reserved.