Class NumberScalarSpinner

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

public class NumberScalarSpinner extends JSpinner implements Serializable, fr.esrf.tangoatk.core.INumberScalarListener, ActionListener, MouseListener, KeyListener
Author:
HO To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
See Also:
  • Field Details

  • Constructor Details

    • NumberScalarSpinner

      public NumberScalarSpinner()
      Constructor
  • Method Details

    • getDisplayReadValue

      public boolean getDisplayReadValue()
      Returns:
      Returns the m_displayReadValue.
    • setDisplayReadValue

      public void setDisplayReadValue(boolean isDisplayReadValue)
      Parameters:
      isDisplayReadValue - Enable/Disable DisplayReadValue.
    • getAlarmEnabled

      public boolean getAlarmEnabled()
    • setAlarmEnabled

      public void setAlarmEnabled(boolean b)
      Enables or disables alarm background (shows quality factor of the attribute).
      Parameters:
      b - Alarm flag
    • getValueEditable

      public boolean getValueEditable()
      Returns:
      Value Editable
    • setValueEditable

      public void setValueEditable(boolean editable)
      Parameters:
      editable - The valueEditable to set.
    • getStepValue

      public double getStepValue()
      Returns:
      Returns the stepValue.
    • setStepValue

      public void setStepValue(double step)
      Modified the incrementation step
      Parameters:
      step - Step value
    • getNumberModel

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

      public void setNumberModel(fr.esrf.tangoatk.core.INumberScalar scalar)
      Sets the model for this viewer.
      Parameters:
      scalar - Number model
    • clearModel

      public void clearModel()
      Clears all model and listener attached to the components
    • stateChange

      public void stateChange(fr.esrf.tangoatk.core.AttributeStateEvent evt)
      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
    • setBackground

      public void setBackground(Color arg0)
      Overrides:
      setBackground in class JComponent
    • getBackground

      public Color getBackground()
      Overrides:
      getBackground in class Component
    • numberScalarChange

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

      public void mousePressed(MouseEvent e)
      Specified by:
      mousePressed in interface MouseListener
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Specified by:
      mouseReleased in interface MouseListener
    • mouseEntered

      public void mouseEntered(MouseEvent e)
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited

      public void mouseExited(MouseEvent e)
      Specified by:
      mouseExited in interface MouseListener
    • mouseClicked

      public void mouseClicked(MouseEvent e)
      Specified by:
      mouseClicked in interface MouseListener
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • arrowActionPerformed

      public void arrowActionPerformed()
      This method is called when the one of the arrow is activated
    • valueChangePerformed

      public void valueChangePerformed()
      This method is called a new value is enter in the field and validated by enter
    • keyTyped

      public void keyTyped(KeyEvent arg0)
      Specified by:
      keyTyped in interface KeyListener
    • keyPressed

      public void keyPressed(KeyEvent arg0)
      Specified by:
      keyPressed in interface KeyListener
    • keyReleased

      public void keyReleased(KeyEvent arg0)
      Specified by:
      keyReleased in interface KeyListener
    • main

      public static void main(String[] args)