Class NumberScalarCheckBoxViewer

All Implemented Interfaces:
fr.esrf.tangoatk.core.IAttributeStateListener, fr.esrf.tangoatk.core.IBooleanScalarListener, fr.esrf.tangoatk.core.IErrorListener, fr.esrf.tangoatk.core.INumberScalarListener, fr.esrf.tangoatk.core.ISetErrorListener, JDrawable, ActionListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, SwingConstants

public class NumberScalarCheckBoxViewer extends BooleanScalarCheckBoxViewer implements fr.esrf.tangoatk.core.INumberScalarListener
An NumberScalarCheckBoxViewer is a NumberScalar attribute viewer. This means that the attribute used as the devicePropertyModel for this viewer should implement the INumberScalar interface. The viewer is updated when the scalar attribute value changes. The checkBox is "checked" if the attribute value is "1" and it is unchecked if the attribute value is "0".
See Also:
  • Constructor Details

    • NumberScalarCheckBoxViewer

      public NumberScalarCheckBoxViewer()
    • NumberScalarCheckBoxViewer

      public NumberScalarCheckBoxViewer(String title)
  • Method Details

    • getAttModel

      public fr.esrf.tangoatk.core.IBooleanScalar getAttModel()
      Overloads the BooleanScalarCheckBoxViewer method
      Overrides:
      getAttModel in class BooleanScalarCheckBoxViewer
    • setAttModel

      public void setAttModel(fr.esrf.tangoatk.core.IBooleanScalar ibs)
      Overloads the BooleanScalarCheckBoxViewer method
      Overrides:
      setAttModel in class BooleanScalarCheckBoxViewer
    • getNumberModel

      public fr.esrf.tangoatk.core.INumberScalar getNumberModel()
      Returns:
      the associated attribute
    • setNumberModel

      public void setNumberModel(fr.esrf.tangoatk.core.INumberScalar numModel)
      Associates an attribute with this checkbox
      Parameters:
      numModel - Number model
    • clearModel

      public void clearModel()
      Removes associated attribute
      Overrides:
      clearModel in class BooleanScalarCheckBoxViewer
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class BooleanScalarCheckBoxViewer
    • numberScalarChange

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

      public void stateChange(fr.esrf.tangoatk.core.AttributeStateEvent e)
      Specified by:
      stateChange in interface fr.esrf.tangoatk.core.IAttributeStateListener
      Overrides:
      stateChange in class BooleanScalarCheckBoxViewer
    • errorChange

      public void errorChange(fr.esrf.tangoatk.core.ErrorEvent evt)
      Specified by:
      errorChange in interface fr.esrf.tangoatk.core.IErrorListener
      Overrides:
      errorChange in class BooleanScalarCheckBoxViewer
    • main

      public static void main(String[] args)