setActive(isActivatable(), false);
fireEvent(Events.Update, new FilterEvent(this));
}
protected void onMenuSelect(MenuEvent be) {
DateMenu menu = (DateMenu) be.getMenu();
Date d = be.getDate();
if (menu == beforeMenu) {
beforeItem.setChecked(true);
afterItem.setChecked(false);
onItem.setChecked(false);
if (afterMenu.getDate() != null && afterMenu.getDate().after(d)) {
afterItem.setChecked(true);
}
} else if (menu == afterMenu) {
afterItem.setChecked(true);
onItem.setChecked(false);
if (beforeMenu.getDate() != null && beforeMenu.getDate().before(d)) {
beforeItem.setChecked(false);
}
} else if (menu == onMenu) {
beforeItem.setChecked(false);
afterItem.setChecked(false);
onItem.setChecked(true);
}
menu.hide(true);
fireEvent(Events.Update, new FilterEvent(this));
}