Examples of West


Examples of org.zkoss.zul.West

    // get an instance of the borderlayout defined in the index.zul-file
    Borderlayout bl = (Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain");

    // get an instance of the searched west layout area
    West west = bl.getWest();
    west.setFlex(true);
    // clear the WEST child comps
    west.getChildren().clear();

    HashMap<String, Object> map = new HashMap<String, Object>();
    map.put("indexController", this);

    // create the components from the src/main/resources/mainmenu.xml and
View Full Code Here

Examples of org.zkoss.zul.West

   * @param event
   */
  public void doViewInFullScreen(Event event) {

    final Borderlayout bl = ((Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain"));
    final West west = bl.getWest();

    if (west != null) {
      try {
        if (west.isOpen()) {
          west.setOpen(false);
        } else
          west.setOpen(true);
      } catch (Exception e) {
        // TODO: handle exception
        e.printStackTrace();
      }
    }
View Full Code Here

Examples of org.zkoss.zul.West

   * @param event
   */
  public void doViewInFullScreen(Event event) {

    final Borderlayout bl = ((Borderlayout) Path.getComponent("/outerIndexWindow/borderlayoutMain"));
    final West west = bl.getWest();

    if (west != null) {
      try {
        if (west.isOpen()) {
          west.setOpen(false);
        } else
          west.setOpen(true);
      } catch (Exception e) {
        // TODO: handle exception
        e.printStackTrace();
      }
    }
View Full Code Here

Examples of org.zkoss.zul.West

    UserWorkspace.getInstance().setTreeMenu(false);

    // 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(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");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.