use of org.zkoss.zul.North in project adempiere by adempiere.
the class WCreateFromWindow method zkInit.
protected void zkInit() throws Exception {
Borderlayout contentPane = new Borderlayout();
appendChild(contentPane);
North north = new North();
contentPane.appendChild(north);
north.appendChild(parameterPanel);
Center center = new Center();
contentPane.appendChild(center);
center.appendChild(dataTable);
WAppsAction selectAllAction = new WAppsAction(SELECT_ALL, null, null);
Button selectAllButton = selectAllAction.getButton();
confirmPanel.addComponentsLeft(selectAllButton);
selectAllButton.addActionListener(this);
South south = new South();
contentPane.appendChild(south);
Panel southPanel = new Panel();
south.appendChild(southPanel);
southPanel.appendChild(new Separator());
southPanel.appendChild(confirmPanel);
southPanel.appendChild(new Separator());
southPanel.appendChild(statusBar);
setWidth("750px");
setHeight("550px");
setSizable(true);
setBorder("normal");
contentPane.setWidth("100%");
contentPane.setHeight("100%");
}
use of org.zkoss.zul.North in project adempiere by adempiere.
the class WFileImport method initForm.
/**
* Initialize Panel
* @param WindowNo window
*/
protected void initForm() {
log.info("");
try {
jbInit();
dynInit();
this.setWidth("100%");
this.setClosable(true);
this.setTitle("Import File Loader");
this.setBorder("normal");
Borderlayout layout = new Borderlayout();
layout.setHeight("100%");
layout.setWidth("100%");
this.appendChild(layout);
North north = new North();
layout.appendChild(north);
north.appendChild(northPanel);
Center center = new Center();
center.setHflex("true");
center.setVflex("true");
layout.appendChild(center);
center.appendChild(centerPanel);
South south = new South();
layout.appendChild(south);
south.appendChild(confirmPanel);
} catch (Exception e) {
log.log(Level.SEVERE, "init", e);
}
}
use of org.zkoss.zul.North in project adempiere by adempiere.
the class Borderlayout method appendNorth.
public Borderlayout appendNorth(Component c) {
North north = getNorth();
if (north == null) {
north = new North();
this.appendChild(north);
}
ThemeUtils.addSclass("ad-borderlayout-north", north);
north.appendChild(c);
return this;
}
use of org.zkoss.zul.North in project adempiere by adempiere.
the class WTreeMaintenance method jbInit.
// preInit
/**
* Static init
* @throws Exception
*/
private void jbInit() throws Exception {
bAddAll.setImage(ServletFns.resolveThemeURL("~./images/FastBack24.png"));
bAdd.setImage(ServletFns.resolveThemeURL("~./images/StepBack24.png"));
bDelete.setImage(ServletFns.resolveThemeURL("~./images/StepForward24.png"));
bDeleteAll.setImage(ServletFns.resolveThemeURL("~./images/FastForward24.png"));
form.setWidth("99%");
form.setHeight("100%");
form.setStyle("position: absolute; padding: 0; margin: 0");
form.appendChild(mainLayout);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
mainLayout.setStyle("position: absolute");
treeLabel.setText(Msg.translate(Env.getCtx(), "AD_Tree_ID"));
cbAllNodes.setEnabled(false);
cbAllNodes.setText(Msg.translate(Env.getCtx(), "IsAllNodes"));
treeInfo.setText(" ");
bAdd.setTooltiptext("Add to Tree");
bAddAll.setTooltiptext("Add ALL to Tree");
bDelete.setTooltiptext("Delete from Tree");
bDeleteAll.setTooltiptext("Delete ALL from Tree");
bAdd.addActionListener(this);
bAddAll.addActionListener(this);
bDelete.addActionListener(this);
bDeleteAll.addActionListener(this);
North north = new North();
mainLayout.appendChild(north);
north.appendChild(northPanel);
north.setHeight("28px");
//
northPanel.appendChild(treeLabel);
northPanel.appendChild(new Space());
northPanel.appendChild(treeField);
northPanel.appendChild(new Space());
northPanel.appendChild(cbAllNodes);
northPanel.appendChild(new Space());
northPanel.appendChild(treeInfo);
northPanel.appendChild(new Space());
northPanel.appendChild(bAddAll);
northPanel.appendChild(new Space());
northPanel.appendChild(bAdd);
northPanel.appendChild(new Space());
northPanel.appendChild(bDelete);
northPanel.appendChild(new Space());
northPanel.appendChild(bDeleteAll);
//
Center center = new Center();
mainLayout.appendChild(center);
center.appendChild(centerTree);
center.setHflex("true");
center.setVflex("true");
center.setAutoscroll(true);
East east = new East();
mainLayout.appendChild(east);
east.appendChild(centerList);
east.setCollapsible(false);
east.setSplittable(true);
east.setWidth("45%");
centerList.setVflex(true);
centerList.setFixedLayout(true);
centerList.addEventListener(Events.ON_SELECT, this);
}
use of org.zkoss.zul.North in project adempiere by adempiere.
the class WImageDialog method init.
/**
* Static Init
* @throws Exception
*/
void init() throws Exception {
this.setWidth("450px");
this.setHeight("550px");
this.setSizable(true);
mainLayout.setParent(this);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
mainLayout.setStyle("background-color: transparent");
fileLabel.setValue(Msg.getMsg(Env.getCtx(), "SelectFile"));
fileButton.setLabel("-");
North north = new North();
north.setParent(mainLayout);
north.setStyle("background-color: transparent");
north.appendChild(parameterPanel);
parameterPanel.appendChild(fileLabel);
parameterPanel.appendChild(new Separator());
parameterPanel.appendChild((fileButton));
Center center = new Center();
center.setHflex("true");
center.setVflex("true");
center.setParent(mainLayout);
center.appendChild(image);
center.setStyle("background-color: transparent");
South south = new South();
south.setStyle("background-color: transparent; border: none;");
south.setParent(mainLayout);
south.appendChild(confirmPanel);
//
fileButton.addEventListener(Events.ON_CLICK, this);
confirmPanel.addActionListener(Events.ON_CLICK, this);
}
Aggregations