Search in sources :

Example 16 with North

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");
}
Also used : Panel(org.adempiere.webui.component.Panel) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) StatusBarPanel(org.adempiere.webui.panel.StatusBarPanel) Center(org.zkoss.zul.Center) Tab(org.adempiere.webui.component.Tab) South(org.zkoss.zul.South) Tabbox(org.adempiere.webui.component.Tabbox) North(org.zkoss.zul.North) Borderlayout(org.adempiere.webui.component.Borderlayout)

Example 17 with North

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();
}
Also used : Div(org.zkoss.zul.Div) Center(org.zkoss.zul.Center) Button(org.adempiere.webui.component.Button) South(org.zkoss.zul.South) North(org.zkoss.zul.North)

Example 18 with North

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);
    }
}
Also used : Center(org.zkoss.zul.Center) South(org.zkoss.zul.South) North(org.zkoss.zul.North)

Example 19 with North

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);
}
Also used : WDateEditor(org.adempiere.webui.editor.WDateEditor) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) Grid(org.adempiere.webui.component.Grid) GridFactory(org.adempiere.webui.component.GridFactory) Label(org.adempiere.webui.component.Label) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Row(org.zkoss.zul.Row) Rows(org.adempiere.webui.component.Rows)

Example 20 with North

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;
}
Also used : Panel(org.adempiere.webui.component.Panel) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) Center(org.zkoss.zul.Center) Label(org.adempiere.webui.component.Label) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Borderlayout(org.zkoss.zul.Borderlayout)

Aggregations

North (org.zkoss.zul.North)37 Center (org.zkoss.zul.Center)35 South (org.zkoss.zul.South)28 Borderlayout (org.zkoss.zul.Borderlayout)18 Rows (org.adempiere.webui.component.Rows)11 Div (org.zkoss.zul.Div)11 ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)10 Row (org.adempiere.webui.component.Row)9 Separator (org.zkoss.zul.Separator)9 Panel (org.adempiere.webui.component.Panel)7 Tab (org.adempiere.webui.component.Tab)7 Space (org.zkoss.zul.Space)7 Tabs (org.adempiere.webui.component.Tabs)6 Event (org.zkoss.zk.ui.event.Event)6 West (org.zkoss.zul.West)6 Tabpanels (org.adempiere.webui.component.Tabpanels)5 SQLException (java.sql.SQLException)4 Label (org.adempiere.webui.component.Label)4 StatusBarPanel (org.adempiere.webui.panel.StatusBarPanel)4 EventListener (org.zkoss.zk.ui.event.EventListener)4