Class ThreeStateSwitchCommandViewer

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

public class ThreeStateSwitchCommandViewer extends ThreeStateSwitch implements ActionListener, fr.esrf.tangoatk.core.INumberScalarListener
A ThreeStateSwitchCommandViewer is a 3 states viewer associated with 2 commands (one to switch on the device , one to switch it off) and one scalar attribute which represents the boolean state 0=OFF 1=ON (other=unknown) The viewer can also display an undefined state (when different from ON or OFF)
See Also:
  • Constructor Details

    • ThreeStateSwitchCommandViewer

      public ThreeStateSwitchCommandViewer()
    • ThreeStateSwitchCommandViewer

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

    • setModel

      public void setModel(fr.esrf.tangoatk.core.INumberScalar stateAttribute, fr.esrf.tangoatk.core.ICommand onCommand, fr.esrf.tangoatk.core.ICommand offCommand)
    • 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
    • stateChange

      public void stateChange(fr.esrf.tangoatk.core.AttributeStateEvent e)
      Specified by:
      stateChange in interface fr.esrf.tangoatk.core.IAttributeStateListener
    • numberScalarChange

      public void numberScalarChange(fr.esrf.tangoatk.core.NumberScalarEvent e)
      Specified by:
      numberScalarChange in interface fr.esrf.tangoatk.core.INumberScalarListener
    • main

      public static void main(String[] args)