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);
}
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%");
}
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());
}
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);
}
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);
}
Aggregations