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, registerHandlercreateSendMenu, createTargetAction, createTargetSelector, disposeSendMenu, getBroadcastAction, getBroadcastIcon, getClientListModel, getConnector, getSendIcon, setEnabled, updateStatepublic 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 Clientsprotected abstract java.util.Map createMessage(Client client) throws java.lang.Exception
AbstractCallActionManagerAbstractCallActionManager.getSendAction(org.astrogrid.samp.Client).createMessage in class AbstractCallActionManagerclient - targetjava.lang.Exceptionpublic javax.swing.Action createBroadcastAction()
AbstractCallActionManagercreateBroadcastAction in class AbstractCallActionManager