return;
} else {
if (interval.matches("\\d*")) {
int nInterval = Integer.valueOf(interval);
if (nInterval >= 5) {
CommandEvent.fire(new SystemApplyPreferencesCommand(true,
nInterval * 1000));
} else {
Window.alert("The save interval can't be less than 5 seconds.");
return;
}
} else {
Window.alert("The specified save interval is not a valid number.");
return;
}
}
} else {
CommandEvent.fire(new SystemApplyPreferencesCommand(false, 10000));
}
hide();
}
});
cancel.addClickHandler(new ClickHandler(){