public abstract class NotifyActionManager extends SendActionManager
BROADCAST_TARGET
Constructor and Description |
---|
NotifyActionManager(Component parent,
GuiHubConnector connector,
String mtype,
String sendType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Action |
createBroadcastAction()
Returns a new action for broadcast associated with this object.
|
protected abstract Map |
createMessage()
Generates the message which is sent to one or all clients
by this object's actions.
|
JMenu |
createSendMenu()
Returns a new menu for targetted sends with a title suitable for
this object.
|
protected Action |
getSendAction(Client client)
Returns an action which can perform a single-client send associated
with this object.
|
protected void |
messageSent(HubConnection connection,
Message msg,
Client[] recipients)
Called when a message has been sent by this object.
|
createSendMenu, createTargetAction, createTargetSelector, dispose, disposeSendMenu, getBroadcastAction, getBroadcastIcon, getClientListModel, getConnector, getSendIcon, setEnabled, updateState
public NotifyActionManager(Component parent, GuiHubConnector connector, String mtype, 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 Map createMessage() throws Exception
protected void messageSent(HubConnection connection, Message msg, Client[] recipients)
connection
- connection objectmsg
- the message which was sentrecipients
- the recipients to whom an attempt was made to send
the messageprotected Action createBroadcastAction()
SendActionManager
createBroadcastAction
in class SendActionManager
public JMenu createSendMenu()
protected 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 SendActionManager
client
- recipient clientCopyright © 2008–2024. All rights reserved.