SmartClient Version: 8.2/LGPL Development Only (built 2011-12-05)
Browser: Chrome 29.0.1547.76
I have simple SpinnerItem which has Change & Changed handlers. None of those events are triggered when I change the value of the spinner. I have other items in the form, they have change handlers as well and they work.
Here is how I create the spinner and its handler:
I don't see anything wrong in the code, can somebody hint me what's wrong or try similar code and see if it works ?
Thanks.
Browser: Chrome 29.0.1547.76
I have simple SpinnerItem which has Change & Changed handlers. None of those events are triggered when I change the value of the spinner. I have other items in the form, they have change handlers as well and they work.
Here is how I create the spinner and its handler:
Code:
SpinnerItem spinner = new SpinnerItem();
spinner.setTitle("Value");
spinner.setWidth(50);
spinner.setMax(99);
spinner.setMin(0);
spinner.setValue(1);
spinner.setStartRow(false);
spinner.setEndRow(false);
spinner.addChangedHandler(new ChangedHandler() {
@Override
public void onChanged(ChangedEvent event) {
int value = (Integer) event.getValue();
System.out.println("Change: Value = " + value);
}
});
spinner.addChangeHandler(new ChangeHandler() {
@Override
public void onChange(ChangeEvent event) {
int value = (Integer) event.getValue();
System.out.println("Changed: Value = " + value);
}});Thanks.