uk.ac.starlink.splat.util
Interface Transmitter

All Known Implementing Classes:
SpectrumSendActionManager, TableSendActionManager

public interface Transmitter

Interface defining an object which sends fixed messages over a messaging system. Provides useful GUI points of access to the functionality.

See Also:
SampCommunicator

Method Summary
 JMenu createSendMenu()
          Returns a menu with one item per recipient application, for sending the message to any single one of the appropriate recipients.
 Action getBroadcastAction()
          Returns an action which sends the information to all appropriate recipients.
 void setEnabled(boolean isEnabled)
          Sets whether the send actions controlled by this transmitter should be enabled or not.
 

Method Detail

getBroadcastAction

Action getBroadcastAction()
Returns an action which sends the information to all appropriate recipients.


createSendMenu

JMenu createSendMenu()
Returns a menu with one item per recipient application, for sending the message to any single one of the appropriate recipients.


setEnabled

void setEnabled(boolean isEnabled)
Sets whether the send actions controlled by this transmitter should be enabled or not. This is an AND-like restriction - the actions may still be disabled for other reasons (e.g. no hub connection).



Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.