Search in sources :

Example 31 with North

use of org.zkoss.zul.North in project adempiere by adempiere.

the class WCreateFromWindow method zkInit.

protected void zkInit() throws Exception {
    Borderlayout contentPane = new Borderlayout();
    appendChild(contentPane);
    North north = new North();
    contentPane.appendChild(north);
    north.appendChild(parameterPanel);
    Center center = new Center();
    contentPane.appendChild(center);
    center.appendChild(dataTable);
    WAppsAction selectAllAction = new WAppsAction(SELECT_ALL, null, null);
    Button selectAllButton = selectAllAction.getButton();
    confirmPanel.addComponentsLeft(selectAllButton);
    selectAllButton.addActionListener(this);
    South south = new South();
    contentPane.appendChild(south);
    Panel southPanel = new Panel();
    south.appendChild(southPanel);
    southPanel.appendChild(new Separator());
    southPanel.appendChild(confirmPanel);
    southPanel.appendChild(new Separator());
    southPanel.appendChild(statusBar);
    setWidth("750px");
    setHeight("550px");
    setSizable(true);
    setBorder("normal");
    contentPane.setWidth("100%");
    contentPane.setHeight("100%");
}
Also used : ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) StatusBarPanel(org.adempiere.webui.panel.StatusBarPanel) Panel(org.adempiere.webui.component.Panel) Center(org.zkoss.zul.Center) Button(org.adempiere.webui.component.Button) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Borderlayout(org.zkoss.zul.Borderlayout) WAppsAction(org.adempiere.webui.component.WAppsAction) Separator(org.zkoss.zul.Separator)

Example 32 with North

use of org.zkoss.zul.North in project adempiere by adempiere.

the class WFileImport method initForm.

/**
	 *	Initialize Panel
	 *  @param WindowNo window
	 */
protected void initForm() {
    log.info("");
    try {
        jbInit();
        dynInit();
        this.setWidth("100%");
        this.setClosable(true);
        this.setTitle("Import File Loader");
        this.setBorder("normal");
        Borderlayout layout = new Borderlayout();
        layout.setHeight("100%");
        layout.setWidth("100%");
        this.appendChild(layout);
        North north = new North();
        layout.appendChild(north);
        north.appendChild(northPanel);
        Center center = new Center();
        center.setHflex("true");
        center.setVflex("true");
        layout.appendChild(center);
        center.appendChild(centerPanel);
        South south = new South();
        layout.appendChild(south);
        south.appendChild(confirmPanel);
    } catch (Exception e) {
        log.log(Level.SEVERE, "init", e);
    }
}
Also used : Center(org.zkoss.zul.Center) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Borderlayout(org.zkoss.zul.Borderlayout) SQLException(java.sql.SQLException)

Example 33 with North

use of org.zkoss.zul.North in project adempiere by adempiere.

the class Borderlayout method appendNorth.

public Borderlayout appendNorth(Component c) {
    North north = getNorth();
    if (north == null) {
        north = new North();
        this.appendChild(north);
    }
    ThemeUtils.addSclass("ad-borderlayout-north", north);
    north.appendChild(c);
    return this;
}
Also used : North(org.zkoss.zul.North)

Example 34 with North

use of org.zkoss.zul.North in project adempiere by adempiere.

the class WTreeMaintenance method jbInit.

//	preInit
/**
	 * 	Static init
	 *	@throws Exception
	 */
private void jbInit() throws Exception {
    bAddAll.setImage(ServletFns.resolveThemeURL("~./images/FastBack24.png"));
    bAdd.setImage(ServletFns.resolveThemeURL("~./images/StepBack24.png"));
    bDelete.setImage(ServletFns.resolveThemeURL("~./images/StepForward24.png"));
    bDeleteAll.setImage(ServletFns.resolveThemeURL("~./images/FastForward24.png"));
    form.setWidth("99%");
    form.setHeight("100%");
    form.setStyle("position: absolute; padding: 0; margin: 0");
    form.appendChild(mainLayout);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("100%");
    mainLayout.setStyle("position: absolute");
    treeLabel.setText(Msg.translate(Env.getCtx(), "AD_Tree_ID"));
    cbAllNodes.setEnabled(false);
    cbAllNodes.setText(Msg.translate(Env.getCtx(), "IsAllNodes"));
    treeInfo.setText(" ");
    bAdd.setTooltiptext("Add to Tree");
    bAddAll.setTooltiptext("Add ALL to Tree");
    bDelete.setTooltiptext("Delete from Tree");
    bDeleteAll.setTooltiptext("Delete ALL from Tree");
    bAdd.addActionListener(this);
    bAddAll.addActionListener(this);
    bDelete.addActionListener(this);
    bDeleteAll.addActionListener(this);
    North north = new North();
    mainLayout.appendChild(north);
    north.appendChild(northPanel);
    north.setHeight("28px");
    //
    northPanel.appendChild(treeLabel);
    northPanel.appendChild(new Space());
    northPanel.appendChild(treeField);
    northPanel.appendChild(new Space());
    northPanel.appendChild(cbAllNodes);
    northPanel.appendChild(new Space());
    northPanel.appendChild(treeInfo);
    northPanel.appendChild(new Space());
    northPanel.appendChild(bAddAll);
    northPanel.appendChild(new Space());
    northPanel.appendChild(bAdd);
    northPanel.appendChild(new Space());
    northPanel.appendChild(bDelete);
    northPanel.appendChild(new Space());
    northPanel.appendChild(bDeleteAll);
    //
    Center center = new Center();
    mainLayout.appendChild(center);
    center.appendChild(centerTree);
    center.setHflex("true");
    center.setVflex("true");
    center.setAutoscroll(true);
    East east = new East();
    mainLayout.appendChild(east);
    east.appendChild(centerList);
    east.setCollapsible(false);
    east.setSplittable(true);
    east.setWidth("45%");
    centerList.setVflex(true);
    centerList.setFixedLayout(true);
    centerList.addEventListener(Events.ON_SELECT, this);
}
Also used : Space(org.zkoss.zul.Space) Center(org.zkoss.zul.Center) North(org.zkoss.zul.North) East(org.zkoss.zul.East)

Example 35 with North

use of org.zkoss.zul.North in project adempiere by adempiere.

the class WImageDialog method init.

/**
	 *  Static Init
	 *  @throws Exception
	 */
void init() throws Exception {
    this.setWidth("450px");
    this.setHeight("550px");
    this.setSizable(true);
    mainLayout.setParent(this);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("100%");
    mainLayout.setStyle("background-color: transparent");
    fileLabel.setValue(Msg.getMsg(Env.getCtx(), "SelectFile"));
    fileButton.setLabel("-");
    North north = new North();
    north.setParent(mainLayout);
    north.setStyle("background-color: transparent");
    north.appendChild(parameterPanel);
    parameterPanel.appendChild(fileLabel);
    parameterPanel.appendChild(new Separator());
    parameterPanel.appendChild((fileButton));
    Center center = new Center();
    center.setHflex("true");
    center.setVflex("true");
    center.setParent(mainLayout);
    center.appendChild(image);
    center.setStyle("background-color: transparent");
    South south = new South();
    south.setStyle("background-color: transparent; border: none;");
    south.setParent(mainLayout);
    south.appendChild(confirmPanel);
    //
    fileButton.addEventListener(Events.ON_CLICK, this);
    confirmPanel.addActionListener(Events.ON_CLICK, this);
}
Also used : Center(org.zkoss.zul.Center) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Separator(org.zkoss.zul.Separator)

Aggregations

North (org.zkoss.zul.North)37 Center (org.zkoss.zul.Center)35 South (org.zkoss.zul.South)28 Borderlayout (org.zkoss.zul.Borderlayout)18 Rows (org.adempiere.webui.component.Rows)11 Div (org.zkoss.zul.Div)11 ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)10 Row (org.adempiere.webui.component.Row)9 Separator (org.zkoss.zul.Separator)9 Panel (org.adempiere.webui.component.Panel)7 Tab (org.adempiere.webui.component.Tab)7 Space (org.zkoss.zul.Space)7 Tabs (org.adempiere.webui.component.Tabs)6 Event (org.zkoss.zk.ui.event.Event)6 West (org.zkoss.zul.West)6 Tabpanels (org.adempiere.webui.component.Tabpanels)5 SQLException (java.sql.SQLException)4 Label (org.adempiere.webui.component.Label)4 StatusBarPanel (org.adempiere.webui.panel.StatusBarPanel)4 EventListener (org.zkoss.zk.ui.event.EventListener)4