Class OnOffCheckBoxCommandViewer

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

public class OnOffCheckBoxCommandViewer extends JCheckBox implements ActionListener, fr.esrf.tangoatk.core.IErrorListener
An OnOffCheckBoxCommandViewer 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 checkbox is clicked the command is executed with an input argument which is True or False depending on the state of the checkbox.
See Also:
  • Constructor Details

    • OnOffCheckBoxCommandViewer

      public OnOffCheckBoxCommandViewer()
    • OnOffCheckBoxCommandViewer

      public OnOffCheckBoxCommandViewer(String title)
  • Method Details

    • getCmdModel

      public fr.esrf.tangoatk.core.ICommand getCmdModel()
    • setCmdModel

      public void setCmdModel(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)