// standard float range model
textinputFloatRange.setText("0.5");
textinputFloatRange.setValidator(new FloatRangeValidator(0.3f, 2000f));
// test the listener by updating a label
textinputFloatRange.getTextInputListeners().add(new TextInputListener() {
public void maximumLengthChanged(TextInput textInput, int previousMaximumLength) {
}
public void passwordChanged(TextInput textInput) {
}