T
- The type of the listener.public class ListenerSupportBase<T> extends Object
Constructor and Description |
---|
ListenerSupportBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
addListener(T listener) |
protected List<T> |
copy() |
Runnable |
getOnEmpty() |
Runnable |
getOnFirst() |
protected void |
removeListener(T listener) |
void |
setOnEmpty(Runnable onEmpty)
Set an action to be run when the last listener has
been removed.
|
void |
setOnFirst(Runnable onFirst)
Set an action to run when the first listener
is added.
|
protected void addListener(T listener)
protected void removeListener(T listener)
public Runnable getOnFirst()
public void setOnFirst(Runnable onFirst)
onFirst
- public Runnable getOnEmpty()
public void setOnEmpty(Runnable onEmpty)
onEmpty
-