Class SignalScalarButtonSetter

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, SwingConstants

public class SignalScalarButtonSetter extends JButton 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
    • setValue

      protected boolean setValue
    • tooltipText

      protected String tooltipText
    • enabled

      protected boolean enabled
    • inError

      protected boolean inError
  • Constructor Details

    • SignalScalarButtonSetter

      public SignalScalarButtonSetter(boolean setValue)
  • 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
    • booleanScalarChange

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

      public void numberScalarChange(fr.esrf.tangoatk.core.NumberScalarEvent arg0)
      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
    • 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
    • getFalseLabel

      public String getFalseLabel()
    • setFalseLabel

      public void setFalseLabel(String falseLabel)
    • getTrueLabel

      public String getTrueLabel()
    • setTrueLabel

      public void setTrueLabel(String trueLabel)
    • manageToolTip

      protected void manageToolTip()
    • manageText

      protected void manageText()
    • manageDisponibility

      protected void manageDisponibility()
    • setEnabled

      public void setEnabled(boolean b)
      Overrides:
      setEnabled in class AbstractButton
    • setToolTipText

      public void setToolTipText(String text)
      Overrides:
      setToolTipText in class JComponent
    • main

      public static void main(String[] args)