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