use of org.zkoss.zul.Tree in project adempiere by adempiere.
the class WTreeMaintenance method preInit.
// init
/**
* Fill Tree Combo
*/
private void preInit() {
treeField = new Listbox(getTreeData());
treeField.setMold("select");
treeField.addActionListener(this);
treeField.setSelectedIndex(0);
//
centerTree = new Tree();
centerTree.addEventListener(Events.ON_SELECT, this);
}
use of org.zkoss.zul.Tree in project adempiere by adempiere.
the class MenuPanel method initComponents.
private void initComponents() {
this.setWidth("100%");
this.setHeight("100%");
this.setStyle("position: relative");
menuTree = new Tree();
menuTree.setMultiple(false);
menuTree.setId("mnuMain");
menuTree.setWidth("100%");
menuTree.setVflex(true);
menuTree.setSizedByContent(false);
// Due to bug in the new paging functionality
menuTree.setPageSize(-1);
menuTree.setStyle("border: none");
pnlSearch = new TreeSearchPanel(menuTree);
Toolbar toolbar = new Toolbar();
toolbar.setMold("panel");
toolbar.appendChild(pnlSearch);
this.appendChild(toolbar);
Panelchildren pc = new Panelchildren();
this.appendChild(pc);
pc.appendChild(menuTree);
// Elaine 2009/02/27 - expand tree
toolbar = new Toolbar();
toolbar.setStyle("verticle-align: middle; padding: 2px");
chkExpand = new Checkbox();
chkExpand.setText(Msg.getMsg(Env.getCtx(), "ExpandTree"));
chkExpand.addEventListener(Events.ON_CHECK, this);
toolbar.appendChild(chkExpand);
toolbar.setMold("panel");
this.appendChild(toolbar);
}
use of org.zkoss.zul.Tree in project adempiere by adempiere.
the class ADTreePanel method init.
// End Yamel Senih
private void init() {
this.setWidth("100%");
this.setHeight("100%");
tree = new Tree();
tree.setMultiple(false);
tree.setWidth("100%");
tree.setVflex(true);
// Due to bug in the new paging functionality
tree.setPageSize(-1);
tree.setStyle("border: none");
pnlSearch = new TreeSearchPanel(tree, Events.ON_SELECT);
Toolbar toolbar = new Toolbar();
toolbar.appendChild(pnlSearch);
this.appendChild(toolbar);
Panelchildren pc = new Panelchildren();
this.appendChild(pc);
pc.appendChild(tree);
// Elaine 2009/02/27 - expand tree
toolbar = new Toolbar();
chkExpand = new Checkbox();
chkExpand.setText(Msg.getMsg(Env.getCtx(), "ExpandTree"));
chkExpand.addEventListener(Events.ON_CHECK, this);
toolbar.appendChild(chkExpand);
this.appendChild(toolbar);
}
use of org.zkoss.zul.Tree 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.zkoss.zul.Tree 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);
}
Aggregations