use of org.zkoss.zul.South 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.South 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.South in project adempiere by adempiere.
the class Borderlayout method appendSouth.
public Borderlayout appendSouth(Component c) {
South south = getSouth();
if (south == null) {
south = new South();
this.appendChild(south);
}
south.appendChild(c);
ThemeUtils.addSclass("ad-borderlayout-south", south);
return this;
}
use of org.zkoss.zul.South 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);
}
use of org.zkoss.zul.South in project adempiere by adempiere.
the class WChat method staticInit.
/**
* Static Init.
* @throws Exception
*/
private void staticInit() throws Exception {
this.appendChild(mainPanel);
mainPanel.setStyle("position:absolute; height:90%; width:95%; border: none; background-color: white;");
//
North north = new North();
north.setSplittable(true);
north.setStyle("border: none");
mainPanel.appendChild(north);
historyDiv = new Div();
historyDiv.setStyle("position:absolute; height:100%; width:100%; background-color: lightgray;");
historyDiv.appendChild(historyText);
north.appendChild(historyDiv);
north.setAutoscroll(true);
north.setHeight("150px");
Center center = new Center();
center.appendChild(newText);
newText.setStyle("position:absolute; height:100%; width:100%");
newText.setMultiline(true);
mainPanel.appendChild(center);
//
// South
South south = new South();
south.setHeight("50px");
south.setStyle("border: none; margin-top: 10px");
south.appendChild(confirmPanel);
mainPanel.appendChild(south);
confirmPanel.addActionListener(this);
this.setStyle("position: relative; height: 450px; width: 500px;");
this.setMaximizable(true);
this.setSizable(true);
this.setBorder("normal");
}
Aggregations