use of org.adempiere.webui.component.Row 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.adempiere.webui.component.Row 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);
}
use of org.adempiere.webui.component.Row in project adempiere by adempiere.
the class WQueryDocType method init.
/**
* Set up Panel
*/
protected void init() {
setTitle(Msg.translate(Env.getCtx(), "C_DocType_ID"));
Panel panel = new Panel();
setVisible(true);
Panel mainPanel = new Panel();
Grid productLayout = GridFactory.newGridLayout();
Groupbox groupPanel = new Groupbox();
Caption v_TitleBorder = new Caption(Msg.getMsg(ctx, QUERY));
// Set title window
this.setClosable(true);
// add listener on 'ENTER' key
addEventListener(Events.ON_OK, this);
appendChild(panel);
northPanel = new Panel();
mainPanel.appendChild(mainLayout);
groupPanel.appendChild(v_TitleBorder);
mainPanel.setStyle("width: 100%; height: 100%; padding: 0; margin: 0");
mainLayout.setHeight("100%");
mainLayout.setWidth("100%");
Center center = new Center();
//
North north = new North();
north.setStyle("border: none");
mainLayout.appendChild(north);
north.appendChild(groupPanel);
groupPanel.appendChild(productLayout);
appendChild(mainPanel);
productLayout.setWidth("100%");
Rows rows = null;
Row row = null;
rows = productLayout.newRows();
row = rows.newRow();
Label labelName = new Label(Msg.translate(ctx, NAME));
labelName.setStyle(WPOS.FONTSIZESMALL);
row.setHeight("60px");
row.appendChild(labelName.rightAlign());
fieldName = new WPOSTextField("", posPanel.getKeyboard());
row.appendChild(fieldName);
fieldName.addEventListener(this);
fieldName.setWidth("120px");
fieldName.setStyle(WPOS.FONTSIZESMALL);
Label labelDescription = new Label(Msg.translate(ctx, DESCRIPTION));
labelDescription.setStyle(WPOS.FONTSIZESMALL);
row.setHeight("60px");
row.appendChild(labelDescription.rightAlign());
fieldDescription = new WPOSTextField(null, posPanel.getKeyboard());
row.appendChild(fieldDescription);
fieldDescription.addEventListener(this);
fieldDescription.setWidth("120px");
fieldDescription.setStyle(WPOS.FONTSIZESMALL);
// Center
posTable = ListboxFactory.newDataTable();
posTable.prepareTable(columnInfos, "C_DocType", null, false, "C_DocType");
enableButtons();
center = new Center();
center.setStyle("border: none");
posTable.setWidth("100%");
posTable.setHeight("99%");
posTable.addActionListener(this);
center.appendChild(posTable);
mainLayout.appendChild(center);
posTable.setClass("Table-OrderLine");
posTable.autoSize();
posTable.addEventListener(Events.ON_DOUBLE_CLICK, this);
refresh();
}
use of org.adempiere.webui.component.Row in project adempiere by adempiere.
the class WQueryOrderHistory method init.
/**
* Set up Panel
*/
protected void init() {
setTitle(Msg.translate(Env.getCtx(), "C_Order_ID"));
Panel panel = new Panel();
setVisible(true);
Panel mainPanel = new Panel();
Grid productLayout = GridFactory.newGridLayout();
Groupbox groupPanel = new Groupbox();
Caption v_TitleBorder = new Caption(Msg.getMsg(ctx, QUERY));
// Set title window
this.setClosable(true);
// add listener on 'ENTER' key
addEventListener(Events.ON_OK, this);
appendChild(panel);
northPanel = new Panel();
mainPanel.appendChild(mainLayout);
groupPanel.appendChild(v_TitleBorder);
mainPanel.setStyle("width: 100%; height: 100%; padding: 0; margin: 0");
mainLayout.setHeight("100%");
mainLayout.setWidth("100%");
Center center = new Center();
//
North north = new North();
north.setStyle("border: none");
mainLayout.appendChild(north);
north.appendChild(groupPanel);
groupPanel.appendChild(productLayout);
appendChild(mainPanel);
productLayout.setWidth("100%");
Rows rows = null;
Row row = null;
rows = productLayout.newRows();
row = rows.newRow();
Label labelDocumentNo = new Label(Msg.translate(ctx, DOCUMENTNO));
labelDocumentNo.setStyle(WPOS.FONTSIZESMALL);
row.setHeight("20px");
row.appendChild(labelDocumentNo.rightAlign());
fieldDocumentNo = new WPOSTextField("", posPanel.getKeyboard());
row.appendChild(fieldDocumentNo);
fieldDocumentNo.addEventListener(this);
fieldDocumentNo.setWidth("120px");
fieldDocumentNo.setStyle(WPOS.FONTSIZESMALL);
//
Label labelDateFrom = new Label(Msg.translate(ctx, DATEORDEREDFROM));
labelDateFrom.setStyle(WPOS.FONTSIZESMALL);
row.appendChild(labelDateFrom.rightAlign());
fieldDateFrom = new Datebox();
fieldDateFrom.setValue(Env.getContextAsDate(Env.getCtx(), "#Date"));
fieldDateFrom.addEventListener("onBlur", this);
fieldDateFrom.setStyle(WPOS.FONTSIZESMALL);
row.appendChild(fieldDateFrom);
fieldAllowDate = new Checkbox();
fieldAllowDate.setLabel(Msg.translate(ctx, DATE));
fieldAllowDate.setSelected(false);
row.appendChild(fieldAllowDate);
fieldAllowDate.addActionListener(this);
fieldAllowDate.setStyle(WPOS.FONTSIZESMALL);
row = rows.newRow();
Label labelBPartner = new Label(Msg.translate(ctx, BPARTNERID));
labelBPartner.setStyle(WPOS.FONTSIZESMALL);
row.setHeight("60px");
row.appendChild(labelBPartner.rightAlign());
fieldBPartner = new WPOSTextField("", posPanel.getKeyboard());
row.appendChild(fieldBPartner);
fieldBPartner.addEventListener(this);
fieldBPartner.setWidth("120px");
fieldBPartner.setStyle(WPOS.FONTSIZESMALL);
Label labelDateTo = new Label(Msg.translate(ctx, DATEORDEREDTO));
labelDateTo.setStyle(WPOS.FONTSIZESMALL);
row.appendChild(labelDateTo.rightAlign());
fieldDateTo = new Datebox();
fieldDateTo.setValue(Env.getContextAsDate(Env.getCtx(), "#Date"));
fieldDateTo.addEventListener("onBlur", this);
fieldDateTo.setStyle(WPOS.FONTSIZESMALL);
row.appendChild(fieldDateTo);
fieldProcessed = new Checkbox();
fieldProcessed.setLabel(Msg.translate(ctx, PROCESSED));
fieldProcessed.setSelected(false);
row.appendChild(fieldProcessed);
fieldProcessed.addActionListener(this);
fieldProcessed.setStyle(WPOS.FONTSIZESMALL);
// Center
posTable = ListboxFactory.newDataTable();
posTable.prepareTable(columnInfos, "C_Order", "C_POS_ID = " + posPanel.getC_POS_ID(), false, "C_Order");
enableButtons();
center = new Center();
center.setStyle("border: none");
posTable.setWidth("100%");
posTable.setHeight("99%");
posTable.addActionListener(this);
center.appendChild(posTable);
mainLayout.appendChild(center);
posTable.setClass("Table-OrderLine");
posTable.autoSize();
posTable.addEventListener(Events.ON_DOUBLE_CLICK, this);
refresh();
}
use of org.adempiere.webui.component.Row in project adempiere by adempiere.
the class ValuePreference method init.
/**
* Static Layout
* @throws Exception
*/
private void init() throws Exception {
//
lAttribute.setValue(Msg.translate(m_ctx, "Attribute").replace("&", ""));
lValue.setValue(Msg.translate(m_ctx, "Value").replace("&", ""));
lSetFor.setValue(Msg.getMsg(m_ctx, "ValuePreferenceSetFor"));
cbClient.setLabel(Msg.translate(m_ctx, "AD_Client_ID"));
cbOrg.setLabel(Msg.translate(m_ctx, "AD_Org_ID"));
cbUser.setLabel(Msg.translate(m_ctx, "AD_User_ID"));
cbUser.setChecked(true);
cbWindow.setLabel(Msg.translate(m_ctx, "AD_Window_ID"));
cbWindow.setChecked(true);
//
setPanel.appendChild(setLayout);
fAttribute.setReadonly(true);
fValue.setReadonly(true);
Vbox box = new Vbox();
box.setWidth("100%");
box.setHeight("100%");
box.setParent(this);
box.appendChild(setPanel);
Rows rows = new Rows();
rows.setParent(setLayout);
Row row = new Row();
Div div = new Div();
div.setSclass("label-right");
div.appendChild(lAttribute);
row.appendCellChild(div);
row.appendCellChild(fAttribute, 4);
fAttribute.setWidth("100%");
row.appendCellChild(lAttributeValue);
rows.appendChild(row);
row = new Row();
div = new Div();
div.setSclass("label-right");
div.appendChild(lValue);
row.appendCellChild(div);
row.appendCellChild(fValue, 4);
fValue.setWidth("100%");
row.appendCellChild(lValueValue);
rows.appendChild(row);
row = new Row();
div = new Div();
div.setSclass("label-right");
div.appendChild(lSetFor);
row.appendChild(div);
row.appendChild(cbClient);
row.appendChild(cbOrg);
row.appendChild(cbUser);
row.appendChild(cbWindow);
rows.appendChild(row);
row = new Row();
row.appendChild(new Space());
row.appendCellChild(lExplanation, 5);
rows.appendChild(row);
//
Separator separator = new Separator();
separator.setBar(true);
//TODO move to theme
separator.setHeight("20px");
box.appendChild(separator);
box.appendChild(confirmPanel);
this.setBorder("normal");
setLayout.makeNoStrip();
setLayout.setOddRowSclass("even");
}
Aggregations