public class SendManager
extends java.lang.Object
Activity
subclasses using SAMP.Constructor and Description |
---|
SendManager(org.astrogrid.samp.gui.GuiHubConnector connector,
java.lang.String mtype)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
call(java.util.Map message)
Sends a given message by call/response to the currently selected target
client or clients.
|
javax.swing.ComboBoxModel |
getComboBoxModel()
Returns a combo box model which allows to select any of the subscribed
clients, or broadcast to all.
|
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 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-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.