-
Notifications
You must be signed in to change notification settings - Fork 128
Number selector
Pawel Pastuszak edited this page Dec 7, 2018
·
9 revisions
Since VisUI 1.0.2 NumberSelector
is intended to be replaced by Spinner
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 (float number) {
//do something on change
}
});
See README for VisUI introduction.