public class AsyncEvent extends Object implements SimpleListenable
| Constructor and Description |
|---|
AsyncEvent() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Runnable listener)
Add a listener.
|
void |
fire()
Fire the event, and call the listeners in a separate task.
|
boolean |
hasListeners()
Return true if at least one listener is present.
|
void |
removeListener(Runnable listener)
Remove a listener.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlisten, unlistenpublic void addListener(Runnable listener)
SimpleListenableaddListener in interface SimpleListenablepublic void removeListener(Runnable listener)
SimpleListenableremoveListener in interface SimpleListenablepublic boolean hasListeners()
SimpleListenablehasListeners in interface SimpleListenablepublic void fire()
Copyright © 2019. All rights reserved.