custom.addComponent(mainmenu, "mainmenu");
custom.addComponent(centrale, "centrale");
addComponent(custom);
centrale.setIcon(new ThemeResource("icons/actions/message.png"));
centrale.setWidth("635px");
centrale.setHeight("620px");
// centrale.setSizeUndefined();
centrale.setVisible(false);
// adding items the Main Menu
MenuBar.MenuItem email = mainmenu.addItem("Email", null);
email.setIcon(new ThemeResource("icons/actions/message.png"));
email.addItem("Nouveau Email", new ThemeResource(
"icons/actions/mail_new.png"), mailCommand);
email.addSeparator();
email.addItem("Consulter", new ThemeResource(
"icons/actions/mail_get.png"), null);
MenuBar.MenuItem pv = mainmenu.addItem("Générer PV", generatePV);
pv.setIcon(new ThemeResource("icons/actions/filenew.png"));
MenuBar.MenuItem reclamation = mainmenu.addItem("Tableaux", null);
reclamation.setIcon(new ThemeResource(
"icons/actions/view_multicolumn.png"));
reclamation.addItem("Tableau de Réclamations", new ThemeResource(
"icons/actions/toggle_log.png"), getReclamations);
reclamation.addSeparator();
reclamation.addItem("Tableau d'analyse", new ThemeResource(
"icons/actions/toggle_log.png"), getAnalyse);
reclamation.addSeparator();
reclamation.addItem("Définir les actions", new ThemeResource(
"icons/actions/redo.png"), defineActions);
MenuBar.MenuItem synthese = mainmenu.addItem("Générer les synthèses",
null);
synthese.setIcon(new ThemeResource("icons/actions/run.png"));
synthese.addItem("Par mois", monthSynthese);
synthese.addSeparator();
synthese.addItem("Par année", annualSynthese);
MenuBar.MenuItem tableauBord = mainmenu.addItem("Tableau de Bord",
getTableauBord);
tableauBord.setIcon(new ThemeResource("icons/actions/wizard.png"));
MenuBar.MenuItem dConsole = mainmenu.addItem("Konsole", decisiaKonsole);
dConsole.setIcon(new ThemeResource("icons/actions/openterm.png"));
MenuBar.MenuItem print = mainmenu.addItem("Imprimer", null);
print.setIcon(new ThemeResource("icons/actions/fileprint.png"));
MenuBar.MenuItem help = mainmenu.addItem("Help", null);
help.setIcon(new ThemeResource("icons/actions/help.png"));
MenuBar.MenuItem logout = mainmenu.addItem("Logout", _logout);
logout.setIcon(new ThemeResource("icons/actions/exit.png"));
setMargin(true);
}