public class KahinaController
extends java.lang.Object
Basic concept:
- an object can fire events via processEvent if it has access to a KahinaController instance
- KahinaListeners can register themselves as listeners for event types
- the controller passes each fired event to all KahinaListeners that have registered for its type
| Constructor and Description |
|---|
KahinaController(KahinaLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
processEvent(KahinaEvent event) |
void |
registerListener(java.lang.String type,
KahinaListener listener) |
boolean |
removeListener(java.lang.String type,
KahinaListener listener) |
public KahinaController(KahinaLogger logger)
public void registerListener(java.lang.String type,
KahinaListener listener)
public boolean removeListener(java.lang.String type,
KahinaListener listener)
type - listener - true if listener was successfully removed, false if it never existedpublic void processEvent(KahinaEvent event)