Search in sources :

Example 16 with Separator

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

the class WCharge method zkInit.

private void zkInit() {
    Borderlayout contentPane = new Borderlayout();
    form.appendChild(contentPane);
    North north = new North();
    contentPane.appendChild(north);
    north.appendChild(m_grdNew);
    Center center = new Center();
    contentPane.appendChild(center);
    center.appendChild(m_pnlAccount);
    South south = new South();
    contentPane.appendChild(south);
    Panel southPanel = new Panel();
    south.appendChild(southPanel);
    southPanel.appendChild(new Separator());
    southPanel.appendChild(m_grdConfirm);
}
Also used : Panel(org.adempiere.webui.component.Panel) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) Center(org.zkoss.zul.Center) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Borderlayout(org.zkoss.zul.Borderlayout) Separator(org.zkoss.zul.Separator)

Example 17 with Separator

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

the class WCreateFromPanel method zkInit.

/**
	 * Create UI
	 * @throws IOException 
	 */
protected void zkInit() throws IOException {
    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");
    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.zkex.zul.Center) Button(org.adempiere.webui.component.Button) South(org.zkoss.zkex.zul.South) North(org.zkoss.zkex.zul.North) Borderlayout(org.zkoss.zkex.zul.Borderlayout) WAppsAction(org.adempiere.webui.component.WAppsAction) Separator(org.zkoss.zul.Separator)

Example 18 with Separator

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

the class FooterPanel method init.

private void init() {
    label.setValue("2007 Posterita Limited");
    panel.setWidth("100%");
    panel.setStyle("text-align:center");
    panel.appendChild(label);
    this.appendChild(new Separator());
    this.appendChild(panel);
    this.appendChild(new Separator());
}
Also used : Separator(org.zkoss.zul.Separator)

Example 19 with Separator

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

the class WMatch method zkInit.

/**
	 *  Static Init.
	 *  <pre>
	 *  mainPanel
	 *      northPanel
	 *      centerPanel
	 *          xMatched
	 *          xPanel
	 *          xMathedTo
	 *      southPanel
	 *  </pre>
	 *  @throws Exception
	 */
private void zkInit() throws Exception {
    form.appendChild(mainPanel);
    mainPanel.setStyle("width: 99%; height: 100%; padding: 0; margin: 0");
    mainPanel.appendChild(mainLayout);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("100%");
    northPanel.appendChild(northLayout);
    matchFromLabel.setText(Msg.translate(Env.getCtx(), "MatchFrom"));
    matchToLabel.setText(Msg.translate(Env.getCtx(), "MatchTo"));
    matchModeLabel.setText(Msg.translate(Env.getCtx(), "MatchMode"));
    onlyVendorLabel.setText(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
    onlyProductLabel.setText(Msg.translate(Env.getCtx(), "M_Product_ID"));
    dateFromLabel.setText(Msg.translate(Env.getCtx(), "DateFrom"));
    dateToLabel.setText(Msg.translate(Env.getCtx(), "DateTo"));
    bSearch.setLabel(Msg.translate(Env.getCtx(), "Search"));
    southPanel.appendChild(southLayout);
    xMatchedLabel.setText(Msg.translate(Env.getCtx(), "ToBeMatched"));
    xMatchedToLabel.setText(Msg.translate(Env.getCtx(), "Matching"));
    differenceLabel.setText(Msg.translate(Env.getCtx(), "Difference"));
    bProcess.setLabel(Msg.translate(Env.getCtx(), "Process"));
    centerPanel.appendChild(centerLayout);
    sameProduct.setSelected(true);
    sameProduct.setText(Msg.translate(Env.getCtx(), "SameProduct"));
    sameBPartner.setSelected(true);
    sameBPartner.setText(Msg.translate(Env.getCtx(), "SameBPartner"));
    sameQty.setSelected(false);
    sameQty.setText(Msg.translate(Env.getCtx(), "SameQty"));
    North north = new North();
    mainLayout.appendChild(north);
    north.appendChild(northPanel);
    Rows rows = northLayout.newRows();
    Row row = rows.newRow();
    row.appendChild(matchFromLabel.rightAlign());
    row.appendChild(matchFrom);
    row.appendChild(matchToLabel.rightAlign());
    row.appendChild(matchTo);
    row.appendChild(new Space());
    row = rows.newRow();
    row.setSpans("1,1,3");
    row.appendChild(matchModeLabel.rightAlign());
    row.appendChild(matchMode);
    row.appendChild(new Space());
    row = rows.newRow();
    row.appendChild(onlyVendorLabel.rightAlign());
    row.appendChild(onlyVendor.getComponent());
    row.appendChild(onlyProductLabel.rightAlign());
    row.appendChild(onlyProduct.getComponent());
    row.appendChild(new Space());
    row = rows.newRow();
    row.appendChild(dateFromLabel.rightAlign());
    row.appendChild(dateFrom.getComponent());
    row.appendChild(dateToLabel.rightAlign());
    row.appendChild(dateTo.getComponent());
    row.appendChild(bSearch);
    South south = new South();
    mainLayout.appendChild(south);
    south.appendChild(southPanel);
    rows = southLayout.newRows();
    row = rows.newRow();
    row.appendChild(xMatchedLabel.rightAlign());
    row.appendChild(xMatched.getComponent());
    row.appendChild(xMatchedToLabel.rightAlign());
    row.appendChild(xMatchedTo.getComponent());
    row.appendChild(differenceLabel.rightAlign());
    row.appendChild(difference.getComponent());
    row.appendChild(bProcess);
    Center center = new Center();
    mainLayout.appendChild(center);
    center.appendChild(centerPanel);
    center.setHflex("true");
    center.setVflex("true");
    centerLayout.setWidth("100%");
    centerLayout.setHeight("100%");
    north = new North();
    centerLayout.appendChild(north);
    north.setStyle("border: none");
    Panel p = new Panel();
    p.appendChild(xMatchedBorder);
    p.appendChild(xMatchedTable);
    xMatchedTable.setWidth("99%");
    xMatchedTable.setHeight("85%");
    p.setStyle("width: 100%; height: 100%; padding: 0; margin: 0");
    north.appendChild(p);
    north.setHeight("44%");
    south = new South();
    centerLayout.appendChild(south);
    south.setStyle("border: none");
    xMatchedToTable.setWidth("99%");
    xMatchedToTable.setHeight("99%");
    south.appendChild(xMatchedToTable);
    south.setHeight("44%");
    center = new Center();
    centerLayout.appendChild(center);
    center.setStyle("border: none");
    center.setHflex("false");
    center.setVflex("false");
    //		center.setHeight("6%");
    center.appendChild(xPanel);
    xPanel.appendChild(sameBPartner);
    xPanel.appendChild(new Space());
    xPanel.appendChild(sameProduct);
    xPanel.appendChild(new Space());
    xPanel.appendChild(sameQty);
    xPanel.setHeight("50px");
    xPanel.appendChild(new Separator());
    xPanel.appendChild(xMatchedToBorder);
}
Also used : Space(org.zkoss.zul.Space) Panel(org.adempiere.webui.component.Panel) StatusBarPanel(org.adempiere.webui.panel.StatusBarPanel) Center(org.zkoss.zul.Center) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Row(org.adempiere.webui.component.Row) Separator(org.zkoss.zul.Separator) Rows(org.adempiere.webui.component.Rows)

Example 20 with Separator

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

the class WFileImport method jbInit.

//	init
/**
	 *	Static Init
	 *  @throws Exception
	 */
private void jbInit() throws Exception {
    Charset[] charsets = Ini.getAvailableCharsets();
    for (int i = 0; i < charsets.length; i++) fCharset.appendItem(charsets[i].displayName(), charsets[i]);
    bFile.setLabel(Msg.getMsg(Env.getCtx(), "FileImportFile"));
    bFile.setTooltiptext(Msg.getMsg(Env.getCtx(), "FileImportFileInfo"));
    bFile.addEventListener(Events.ON_CLICK, this);
    fCharset.setMold("select");
    fCharset.setRows(0);
    fCharset.setTooltiptext(Msg.getMsg(Env.getCtx(), "Charset", false));
    info.setValue("   ");
    labelFormat.setValue(Msg.translate(Env.getCtx(), "AD_ImpFormat_ID"));
    pickFormat.setMold("select");
    pickFormat.setRows(0);
    bNext.setTooltiptext(Msg.getMsg(Env.getCtx(), "Next"));
    bNext.setLabel(">");
    bNext.addEventListener(Events.ON_CLICK, this);
    record.setValue("------");
    bPrevious.setTooltiptext(Msg.getMsg(Env.getCtx(), "Previous"));
    bPrevious.setLabel("<");
    bPrevious.addEventListener(Events.ON_CLICK, this);
    northPanel.appendChild(bFile);
    northPanel.appendChild(fCharset);
    northPanel.appendChild(info);
    northPanel.appendChild(labelFormat);
    northPanel.appendChild(pickFormat);
    northPanel.appendChild(bPrevious);
    northPanel.appendChild(record);
    northPanel.appendChild(bNext);
    rawData.setWidth("100%");
    rawData.setCols(80);
    rawData.setRows(MAX_SHOWN_LINES);
    rawData.setHeight("40%");
    previewPanel.setWidth("100%");
    previewPanel.setHeight("58%");
    previewPanel.setStyle("overflow: auto");
    // Elaine 2008/11/07 - fix text area is not expanded in IE7
    centerPanel.setWidth("100%");
    centerPanel.setHeight("100%");
    centerPanel.appendChild(rawData);
    centerPanel.appendChild(new Separator());
    centerPanel.appendChild(previewPanel);
    confirmPanel.addActionListener(Events.ON_CLICK, this);
}
Also used : Charset(java.nio.charset.Charset) Separator(org.zkoss.zul.Separator)

Aggregations

Separator (org.zkoss.zul.Separator)38 Row (org.adempiere.webui.component.Row)11 Center (org.zkoss.zul.Center)11 Label (org.adempiere.webui.component.Label)10 Rows (org.adempiere.webui.component.Rows)10 ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)9 Div (org.zkoss.zul.Div)9 North (org.zkoss.zul.North)9 Hbox (org.zkoss.zul.Hbox)8 South (org.zkoss.zul.South)8 Panel (org.adempiere.webui.component.Panel)7 Borderlayout (org.zkoss.zul.Borderlayout)7 North (org.zkoss.zkex.zul.North)6 South (org.zkoss.zkex.zul.South)5 Vbox (org.zkoss.zul.Vbox)5 Button (org.adempiere.webui.component.Button)4 Tabpanel (org.adempiere.webui.component.Tabpanel)4 Borderlayout (org.zkoss.zkex.zul.Borderlayout)4 Center (org.zkoss.zkex.zul.Center)4 Space (org.zkoss.zul.Space)4