menu = new Menu();
beforeItem = new CheckMenuItem();
beforeItem.addListener(Events.CheckChange, menuListener);
beforeMenu = new DateMenu();
beforeMenu.addListener(Events.Select, menuListener);
beforeItem.setSubMenu(beforeMenu);
menu.add(beforeItem);
afterItem = new CheckMenuItem();
afterItem.addListener(Events.CheckChange, menuListener);
afterMenu = new DateMenu();
afterMenu.addListener(Events.Select, menuListener);
afterItem.setSubMenu(afterMenu);
menu.add(afterItem);
menu.add(new SeparatorMenuItem());
onItem = new CheckMenuItem();
onItem.addListener(Events.CheckChange, menuListener);
onMenu = new DateMenu();
onMenu.addListener(Events.Select, menuListener);
onItem.setSubMenu(onMenu);
menu.add(onItem);
setMessages(new DateFilterMessages());