ripla / Stepper

Vaadin add-on that allows stepping through values via given up/down controls

Home Page:http://vaadin.com/addon/stepper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Getting started

Build project: ./gradlew build

Run demo application: ./gradlew demo:vaadinRun

Usage

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());
	}
});

License

Code is licensed under Apache 2.0.

About

Vaadin add-on that allows stepping through values via given up/down controls

http://vaadin.com/addon/stepper


Languages

Language:Java 98.5%Language:CSS 1.5%