use of org.zkoss.zul.South in project adempiere by adempiere.
the class WFieldRecordInfo method init.
/**
* Static Layout
* @throws Exception
*/
private void init(boolean showTable) throws Exception {
Borderlayout layout = new Borderlayout();
layout.setParent(this);
layout.setWidth("100%");
layout.setHeight("100%");
Center center = new Center();
center.setParent(layout);
center.setHflex("true");
center.setVflex("true");
if (showTable) {
center.appendChild(table);
table.setWidth("100%");
table.setVflex(true);
}
//
South south = new South();
south.setParent(layout);
south.appendChild(confirmPanel);
confirmPanel.addActionListener(Events.ON_CLICK, this);
}
use of org.zkoss.zul.South in project adempiere by adempiere.
the class WContext method init.
private void init() {
setAttribute(Window.MODE_KEY, Window.MODE_MODAL);
setBorder("normal");
setClosable(true);
int height = SessionManager.getAppDesktop().getClientInfo().desktopHeight * 85 / 100;
int width = SessionManager.getAppDesktop().getClientInfo().desktopWidth * 50 / 100;
this.setWidth(width + "px");
this.setHeight(height + "px");
this.setContentStyle("overflow: auto");
this.setSizable(true);
this.setMaximizable(true);
this.setTitle(Msg.getMsg(Env.getCtx(), "Context"));
Textbox contextText = new Textbox();
contextText.setMultiline(true);
contextText.setReadonly(true);
contextText.setWidth("100%");
contextText.setHeight("100%");
confirmPanel = new ConfirmPanel(false, false, false, false, false, false);
confirmPanel.addActionListener(Events.ON_CLICK, this);
confirmPanel.setStyle("border-top: 2px groove #444; padding-top: 4px");
Borderlayout mainPanel = new Borderlayout();
//mainPanel.setWidth("100%");
mainPanel.setHeight("100%");
Center center = new Center();
mainPanel.appendChild(center);
center.appendChild(contextText);
South south = new South();
mainPanel.appendChild(south);
south.appendChild(confirmPanel);
this.appendChild(mainPanel);
// Get the context
String[] contextArray = Env.getEntireContext(Env.getCtx());
Arrays.sort(contextArray);
contextText.setText("");
// Need a specific format to add the eol character.
// Otherwise, could use Arrays.toString(contextArray)
StringBuffer sb = new StringBuffer("");
if (contextArray.length > 0) {
String eol = System.getProperty("line.separator");
for (int i = 0; i < contextArray.length; i++) {
sb.append(contextArray[i] + eol);
}
}
contextText.setText(sb.toString());
}
use of org.zkoss.zul.South in project adempiere by adempiere.
the class WMRPDetailed method initComponents.
private void initComponents() {
OrderPlanning = new Tabbox();
PanelOrder = new Tab();
PanelFind = new Panel();
PanelCenter = new Panel();
PanelBottom = new Panel();
Results = new Tab();
Borderlayout PanelOrderLayout = new Borderlayout();
PanelOrder.appendChild(PanelOrderLayout);
North north = new North();
PanelOrderLayout.appendChild(north);
north.appendChild(PanelFind);
Center center = new Center();
PanelOrderLayout.appendChild(center);
center.appendChild(PanelCenter);
South south = new South();
PanelOrderLayout.appendChild(south);
south.appendChild(PanelBottom);
OrderPlanning.appendChild(PanelOrder);
OrderPlanning.appendChild(Results);
PanelOrder.setLabel("Order");
Results.setLabel("Result");
Center center2 = new Center();
mainLayout.appendChild(center2);
center2.appendChild(OrderPlanning);
m_frame.setWidth("99%");
m_frame.setHeight("100%");
m_frame.setStyle("position: absolute; padding: 0; margin: 0");
m_frame.appendChild(mainLayout);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
mainLayout.setStyle("position: absolute");
}
use of org.zkoss.zul.South in project adempiere by adempiere.
the class WMRPDetailed method jbInit.
protected void jbInit() throws Exception {
m_frame.setWidth("99%");
m_frame.setHeight("100%");
m_frame.setStyle("position: absolute; padding: 0; margin: 0");
m_frame.appendChild(mainLayout);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
mainLayout.setStyle("position: absolute");
North north = new North();
north.appendChild(parameterPanel);
mainLayout.appendChild(north);
Center center = new Center();
center.appendChild(p_table);
mainLayout.appendChild(center);
p_table.setVflex(true);
p_table.setFixedLayout(true);
center.setFlex(true);
//center.setAutoscroll(true);
Div div = new Div();
div.appendChild(confirmPanel);
div.appendChild(statusBar);
South south = new South();
south.appendChild(div);
mainLayout.appendChild(south);
confirmPanel.addActionListener(this);
confirmPanel.setVisible(ConfirmPanel.A_RESET, hasReset());
confirmPanel.setVisible(ConfirmPanel.A_CUSTOMIZE, hasCustomize());
confirmPanel.setVisible(ConfirmPanel.A_HISTORY, hasHistory());
confirmPanel.setVisible(ConfirmPanel.A_ZOOM, hasZoom());
South southPanel = new South();
southPanel.appendChild(southLayout);
//
Button print = confirmPanel.createButton(ConfirmPanel.A_PRINT);
print.addActionListener(this);
confirmPanel.addButton(print);
//
popup.appendChild(calcMenu);
calcMenu.addEventListener(Events.ON_CLICK, this);
p_table.getModel().addListDataListener(this);
enableButtons();
}
use of org.zkoss.zul.South in project adempiere by adempiere.
the class WCRP method init.
public void init() {
try {
fillPicks();
jbInit();
North north = new North();
north.appendChild(northPanel);
mainLayout.appendChild(north);
Center center = new Center();
center.appendChild(centerPanel);
mainLayout.appendChild(center);
South south = new South();
south.appendChild(confirmPanel);
mainLayout.appendChild(south);
} catch (Exception e) {
log.log(Level.SEVERE, "VCRP.init", e);
}
}
Aggregations