use of org.zkoss.zul.North 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.North 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.North 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);
}
}
use of org.zkoss.zul.North in project adempiere by adempiere.
the class WCRPDetail method jbInit.
private void jbInit() {
dateFrom = new WDateEditor("DateFrom", true, false, true, "DateFrom");
dateTo = new WDateEditor("DateTo", true, false, true, "DateTo");
Rows rows = new Rows();
Row row = null;
new GridFactory();
Grid northPanel = GridFactory.newGridLayout();
rows.setParent(northPanel);
row = rows.newRow();
row.appendChild(new Label(Msg.translate(Env.getCtx(), "S_Resource_ID")).rightAlign());
row.appendChild(resource.getComponent());
row.appendChild(new Label(Msg.translate(Env.getCtx(), "DateFrom")).rightAlign());
row.appendChild(dateFrom.getComponent());
row.appendChild(new Label(Msg.translate(Env.getCtx(), "DateTo")).rightAlign());
row.appendChild(dateTo.getComponent());
ConfirmPanel confirmPanel = new ConfirmPanel(true);
confirmPanel.addActionListener(this);
North north = new North();
north.appendChild(northPanel);
mainLayout.appendChild(north);
//West west = new West();
//chartPanel.setWidth("400");
//west.appendChild(chartPanel);
//west.setSplittable(true);
//west.setAutoscroll(true);
//mainLayout.appendChild(west);
South south = new South();
south.appendChild(confirmPanel);
mainLayout.appendChild(south);
}
use of org.zkoss.zul.North in project adempiere by adempiere.
the class WCharge method createAccountPanel.
/**
* Creates the account panel.
*
* The account panel contains:
* <li>a table detailing all accounts
* <li>a button for creating charges for selected accounts
*/
private void createAccountPanel() {
Borderlayout borderlayout = new Borderlayout();
borderlayout.setStyle("position: absolute");
borderlayout.setWidth("100%");
borderlayout.setHeight("100%");
m_pnlAccount.appendChild(borderlayout);
North north = new North();
north.setBorder("none");
borderlayout.appendChild(north);
Label label = new Label(Msg.getMsg(Env.getCtx(), "ChargeFromAccount"));
label.setStyle("font-weight: bold;");
north.appendChild(label);
Center center = new Center();
center.setBorder("none");
center.setHflex("true");
center.setVflex("true");
center.setAutoscroll(true);
borderlayout.appendChild(center);
center.appendChild(m_tblData);
South south = new South();
south.setBorder("none");
borderlayout.appendChild(south);
Panel southPanel = new Panel();
southPanel.setAlign("right");
south.appendChild(southPanel);
m_btnAccount.setLabel(Msg.getMsg(Env.getCtx(), AD_MESSAGE_CREATE) + " " + Msg.getMsg(Env.getCtx(), "From") + " " + Msg.getElement(Env.getCtx(), "Account_ID"));
m_btnAccount.addEventListener(Events.ON_CLICK, this);
southPanel.appendChild(m_btnAccount);
return;
}
Aggregations