final TextBox yearsToDisplayField = new TextBox();
startYearField.setText("1950");
yearsToDisplayField.setText("100");
startYearField.addChangeListener(new ChangeListener() {
public void onChange(Widget sender) {
// TODO pending resolution of GWT issue #3233
// startYearField.addValueChangeHandler(new ValueChangeHandler<String>()
// {
// public void onValueChange(ValueChangeEvent<String> event) {
try {
// datePicker.setStartYear(Integer.parseInt(event.getValue()));
datePicker.setStartYear(Integer.parseInt(startYearField.getValue()));
} catch (NumberFormatException e) {
Log.warning("Invalid number:" + startYearField.getValue());
}
}
});
yearsToDisplayField.addChangeListener(new ChangeListener() {
public void onChange(Widget sender) {
// TODO pending resolution of GWT issue #3233
// yearsToDisplayField.addValueChangeHandler(new
// ValueChangeHandler<String>() {
// public void onValueChange(ValueChangeEvent<String> event) {