public abstract class IndividualCallActionManager extends AbstractCallActionManager
createMessage(org.astrogrid.samp.Client)
method.
They may also wish to to customise the returned Send and Broadcast Action
objects (for instance give them useful names and descriptions).Modifier and Type | Class and Description |
---|---|
private class |
IndividualCallActionManager.BroadcastAction
Action which performs "broadcasts".
|
Modifier and Type | Field and Description |
---|---|
private java.awt.Component |
parent_ |
BROADCAST_TARGET, subscribedClientModel_
Constructor and Description |
---|
IndividualCallActionManager(java.awt.Component parent,
GuiHubConnector connector,
javax.swing.ListModel clientListModel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.Action |
createBroadcastAction()
Must be implemented by concrete subclasses.
|
protected abstract java.util.Map |
createMessage(Client client)
Returns the Message object which is to be transmitted by this manager
to a given client.
|
createResultHandler, createTag, dispose, getSendAction, registerHandler
createSendMenu, createTargetAction, createTargetSelector, disposeSendMenu, getBroadcastAction, getBroadcastIcon, getClientListModel, getConnector, getSendIcon, setEnabled, updateState
public IndividualCallActionManager(java.awt.Component parent, GuiHubConnector connector, javax.swing.ListModel clientListModel)
parent
- parent componentconnector
- hub connectorclientListModel
- list model containing only those clients
which are suitable recipients;
all elements must be Client
sprotected abstract java.util.Map createMessage(Client client) throws java.lang.Exception
AbstractCallActionManager
AbstractCallActionManager.getSendAction(org.astrogrid.samp.Client)
.createMessage
in class AbstractCallActionManager
client
- targetjava.lang.Exception
public javax.swing.Action createBroadcastAction()
AbstractCallActionManager
createBroadcastAction
in class AbstractCallActionManager