|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActiveInterface
Each subject of the observer pattern must implement ActiveInterface, so that ListenerInterfaces can register. A concrete ActiveInterface implementation might use a ListenerBag object for easy implementation.
ListenerBag| Method Summary | |
|---|---|
void |
addListener(ListenerInterface listener,
java.lang.Object eventType)
As a convention, if the eventType is null, the listener must be registered to all eventTypes. |
void |
removeListener(ListenerInterface listener,
java.lang.Object eventType)
If eventType is null, the listener is removed from all event types. |
| Method Detail |
|---|
void addListener(ListenerInterface listener,
java.lang.Object eventType)
listener - must not be nulleventType - null means register to all events
void removeListener(ListenerInterface listener,
java.lang.Object eventType)
listener - must not be nulleventType - can be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||