Hi
I have looked around the internet for tutorials but haven't managed to locate any. I would like to add a button for generating a report on the files in the system. Can someone point me to the source.
I have tried adding
in tab workspace
in MainMenu.Java
I have looked around the internet for tutorials but haven't managed to locate any. I would like to add a button for generating a report on the files in the system. Can someone point me to the source.
I have tried adding
in tab workspace
Code: Select all
in Workspace properties
public void showReport() {
tabBar.addTab(Main.i18n("tab.workspace.administration"));
tabAdministrationPos = tabBar.getTabCount()-1;
adminitrationVisible = true;
}
Code: Select all
and Main.get().mainPanel.topPanel.tabWorkspace.showReport();
in MainMenu.Java
Code: Select all
Ok So the button still does not show up.. I am also not sure if I am compiling correctly so any advise is muchly appreciative. First time working with java on a web app.reports = new MenuItem(Util.menuHTML("img/icon/menu/about.gif", Main.i18n("general.menu.tools.reports")), true, showReport);
reports.addStyleName("okm-MainMenuItem");
administration.setVisible(false);
subMenuTools.addItem(reports);
Command showReport = new Command() {
public void execute() {
Main.get().aboutPopup.show();
}
};