Field that allows stepping through values via given up/down controls, the keyboard, or the mouse wheel. Supports client-side limits for all value types.
Implementations for integer, float and date values are provided.
Example:
final IntStepper stepper = new IntStepper();
stepper.setValue(1);
stepper.setImmediate(true);
stepper.addListener(new Property.ValueChangeListener() {
public void valueChange(ValueChangeEvent event) {
stepper.getWindow().showNotification(
new Date() + " " + event.getProperty().getValue());
}
});
Code is licensed under Apache 2.0. Icons are under Creative Commons 3.0. Icons are from http://www.fatcow.com/free-icons