Package org.zkoss.zul

Examples of org.zkoss.zul.Menubar


    final North north = bl.getNorth();
    north.setHeight(north.getHeight() + "px");

    final Div div = (Div) north.getFellow("divDropDownMenu");

    final Menubar menuBar = (Menubar) div.getFellow("mainMenuBar");
    menuBar.setVisible(true);

    // generate the menu from the menuXMLFile
    getDropDownMenuFactory().addMenu(menuBar);

    final Menuitem changeToTreeMenu = new Menuitem();
    changeToTreeMenu.setLabel(Labels.getLabel("menu_Item_backToTree"));
    changeToTreeMenu.setImage("/images/icons/refresh2_yellow_16x16.gif");
    changeToTreeMenu.setParent(menuBar);
    changeToTreeMenu.addEventListener("onClick", new EventListener() {
      @Override
      public void onEvent(Event event) throws Exception {
        // get an instance of the borderlayout defined in the
        // index.zul-file
        final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
        // get an instance of the searched west layout area
        final West west = bl.getWest();
        west.setVisible(true);

        final North north = bl.getNorth();

        final Div div = (Div) north.getFellow("divDropDownMenu");

        final Menubar menuBar = (Menubar) div.getFellow("mainMenuBar");
        menuBar.getChildren().clear();
        menuBar.setVisible(false);

        // set the MenuOffset for correct calculating content height.
        final Checkbox cb = (Checkbox) Path.getComponent("/outerIndexWindow/CBtreeMenu");
        cb.setChecked(true);
        UserWorkspace.getInstance().setTreeMenu(true);
View Full Code Here


    Executions.createComponents(Consts._Zssapp_zul, this, null);
    Components.wireVariables(this, this, '$', true, true);
    Components.addForwards(this, this, '$');
   
    spreadsheet = (Spreadsheet)mainWin.getFellow("spreadsheet");
    Menubar bar = (Menubar) mainWin.getFellow("menubar");
    _appmenubar = new Appmenubar(bar);
  }
View Full Code Here

    createMenubar();
    feedGrid();
  }

  private void createMenubar() {
    Menubar menubar=(Menubar)getFellow("menubar");
    Menu actionsMenu=new Menu("Actions");
    menubar.appendChild(actionsMenu);
    Menupopup popup=new Menupopup();
    actionsMenu.appendChild(popup);
    Menuitem createItem =new Menuitem("Create");
    createItem.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
View Full Code Here

    createMenubar();
    feedGrid();
  }

  private void createMenubar() {
    Menubar menubar=(Menubar)getFellow("menubar");
    Menu actionsMenu=new Menu("Actions");
    menubar.appendChild(actionsMenu);
    Menupopup popup=new Menupopup();
    actionsMenu.appendChild(popup);
    Menuitem createItem =new Menuitem("Create");
    createItem.addEventListener("onClick", new EventListener(){
      public void onEvent(Event event) throws Exception {
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Menubar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.