Class OnOffSwitchCommandViewer

All Implemented Interfaces:
fr.esrf.tangoatk.core.IErrorListener, ActionListener, MouseListener, ImageObserver, MenuContainer, Serializable, EventListener

public class OnOffSwitchCommandViewer extends ThreeStateSwitch implements ActionListener, fr.esrf.tangoatk.core.IErrorListener
An OnOffSwitchCommandViewer is a BooleanVoidCommand viewer. This means that the command used as the model for this viewer takes a boolean input argument and returns no output argument. When the viewer is clicked the command is executed with an input argument which is True or False depending on the position of the switch.
See Also:
  • Constructor Details

    • OnOffSwitchCommandViewer

      public OnOffSwitchCommandViewer()
    • OnOffSwitchCommandViewer

      public OnOffSwitchCommandViewer(String title, Font tFont)
  • Method Details

    • getModel

      public fr.esrf.tangoatk.core.ICommand getModel()
    • setModel

      public void setModel(fr.esrf.tangoatk.core.ICommand onOffModel)
    • clearModel

      public void clearModel()
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • errorChange

      public void errorChange(fr.esrf.tangoatk.core.ErrorEvent e)
      Specified by:
      errorChange in interface fr.esrf.tangoatk.core.IErrorListener
    • main

      public static void main(String[] args)