Package com.iizigo.swt
Class UpDownArrowSpinner
java.lang.Object
com.iizigo.swt.UpDownArrowSpinner
- All Implemented Interfaces:
EventListener
,KeyListener
,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
Adds up/down support for a text control.void
Up/down pressed.void
Method Details
enable
Adds up/down support for a text control.keyPressed
Up/down pressed.- Specified by:
keyPressed
in interfaceKeyListener
keyReleased
- Specified by:
keyReleased
in interfaceKeyListener