public abstract class AbstractSimpleListenable extends Object implements SimpleListenable
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<Runnable> |
listenersRunnable |
| Constructor and Description |
|---|
AbstractSimpleListenable() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Runnable listener)
Add a listener.
|
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 SimpleListenableCopyright © 2019. All rights reserved.