use of org.zkoss.zul.South in project adempiere by adempiere.
the class WMerge method zkInit.
// preInit
/**
* Static init
* @throws java.lang.Exception
*/
void zkInit() throws Exception {
form = new WMergeUI(this);
form.appendChild(mainLayout);
mainLayout.setHeight("100%");
mainLayout.setWidth("100%");
//
South south = new South();
mainLayout.appendChild(south);
south.appendChild(confirmPanel);
confirmPanel.addActionListener(this);
//
Rows rows = centerLayout.newRows();
//
CenterPanel.appendChild(centerLayout);
Center center = new Center();
mainLayout.appendChild(center);
center.appendChild(CenterPanel);
Row row = rows.newRow();
row.appendChild(new Label());
row.appendChild(mergeFromLabel);
row.appendChild(mergeToLabel);
//
mergeFromLabel.setText(Msg.getMsg(Env.getCtx(), "MergeFrom"));
mergeFromLabel.setStyle("font-weight: bold");
mergeToLabel.setText(Msg.getMsg(Env.getCtx(), "MergeTo"));
mergeToLabel.setStyle("font-weight: bold");
//
for (int i = 0; i < m_label.length; i++) {
row = rows.newRow();
row.appendChild(m_label[i]);
row.appendChild(m_from[i].getComponent());
row.appendChild(m_to[i].getComponent());
}
}
use of org.zkoss.zul.South in project adempiere by adempiere.
the class WFactReconcile method initLayout.
// initComponents
/**
* Initialize the form structure
* - Load Bank Info
* - Load BPartner
* - Load Document Type
* - Init Table
*/
private void initLayout() {
setAttribute(Window.MODE_KEY, Window.MODE_EMBEDDED);
setBorder("none");
setWidth("100%");
setHeight("100%");
setStyle("position: absolute");
miniTable.setAttribute("zk_component_ID", "Lookup_Data_SearchResults");
miniTable.setVflex(true);
// Define the criteria rows and grid
Rows rows = new Rows();
//
Row row = new Row();
rows.appendChild(row);
row.setSpans("1, 1, 1, 1");
row.appendChild(labelAcctSchema.rightAlign());
row.appendChild(fieldAcctSchema.getComponent());
row.appendChild(labelBPartner.rightAlign());
row.appendChild(fieldBPartner.getComponent());
//
row = new Row();
rows.appendChild(row);
row.setSpans("1, 1, 1, 1");
row.appendChild(labelOrg.rightAlign());
row.appendChild(fieldOrg.getComponent());
row.appendChild(labelProduct.rightAlign());
row.appendChild(fieldProduct.getComponent());
//
row = new Row();
rows.appendChild(row);
row.setSpans("1, 1, 1, 1");
row.appendChild(labelAccount.rightAlign());
row.appendChild(fieldAccount.getComponent());
row.appendChild(new Space());
row.appendChild(isReconciled);
//
row = new Row();
rows.appendChild(row);
row.setSpans("1, 1, 1, 1");
row.appendChild(labelDateAcct.rightAlign());
Hbox hbox = new Hbox();
hbox.appendChild(fieldDateAcct);
hbox.appendChild(labelDateAcct2);
hbox.appendChild(fieldDateAcct2);
row.appendChild(hbox);
//
parameterGrid.appendChild(rows);
//
Center center = new Center();
center.setBorder("0");
center.appendChild(parameterGrid);
Hbox btnBox = new Hbox();
btnBox.setStyle("border-top: 2px; border-bottom: 2px; padding: 4px");
btnBox.appendChild(bRefresh);
btnBox.setHeight("100%");
West west = new West();
west.setBorder("0");
west.appendChild(btnBox);
parameterPanel.appendChild(center);
parameterPanel.appendChild(west);
parameterPanel.setHeight("100px");
//
North north = new North();
north.appendChild(parameterPanel);
mainPanel.appendChild(north);
//
center = new Center();
center.appendChild(miniTable);
mainPanel.appendChild(center);
// Setup the command buttons
pnlBtnLeft = new Panel();
pnlBtnLeft.setAlign("left");
pnlBtnLeft.setStyle("border-top: 2px; border-bottom: 2px; padding: 4px");
pnlBtnLeft.appendChild(bZoom);
//
pnlBtnRight = new Panel();
pnlBtnRight.setAlign("right");
pnlBtnRight.setStyle("border-top: 2px; border-bottom: 2px; padding: 4px");
pnlBtnRight.appendChild(bGenerate);
pnlBtnRight.appendChild(bReset);
pnlBtnRight.appendChild(bCancel);
//
pnlTextCenter = new Panel();
pnlTextCenter.setStyle("border-top: 2px; border-bottom: 2px; padding: 4px");
pnlTextCenter.setAlign("center");
pnlTextCenter.appendChild(differenceLabel);
pnlTextCenter.appendChild(differenceField);
//
hboxBtnRight = new Hbox();
hboxBtnRight.appendChild(pnlBtnRight);
hboxBtnRight.setWidth("100%");
hboxBtnRight.setStyle("text-align:right");
//
hboxBtnLeft = new Hbox();
hboxBtnLeft.appendChild(pnlBtnLeft);
hboxBtnLeft.setWidth("100%");
hboxBtnLeft.setStyle("text-align:left");
//
hboxTextCenter = new Hbox();
hboxTextCenter.appendChild(pnlTextCenter);
hboxTextCenter.setWidth("100%");
hboxTextCenter.setHeight("100%");
hboxTextCenter.setPack("center");
hboxTextCenter.setStyle("text-align:Center");
//
commandPane = new Hbox();
commandPane.appendChild(hboxBtnLeft);
commandPane.appendChild(hboxTextCenter);
commandPane.appendChild(hboxBtnRight);
commandPane.setWidth("100%");
commandPane.setPack("center");
//
commandPanel.setHeight("70px");
commandPanel.setStyle("border-top: 2px; border-bottom: 2px; padding: 4px");
commandPanel.setWidth("100%");
center = new Center();
center.appendChild(commandPane);
center.setBorder("0");
commandPanel.appendChild(center);
South south = new South();
south.appendChild(statusBar);
south.setBorder("0");
commandPanel.appendChild(south);
south = new South();
south.appendChild(commandPanel);
south.setBorder("0");
mainPanel.appendChild(south);
// Add everything to the form
this.appendChild(mainPanel);
}
use of org.zkoss.zul.South 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.South in project adempiere by adempiere.
the class WGenForm method initForm.
@Override
protected void initForm() {
try {
zkInit();
dynInit();
Borderlayout contentPane = new Borderlayout();
this.appendChild(contentPane);
contentPane.setWidth("99%");
contentPane.setHeight("100%");
Center center = new Center();
center.setStyle("border: none");
contentPane.appendChild(center);
center.appendChild(tabbedPane);
center.setHflex("true");
center.setVflex("true");
South south = new South();
south.setStyle("border: none");
contentPane.appendChild(south);
south.appendChild(statusBar);
south.setHeight("22px");
} catch (Exception ex) {
log.log(Level.SEVERE, "init", ex);
}
}
use of org.zkoss.zul.South in project adempiere by adempiere.
the class WDelete method zkInit.
private void zkInit() throws Exception {
//Form Init()
form.appendChild(mainLayout);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
clientLabel.setText(Msg.translate(Env.getCtx(), "AD_Client_ID"));
tableLabel.setText(Msg.translate(Env.getCtx(), "AD_Table_ID"));
dryRun = new Checkbox("Dry Run");
dryRun.setChecked(true);
parameterPanel.appendChild(parameterLayout);
North north = new North();
north.setStyle("border: none");
mainLayout.appendChild(north);
north.appendChild(parameterPanel);
Rows rows = null;
Row row = null;
parameterLayout.setWidth("100%");
rows = parameterLayout.newRows();
row = rows.newRow();
row.appendChild(clientLabel.rightAlign());
row.appendChild(clientPick);
row.appendChild(tableLabel.rightAlign());
row.appendChild(tablePick.getComponent());
row.appendChild(dryRun);
centerPanel.appendChild(centerLayout);
centerLayout.setWidth("100%");
Center center = new Center();
mainLayout.appendChild(center);
center.setStyle("border: none");
center.appendChild(centerPanel);
tree = new Tree();
treeCols = new Treecols();
treeCol = new Treecol("");
treeCol2 = new Treecol();
centerPanel.appendChild(tree);
treeCols.appendChild(treeCol);
treeCols.appendChild(treeCol2);
tree.appendChild(treeCols);
center.setFlex(true);
center.setAutoscroll(true);
South south = new South();
south.appendChild(southPanel);
southPanel.appendChild(southLayout);
southPanel.setWidth("100%");
mainLayout.appendChild(south);
Rows rows2 = southLayout.newRows();
Row south_row = rows2.newRow();
south_row.appendChild(confirmPanel);
confirmPanel.addActionListener(this);
clientPick.addEventListener(Events.ON_SELECT, this);
}
Aggregations