Search in sources :

Example 36 with South

use of org.zkoss.zul.South 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 37 with South

use of org.zkoss.zul.South 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 38 with South

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

the class Borderlayout method appendSouth.

public Borderlayout appendSouth(Component c) {
    South south = getSouth();
    if (south == null) {
        south = new South();
        this.appendChild(south);
    }
    south.appendChild(c);
    ThemeUtils.addSclass("ad-borderlayout-south", south);
    return this;
}
Also used : South(org.zkoss.zul.South)

Example 39 with South

use of org.zkoss.zul.South 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)

Example 40 with South

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

the class WChat method staticInit.

/**
	 * 	Static Init.
	 *	@throws Exception
	 */
private void staticInit() throws Exception {
    this.appendChild(mainPanel);
    mainPanel.setStyle("position:absolute; height:90%; width:95%; border: none; background-color: white;");
    //
    North north = new North();
    north.setSplittable(true);
    north.setStyle("border: none");
    mainPanel.appendChild(north);
    historyDiv = new Div();
    historyDiv.setStyle("position:absolute; height:100%; width:100%; background-color: lightgray;");
    historyDiv.appendChild(historyText);
    north.appendChild(historyDiv);
    north.setAutoscroll(true);
    north.setHeight("150px");
    Center center = new Center();
    center.appendChild(newText);
    newText.setStyle("position:absolute; height:100%; width:100%");
    newText.setMultiline(true);
    mainPanel.appendChild(center);
    //
    //	South
    South south = new South();
    south.setHeight("50px");
    south.setStyle("border: none; margin-top: 10px");
    south.appendChild(confirmPanel);
    mainPanel.appendChild(south);
    confirmPanel.addActionListener(this);
    this.setStyle("position: relative; height: 450px; width: 500px;");
    this.setMaximizable(true);
    this.setSizable(true);
    this.setBorder("normal");
}
Also used : Div(org.zkoss.zul.Div) Center(org.zkoss.zul.Center) South(org.zkoss.zul.South) North(org.zkoss.zul.North)

Aggregations

South (org.zkoss.zul.South)41 Center (org.zkoss.zul.Center)38 North (org.zkoss.zul.North)28 Borderlayout (org.zkoss.zul.Borderlayout)19 ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)12 Rows (org.adempiere.webui.component.Rows)12 Div (org.zkoss.zul.Div)10 Row (org.adempiere.webui.component.Row)9 Panel (org.adempiere.webui.component.Panel)8 Separator (org.zkoss.zul.Separator)8 Label (org.adempiere.webui.component.Label)6 Space (org.zkoss.zul.Space)6 Grid (org.adempiere.webui.component.Grid)5 StatusBarPanel (org.adempiere.webui.panel.StatusBarPanel)5 Tab (org.adempiere.webui.component.Tab)4 Hbox (org.zkoss.zul.Hbox)4 West (org.zkoss.zul.West)4 Tabs (org.adempiere.webui.component.Tabs)3 Button (org.adempiere.webui.component.Button)2 Tabpanels (org.adempiere.webui.component.Tabpanels)2