public abstract class UniformCallActionManager extends AbstractCallActionManager
createMessage()
.Modifier and Type | Class and Description |
---|---|
private class |
UniformCallActionManager.BroadcastAction
Action for sending broadcast messages.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
mtype_ |
private java.awt.Component |
parent_ |
private java.lang.String |
sendType_ |
BROADCAST_TARGET, subscribedClientModel_
Constructor and Description |
---|
UniformCallActionManager(java.awt.Component parent,
GuiHubConnector connector,
java.lang.String mtype,
java.lang.String sendType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected javax.swing.Action |
createBroadcastAction()
Must be implemented by concrete subclasses.
|
protected abstract java.util.Map |
createMessage()
Generates the message which is sent to one or all clients
by this object's actions.
|
protected java.util.Map |
createMessage(Client client)
Implemented simply by calling
createMessage() . |
javax.swing.JMenu |
createSendMenu()
Returns a new targetted send menu with a title suitable for this object.
|
javax.swing.Action |
getSendAction(Client client)
Returns an action which can perform a single-client send associated
with this object.
|
createResultHandler, createTag, dispose, registerHandler
createSendMenu, createTargetAction, createTargetSelector, disposeSendMenu, getBroadcastAction, getBroadcastIcon, getClientListModel, getConnector, getSendIcon, setEnabled, updateState
private final java.awt.Component parent_
private final java.lang.String mtype_
private final java.lang.String sendType_
public UniformCallActionManager(java.awt.Component parent, GuiHubConnector connector, java.lang.String mtype, java.lang.String sendType)
parent
- parent componentconnector
- hub connectormtype
- MType for messages transmitted by this object's actionssendType
- short string identifying the kind of thing being
sent (used for action descriptions etc)protected abstract java.util.Map createMessage() throws java.lang.Exception
Message
-like Map representing
message to transmitjava.lang.Exception
protected java.util.Map createMessage(Client client) throws java.lang.Exception
createMessage()
.createMessage
in class AbstractCallActionManager
client
- targetjava.lang.Exception
protected javax.swing.Action createBroadcastAction()
AbstractCallActionManager
createBroadcastAction
in class AbstractCallActionManager
public javax.swing.JMenu createSendMenu()
public javax.swing.Action getSendAction(Client client)
SendActionManager
equals
(and hashCode
) intelligently there will be efficiency
advantages.
The enabled status of such actions will be managed by this object.getSendAction
in class AbstractCallActionManager
client
- recipient client