public class SimpleEventHelper
extends java.lang.Object
The simple event message tools Only pass messages in the current thread
| Constructor and Description |
|---|
SimpleEventHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
addListener(T delegate, T listener)
Adds a listener
|
static <T> T |
createDelegate(java.lang.Class<T> clz)
Creates a listener object
|
static <T> void |
removeAllListener(T delegate)
Removes all current listeners
|
static <T> void |
removeListener(T delegate, T listener)
Removes the specified listener
|
public static <T> T createDelegate(java.lang.Class<T> clz)
Creates a listener object
clz -
public static <T> boolean addListener(T delegate,
T listener)
Adds a listener
delegate -listener -
public static <T> void removeListener(T delegate,
T listener)
Removes the specified listener
delegate -listener -public static <T> void removeAllListener(T delegate)
Removes all current listeners
delegate -