Search in sources :

Example 21 with South

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

Example 22 with South

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

Example 23 with South

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");
}
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 24 with South

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();
}
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 25 with South

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

Aggregations

South (org.zkoss.zul.South)41 Center (org.zkoss.zul.Center)38 North (org.zkoss.zul.North)28 Borderlayout (org.zkoss.zul.Borderlayout)19 ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)12 Rows (org.adempiere.webui.component.Rows)12 Div (org.zkoss.zul.Div)10 Row (org.adempiere.webui.component.Row)9 Panel (org.adempiere.webui.component.Panel)8 Separator (org.zkoss.zul.Separator)8 Label (org.adempiere.webui.component.Label)6 Space (org.zkoss.zul.Space)6 Grid (org.adempiere.webui.component.Grid)5 StatusBarPanel (org.adempiere.webui.panel.StatusBarPanel)5 Tab (org.adempiere.webui.component.Tab)4 Hbox (org.zkoss.zul.Hbox)4 West (org.zkoss.zul.West)4 Tabs (org.adempiere.webui.component.Tabs)3 Button (org.adempiere.webui.component.Button)2 Tabpanels (org.adempiere.webui.component.Tabpanels)2