public class MsgEventDispatcher
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MsgEventDispatcher.QueuedMsgEvent
Helper class for queuing events that can't be fired immediately (perhaps because they were detected
while in mutex-synchronized code).
|
Modifier and Type | Method and Description |
---|---|
static void |
addMsgEventListener(MsgEventListener l)
Register the specified listener for all types of events.
|
static void |
addMsgEventListener(MsgEventListener l,
MsgEventType... types)
Register the specified listener for all types of events.
|
static void |
fireMsgEvent(MsgEventType type,
StationState ss,
AX25Message msg,
java.lang.String text,
java.lang.Object other)
Notify all interested MsgEventListeners about an event.
|
static void |
removeMsgEventListener(MsgEventListener l)
Unregister a MsgEventListener.
|
public static void addMsgEventListener(MsgEventListener l)
l
- MsgEventListener to registerpublic static void addMsgEventListener(MsgEventListener l, MsgEventType... types)
l
- MsgEventListener to registertypes
- MsgEventTypes to be reported; types not matching this list will not be
reported to this particular listenerpublic static void removeMsgEventListener(MsgEventListener l)
l
- MsgEventListener to removepublic static void fireMsgEvent(MsgEventType type, StationState ss, AX25Message msg, java.lang.String text, java.lang.Object other)
type
- MsgEventType of eventss
- StationState associated with eventmsg
- AX25Message associated with eventtext
- String associated with eventother
- Object of some other class associated with the event