public class SampSender
extends java.lang.Object
It does a similar job to its predecessor
SendManager
,
which it cannibalises,
but unlike that class it provides support for synchronous message
sending (call/callAll), with result strings handed back to the
calling code rather than just discarded or pushed through the
logging system.
Constructor | Description |
---|---|
SampSender(java.lang.String mtype) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Outcome |
activateMessage(java.util.Map message) |
Invoked to perform an activation action which involves sending
a SAMP message to this sender's currently selected target client(s).
|
javax.swing.ListModel |
getClientListModel() |
Returns a list of the clients that are current possible targets
for this sender's messages (subscribed to the relevant MType).
|
javax.swing.ComboBoxModel |
getClientSelectionModel() |
Returns a ComboBoxModel listing clients that are subscribed to
this sender's MType.
|
org.astrogrid.samp.gui.GuiHubConnector |
getConnector() |
Returns this sender's hub connector.
|
TopcatSampControl |
getSampControl() |
Returns this sender's Samp control.
|
java.lang.String |
getUnavailableText() |
Returns a message explaining why this sender can't do any useful
work at the moment.
|
boolean |
isAvailable() |
Indicates whether this sender has a chance of working.
|
public SampSender(java.lang.String mtype)
mtype
- message type to which this sender is sensitivepublic boolean isAvailable()
public javax.swing.ListModel getClientListModel()
public javax.swing.ComboBoxModel getClientSelectionModel()
public TopcatSampControl getSampControl()
public org.astrogrid.samp.gui.GuiHubConnector getConnector()
public Outcome activateMessage(java.util.Map message)
message
- message to sendpublic java.lang.String getUnavailableText()
Copyright ? 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.