Class SignalScalarComboEditor

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, ActionListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, ListDataListener

public class SignalScalarComboEditor extends JComboBox implements ActionListener, fr.esrf.tangoatk.core.IBooleanScalarListener, fr.esrf.tangoatk.core.INumberScalarListener, fr.esrf.tangoatk.core.ISetErrorListener
A class to set the value of a signal attribute (this means an attribute representing a boolean value, but of type BooleanScalar or NumberScalar) by selecting the value True or False in a combobox.
Author:
GIRARDOT
See Also:
  • Field Details

    • attModel

      protected fr.esrf.tangoatk.core.IAttribute attModel
    • trueLabel

      protected String trueLabel
    • falseLabel

      protected String falseLabel
    • comboModel

      protected DefaultComboBoxModel comboModel
    • defActionCmd

      protected String defActionCmd
    • optionList

      protected String[] optionList
    • trueIndex

      protected static final int trueIndex
      See Also:
    • falseIndex

      protected static final int falseIndex
      See Also:
  • Constructor Details

    • SignalScalarComboEditor

      public SignalScalarComboEditor()
  • Method Details

    • getAttModel

      public fr.esrf.tangoatk.core.IAttribute getAttModel()
    • setBooleanScalarModel

      public void setBooleanScalarModel(fr.esrf.tangoatk.core.IBooleanScalar boolModel)
    • setNumberScalarModel

      public void setNumberScalarModel(fr.esrf.tangoatk.core.INumberScalar boolModel)
    • clearModel

      public void clearModel()
    • actionPerformed

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

      public void booleanScalarChange(fr.esrf.tangoatk.core.BooleanScalarEvent e)
      Specified by:
      booleanScalarChange in interface fr.esrf.tangoatk.core.IBooleanScalarListener
    • stateChange

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

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

      public void setErrorOccured(fr.esrf.tangoatk.core.ErrorEvent evt)
      Specified by:
      setErrorOccured in interface fr.esrf.tangoatk.core.ISetErrorListener
    • changeCurrentSelection

      protected void changeCurrentSelection(boolean newValue)
    • enableExecution

      public void enableExecution()
    • disableExecution

      public void disableExecution()
    • main

      public static void main(String[] args)
    • getFalseLabel

      public String getFalseLabel()
    • setFalseLabel

      public void setFalseLabel(String falseLabel)
    • getTrueLabel

      public String getTrueLabel()
    • setTrueLabel

      public void setTrueLabel(String trueLabel)
    • numberScalarChange

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