use of org.adempiere.webui.component.Row in project adempiere by adempiere.
the class WSQLProcess method initForm.
@Override
protected void initForm() {
Row rwTop = new Row();
Row rwBottom = new Row();
Rows rows = new Rows();
final int noColumns = 60;
final int maxStatementLength = 9000;
final int noStatementRows = 3;
final int noResultRows = 20;
m_grdMain.setWidth("80%");
// create the top row of components
m_txbSqlField.setMultiline(true);
m_txbSqlField.setMaxlength(maxStatementLength);
m_txbSqlField.setRows(noStatementRows);
m_txbSqlField.setCols(noColumns);
m_txbSqlField.setReadonly(false);
m_btnSql.addEventListener(Events.ON_CLICK, this);
rwTop.appendChild(m_lblSql);
rwTop.appendChild(m_txbSqlField);
rwTop.appendChild(m_btnSql);
rows.appendChild(rwTop);
// create the bottom row of components
m_txbResultField.setCols(noColumns);
m_txbResultField.setRows(noResultRows);
m_txbResultField.setReadonly(true);
rwBottom.appendChild(m_txbResultField);
rwBottom.setSpans("3");
rwBottom.setAlign("center");
rows.appendChild(rwBottom);
// put it all together
m_grdMain.appendChild(rows);
this.appendChild(m_grdMain);
return;
}
use of org.adempiere.webui.component.Row in project adempiere by adempiere.
the class WInOutGen method zkInit.
// init
/**
* Static Init.
* <pre>
* selPanel (tabbed)
* fOrg, fBPartner
* scrollPane & miniTable
* genPanel
* info
* </pre>
* @throws Exception
*/
void zkInit() throws Exception {
lBPartner.setText(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
Row row = form.getParameterPanel().newRows().newRow();
row.appendChild(lWarehouse.rightAlign());
row.appendChild(fWarehouse.getComponent());
row.appendChild(new Space());
row.appendChild(lBPartner.rightAlign());
row.appendChild(fBPartner.getComponent());
row.appendChild(new Space());
row = new Row();
form.getParameterPanel().getRows().appendChild(row);
row.appendChild(lDocType.rightAlign());
row.appendChild(cmbDocType);
row.appendChild(new Space());
row.appendChild(lDocAction.rightAlign());
row.appendChild(docAction.getComponent());
row.appendChild(new Space());
}
use of org.adempiere.webui.component.Row in project adempiere by adempiere.
the class WInvoiceGen method zkInit.
// init
/**
* Static Init.
* <pre>
* selPanel (tabbed)
* fOrg, fBPartner
* scrollPane & miniTable
* genPanel
* info
* </pre>
* @throws Exception
*/
void zkInit() throws Exception {
lOrg.setText(Msg.translate(Env.getCtx(), "AD_Org_ID"));
lBPartner.setText(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
Row row = form.getParameterPanel().newRows().newRow();
row.appendChild(lOrg.rightAlign());
row.appendChild(fOrg.getComponent());
row.appendChild(new Space());
row.appendChild(lBPartner.rightAlign());
row.appendChild(fBPartner.getComponent());
row.appendChild(new Space());
row = new Row();
form.getParameterPanel().getRows().appendChild(row);
row.appendChild(lDocType.rightAlign());
row.appendChild(cmbDocType);
row.appendChild(new Space());
row.appendChild(lDocAction.rightAlign());
row.appendChild(docAction.getComponent());
row.appendChild(new Space());
}
use of org.adempiere.webui.component.Row in project adempiere by adempiere.
the class WDeleteEntity method zkInit.
private void zkInit() throws Exception {
//Form Init()
form.appendChild(mainLayout);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
clientLabel.setText(Msg.getElement(Env.getCtx(), "AD_Client_ID"));
tableLabel.setText(Msg.getElement(Env.getCtx(), "AD_Table_ID"));
dryRun = new Checkbox(Msg.getMsg(Env.getCtx(), "DryRun"));
dryRun.setChecked(true);
ConfirmPanel panel = new ConfirmPanel(false, false, false, false, false, false, false);
bRefresh = panel.createButton(ConfirmPanel.A_REFRESH);
bRefresh.addActionListener(this);
//
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);
// For Button
row = rows.newRow();
row.appendChild(new Hbox());
row.appendChild(dryRun);
row.appendChild(new Hbox());
row.appendChild(bRefresh);
//
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);
}
use of org.adempiere.webui.component.Row in project adempiere by adempiere.
the class InfoSchedule method init.
/**
* Static Layout
* @throws Exception
*/
private void init() throws Exception {
this.appendChild(mainLayout);
mainLayout.setHeight("100%");
mainLayout.setWidth("100%");
labelResourceType.setValue(Msg.translate(Env.getCtx(), "S_ResourceType_ID"));
labelResource.setValue(Msg.translate(Env.getCtx(), "S_Resource_ID"));
labelDate.setValue(Msg.translate(Env.getCtx(), "Date"));
// Elaine 2008/12/12
bPrevious.setLabel("<");
bNext.setLabel(">");
//
mainLayout.appendChild(parameterPanel);
Rows rows = new Rows();
rows.setParent(parameterPanel);
Row row = new Row();
rows.appendChild(row);
row.appendChild(labelResourceType);
row.appendChild(fieldResourceType);
row = new Row();
rows.appendChild(row);
row.appendChild(labelResource);
row.appendChild(fieldResource);
// Elaine 2008/12/12
row = new Row();
rows.appendChild(row);
row.appendChild(labelDate);
Hbox hbox = new Hbox();
hbox.appendChild(bPrevious);
hbox.appendChild(fieldDate);
hbox.appendChild(bNext);
row.appendChild(hbox);
//
mainLayout.appendChild(schedulePane);
schedulePane.setWidth("100%");
schedulePane.setHeight("400px");
Div div = new Div();
div.appendChild(confirmPanel);
div.appendChild(statusBar);
mainLayout.appendChild(div);
fieldResourceType.setMold("select");
fieldResource.setMold("select");
}
Aggregations