Package com.iizigo.swt
Class UpDownArrowSpinner
java.lang.Object
com.iizigo.swt.UpDownArrowSpinner
- All Implemented Interfaces:
EventListener
,org.eclipse.swt.events.KeyListener
,org.eclipse.swt.internal.SWTEventListener
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.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionstatic void
enable
(org.eclipse.swt.widgets.Text text, boolean neg) Adds up/down support for a text control.void
keyPressed
(org.eclipse.swt.events.KeyEvent e) Up/down pressed.void
keyReleased
(org.eclipse.swt.events.KeyEvent e)
Method Details
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(org.eclipse.swt.events.KeyEvent e) Up/down pressed.- Specified by:
keyPressed
in interfaceorg.eclipse.swt.events.KeyListener
keyReleased
public void keyReleased(org.eclipse.swt.events.KeyEvent e) - Specified by:
keyReleased
in interfaceorg.eclipse.swt.events.KeyListener