T - type of eventpublic abstract class SimpleListenableContainer<T extends SimpleListenable> extends Object implements SimpleListenable
| Constructor and Description |
|---|
SimpleListenableContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Runnable listener)
Add a listener.
|
protected abstract T |
createEvent() |
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, unlistenprotected T extends SimpleListenable event
protected abstract T createEvent()
public 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.