Skip to content

Number selector

intrigus edited this page Aug 23, 2015 · 9 revisions

Number selector

Number selector (source) allows user to select number between specified values. User can change current number via buttons, mouse wheel and via entering the number by keyboard.

Example usage:

//initial value: 0, min value: 0, max value: 100, step: 1
NumberSelector selector = new NumberSelector("number selector:", 0, 0, 100, 1);
selector.addChangeListener(new NumberSelectorListener() {
	@Override
	public void changed (int number) {
		//do something on change
	}
});