Class DisabledTransmitter
java.lang.Object
uk.ac.starlink.topcat.interop.DisabledTransmitter
- All Implemented Interfaces:
Transmitter
Transmitter implementation which is permanently disabled.
The transmit actions cannot therefore be invoked by the user;
if they are invoked programatically, they will do nothing.
- Since:
- 16 Aug 2010
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a per-application menu which allows sending the information to any single one of the appropriate recipients.Returns an action which sends the information to all appropriate recipients.voidsetEnabled(boolean enabled) Sets whether the send actions controlled by this transmitter should be enabled or not.
-
Constructor Details
-
DisabledTransmitter
Constructor.- Parameters:
sendType- short string describing type of item (notionally) being sent
-
-
Method Details
-
getBroadcastAction
Description copied from interface:TransmitterReturns an action which sends the information to all appropriate recipients.- Specified by:
getBroadcastActionin interfaceTransmitter- Returns:
- broadcast action
-
createSendMenu
Description copied from interface:TransmitterReturns a per-application menu which allows sending the information to any single one of the appropriate recipients.- Specified by:
createSendMenuin interfaceTransmitter- Returns:
- send menu
-
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:TransmitterSets 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).- Specified by:
setEnabledin interfaceTransmitter- Parameters:
enabled- true iff actions may be invoked
-