*
* @throws InterruptedException
*/
private void createMenu() throws InterruptedException {
Toolbarbutton toolbarbutton;
final Panelchildren gb = (Panelchildren) getMainMenuWindow().getFellowIfAny("panelChildren_menu");
Space space = new Space();
space.setHeight("5px");
space.setParent(gb);
// Hbox for the expand/collapse buttons
final Hbox hbox = new Hbox();
// hbox.setStyle("backgound-color: " + bgColorInner);
hbox.setParent(gb);
// ToolbarButton for expanding the menutree
toolbarbutton = new Toolbarbutton();
hbox.appendChild(toolbarbutton);
toolbarbutton.setId("btnMainMenuExpandAll");
toolbarbutton.setImage("/images/icons/folder_open_16x16.gif");
toolbarbutton.setTooltiptext(Labels.getLabel("btnFolderExpand.tooltiptext"));
toolbarbutton.addEventListener("onClick", new EventListener() {
@Override
public void onEvent(Event event) throws Exception {
onClick$btnMainMenuExpandAll(event);
}
});
toolbarbutton = new Toolbarbutton();
hbox.appendChild(toolbarbutton);
toolbarbutton.setId("btnMainMenuCollapseAll");
toolbarbutton.setImage("/images/icons/folder_closed2_16x16.gif");
toolbarbutton.setTooltiptext(Labels.getLabel("btnFolderCollapse.tooltiptext"));
toolbarbutton.addEventListener("onClick", new EventListener() {
@Override
public void onEvent(Event event) throws Exception {
onClick$btnMainMenuCollapseAll(event);
}
});
toolbarbutton = new Toolbarbutton();
hbox.appendChild(toolbarbutton);
toolbarbutton.setId("btnMainMenuChange");
toolbarbutton.setImage("/images/icons/menu_16x16.gif");
// toolbarbutton.setImage("/images/icons/combobox_16x16.gif");
toolbarbutton.setTooltiptext(Labels.getLabel("btnMainMenuChange.tooltiptext"));
toolbarbutton.addEventListener("onClick", new EventListener() {
@Override
public void onEvent(Event event) throws Exception {
onClick$btnMainMenuChange(event);
}
});