Class StringScalarNumberComboEditor

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JComboBox
fr.esrf.tangoatk.widget.attribute.StringScalarNumberComboEditor
All Implemented Interfaces:
fr.esrf.tangoatk.core.IAttributeStateListener, fr.esrf.tangoatk.core.IErrorListener, fr.esrf.tangoatk.core.INumberScalarListener, ActionListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, ListDataListener

public class StringScalarNumberComboEditor extends JComboBox implements ActionListener, fr.esrf.tangoatk.core.INumberScalarListener
Author:
ho This component is used for modifying the value of a attribute thanks to a combo box This component allows to display a string list and associated for each string a real value to send
See Also:
  • Constructor Details

    • StringScalarNumberComboEditor

      public StringScalarNumberComboEditor()
  • Method Details

    • actionPerformed

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

      public void disableExecution()
    • enableExecution

      public void enableExecution()
    • errorChange

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

      public double getValues(int index)
    • numberScalarChange

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

      public void setNumberModel(fr.esrf.tangoatk.core.INumberScalar inumberscalar)
    • getNumberModel

      public fr.esrf.tangoatk.core.INumberScalar getNumberModel()
    • clearModel

      public void clearModel()
    • setOptionList

      public void setOptionList(String[] optionList)
    • stateChange

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