Class UpDownArrowSpinner

  • All Implemented Interfaces:
    java.util.EventListener,, org.eclipse.swt.internal.SWTEventListener

    public class UpDownArrowSpinner
    extends java.lang.Object
    Class to handle arrow up/down keys for e.g. a unit text in an entry field. When up/down is pressed, the text contents is parsed for a value (decimal too). The increment is by 1.
    Christopher Mindus
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void enable​(org.eclipse.swt.widgets.Text text, boolean neg)
      Adds up/down support for a text control.
      void keyPressed​( e)
      Up/down pressed.
      void keyReleased​( e)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • enable

        public static void enable​(org.eclipse.swt.widgets.Text text,
                                  boolean neg)
        Adds up/down support for a text control.
      • keyPressed

        public void keyPressed​( e)
        Up/down pressed.
        Specified by:
        keyPressed in interface
      • keyReleased

        public void keyReleased​( e)
        Specified by:
        keyReleased in interface