Search in sources :

Example 6 with Treecol

use of org.zkoss.zul.Treecol 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);
}
Also used : Treecol(org.zkoss.zul.Treecol) Hbox(org.zkoss.zul.Hbox) Treecols(org.zkoss.zul.Treecols) Center(org.zkoss.zkex.zul.Center) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) Checkbox(org.zkoss.zul.Checkbox) South(org.zkoss.zkex.zul.South) Tree(org.zkoss.zul.Tree) North(org.zkoss.zkex.zul.North) Row(org.adempiere.webui.component.Row) Rows(org.adempiere.webui.component.Rows)

Aggregations

Treecol (org.zkoss.zul.Treecol)6 Treecols (org.zkoss.zul.Treecols)6 Tree (org.zkoss.zul.Tree)3 ArrayList (java.util.ArrayList)2 Row (org.adempiere.webui.component.Row)2 Rows (org.adempiere.webui.component.Rows)2 SimpleTreeModel (org.adempiere.webui.component.SimpleTreeModel)2 Checkbox (org.zkoss.zul.Checkbox)2 DefaultTreeNode (org.zkoss.zul.DefaultTreeNode)2 ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)1 MProduct (org.compiere.model.MProduct)1 MTree (org.compiere.model.MTree)1 MTreeNode (org.compiere.model.MTreeNode)1 MPPProductBOM (org.eevolution.model.MPPProductBOM)1 MPPProductBOMLine (org.eevolution.model.MPPProductBOMLine)1 Center (org.zkoss.zkex.zul.Center)1 North (org.zkoss.zkex.zul.North)1 South (org.zkoss.zkex.zul.South)1 Center (org.zkoss.zul.Center)1 Hbox (org.zkoss.zul.Hbox)1