|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.mflow.api.base.AbstractMsgFlowComponent net.sourceforge.mflow.api.base.AbstractMsgSource
Abstract implementation of MsgSource
Constructor Summary | |
---|---|
AbstractMsgSource()
|
Method Summary | |
---|---|
void |
addReceiver(MsgReceiver receiver)
Adds a MsgReceiver |
protected java.util.List |
getQueuedMessages()
|
MsgReceiver[] |
getReceivers()
Accessor for all MsgReceivers associated with this MsgSource |
protected abstract void |
queueMessages()
Called prior to sending messages |
void |
removeReceiver(MsgReceiver receiver)
Removes a MsgReceiver |
void |
send()
Sends all queued Msgs |
void |
setReceivers(MsgReceiver[] aReceivers)
Mutator for all MsgReceivers associated with this MsgSource |
Methods inherited from class net.sourceforge.mflow.api.base.AbstractMsgFlowComponent |
---|
configure, getIcon, getName, setIcon, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.mflow.api.MsgFlowComponent |
---|
getName, setName |
Methods inherited from interface net.sourceforge.mflow.api.Configurable |
---|
configure |
Methods inherited from interface net.sourceforge.mflow.api.Iconable |
---|
getIcon |
Constructor Detail |
---|
public AbstractMsgSource()
Method Detail |
---|
protected final java.util.List getQueuedMessages()
public final void addReceiver(MsgReceiver receiver)
addReceiver
in interface MsgSource
receiver
- the new receiverpublic final void removeReceiver(MsgReceiver receiver)
removeReceiver
in interface MsgSource
receiver
- the receiver to removepublic final MsgReceiver[] getReceivers()
getReceivers
in interface MsgSource
public final void setReceivers(MsgReceiver[] aReceivers)
setReceivers
in interface MsgSource
aReceivers
- the new array of MsgReceivers to useprotected abstract void queueMessages()
public final void send()
send
in interface MsgSource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |