Search in sources :

Example 1 with GridFactory

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);
}
Also used : WDateEditor(org.adempiere.webui.editor.WDateEditor) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) Grid(org.adempiere.webui.component.Grid) GridFactory(org.adempiere.webui.component.GridFactory) Label(org.adempiere.webui.component.Label) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Row(org.zkoss.zul.Row) Rows(org.adempiere.webui.component.Rows)

Aggregations

ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)1 Grid (org.adempiere.webui.component.Grid)1 GridFactory (org.adempiere.webui.component.GridFactory)1 Label (org.adempiere.webui.component.Label)1 Rows (org.adempiere.webui.component.Rows)1 WDateEditor (org.adempiere.webui.editor.WDateEditor)1 North (org.zkoss.zul.North)1 Row (org.zkoss.zul.Row)1 South (org.zkoss.zul.South)1