advancedEndItem = new DateTimeItem(ADVANCED_END_ITEM, MSG.common_title_end());
advancedEndItem.setUseMask(true);
advancedEndItem.setDisplayFormat(DateDisplayFormat.TOUSSHORTDATE);
//time validator, start should be before end
CustomValidator timeValidator = new CustomValidator() {
protected boolean condition(Object value) {
return advancedEndItem.getValueAsDate().after(advancedStartItem.getValueAsDate());
}
};
timeValidator.setErrorMessage(MSG.view_measureTable_startBeforeEnd());
advancedStartItem.setValidators(timeValidator);
setButton = new ButtonItem(SET_ITEM, MSG.common_button_set());
setButton.setStartRow(false);
setButton.setEndRow(false);