public class SendManager extends Object
Activity
subclasses using SAMP.Constructor and Description |
---|
SendManager(org.astrogrid.samp.gui.GuiHubConnector connector,
String mtype)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
call(Map<?,?> message)
Sends a given message by call/response to the currently selected target
client or clients.
|
ListModel<org.astrogrid.samp.Client> |
getClientListModel()
Returns a list model containing all clients that are potential
targets for this send manager.
|
ComboBoxModel<Object> |
getComboBoxModel()
Returns a combo box model which allows to select any of the subscribed
clients, or broadcast to all.
|
org.astrogrid.samp.Client |
getSelectedClient()
Returns the client currently selected for sending.
|
void |
notify(Map<?,?> message)
Sends a given message by notification to the currently selected target
client or clients.
|
public SendManager(org.astrogrid.samp.gui.GuiHubConnector connector, String mtype)
connector
- hub connectormtype
- MType to which all selectable clients must be subscribedpublic ComboBoxModel<Object> getComboBoxModel()
public ListModel<org.astrogrid.samp.Client> getClientListModel()
getComboBoxModel()
, since this list contains only
Client
instances, not the Broadcast
pseudo-client.Client
entriespublic org.astrogrid.samp.Client getSelectedClient()
public void notify(Map<?,?> message) throws org.astrogrid.samp.client.SampException
message
- Message
-like maporg.astrogrid.samp.client.SampException
public void call(Map<?,?> message) throws org.astrogrid.samp.client.SampException
message
- Message
-like maporg.astrogrid.samp.client.SampException
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.