use of org.adempiere.webui.component.GridFactory in project adempiere by adempiere.
the class WCRPDetail method jbInit.
private void jbInit() {
dateFrom = new WDateEditor("DateFrom", true, false, true, "DateFrom");
dateTo = new WDateEditor("DateTo", true, false, true, "DateTo");
Rows rows = new Rows();
Row row = null;
new GridFactory();
Grid northPanel = GridFactory.newGridLayout();
rows.setParent(northPanel);
row = rows.newRow();
row.appendChild(new Label(Msg.translate(Env.getCtx(), "S_Resource_ID")).rightAlign());
row.appendChild(resource.getComponent());
row.appendChild(new Label(Msg.translate(Env.getCtx(), "DateFrom")).rightAlign());
row.appendChild(dateFrom.getComponent());
row.appendChild(new Label(Msg.translate(Env.getCtx(), "DateTo")).rightAlign());
row.appendChild(dateTo.getComponent());
ConfirmPanel confirmPanel = new ConfirmPanel(true);
confirmPanel.addActionListener(this);
North north = new North();
north.appendChild(northPanel);
mainLayout.appendChild(north);
//West west = new West();
//chartPanel.setWidth("400");
//west.appendChild(chartPanel);
//west.setSplittable(true);
//west.setAutoscroll(true);
//mainLayout.appendChild(west);
South south = new South();
south.appendChild(confirmPanel);
mainLayout.appendChild(south);
}
Aggregations