Package org.zkoss.zul

Examples of org.zkoss.zul.North


    final Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");
    // get an instance of the searched west layout area
    final West west = bl.getWest();
    west.setVisible(false);

    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);
View Full Code Here


    Borderlayout bl2 = new Borderlayout();
    bl2.setHeight("100%");
    bl2.setWidth("100%");
    bl2.setParent(center);

    North north2 = new North();
    north2.setBorder("none");
    north2.setHeight("26px");
    north2.setParent(bl2);
    // Paging
    this._paging = new Paging();
    this._paging.setDetailed(true);
    this._paging.addEventListener("onPaging", new OnPagingEventListener());
    this._paging.setPageSize(getPageSize());
View Full Code Here

TOP

Related Classes of org.zkoss.zul.North

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.