Search in sources :

Example 1 with Borderlayout

use of org.zkoss.zul.Borderlayout in project adempiere by adempiere.

the class WWFActivity method init.

private void init() {
    Grid grid = new Grid();
    grid.setWidth("100%");
    grid.setHeight("100%");
    grid.setStyle("margin:0; padding:0; position: absolute; align: center; valign: center;");
    grid.makeNoStrip();
    grid.setOddRowSclass("even");
    Rows rows = new Rows();
    grid.appendChild(rows);
    Row row = new Row();
    rows.appendChild(row);
    Div div = new Div();
    div.setAlign("right");
    div.appendChild(lNode);
    row.appendChild(div);
    row.appendChild(fNode);
    fNode.setWidth("100%");
    fNode.setReadonly(true);
    row = new Row();
    rows.appendChild(row);
    row.setValign("top");
    div = new Div();
    div.setAlign("right");
    div.appendChild(lDesctiption);
    row.appendChild(div);
    row.appendChild(fDescription);
    fDescription.setMultiline(true);
    fDescription.setWidth("100%");
    fDescription.setReadonly(true);
    row = new Row();
    rows.appendChild(row);
    div = new Div();
    div.setAlign("right");
    div.appendChild(lHelp);
    row.appendChild(div);
    row.appendChild(fHelp);
    fHelp.setMultiline(true);
    fHelp.setWidth("100%");
    fHelp.setReadonly(true);
    fHelp.setRows(3);
    row.appendChild(new Label());
    row = new Row();
    rows.appendChild(row);
    div = new Div();
    div.setAlign("right");
    div.appendChild(lHistory);
    row.appendChild(div);
    row.appendChild(fHistory);
    row.appendChild(new Label());
    row = new Row();
    rows.appendChild(row);
    div = new Div();
    div.setAlign("right");
    div.appendChild(lAnswer);
    row.appendChild(div);
    Hbox hbox = new Hbox();
    hbox.appendChild(fAnswerText);
    hbox.appendChild(fAnswerList);
    hbox.appendChild(fAnswerButton);
    fAnswerButton.addEventListener(Events.ON_CLICK, this);
    row.appendChild(hbox);
    row.appendChild(bZoom);
    bZoom.addEventListener(Events.ON_CLICK, this);
    row = new Row();
    rows.appendChild(row);
    div = new Div();
    div.setAlign("right");
    div.appendChild(lTextMsg);
    row.appendChild(div);
    row.appendChild(fTextMsg);
    fTextMsg.setMultiline(true);
    fTextMsg.setWidth("100%");
    row.appendChild(new Label());
    row = new Row();
    rows.appendChild(row);
    div = new Div();
    div.setAlign("right");
    div.appendChild(lForward);
    row.appendChild(div);
    hbox = new Hbox();
    hbox.appendChild(fForward.getComponent());
    hbox.appendChild(lOptional);
    row.appendChild(hbox);
    row.appendChild(bOK);
    bOK.addEventListener(Events.ON_CLICK, this);
    Borderlayout layout = new Borderlayout();
    layout.setWidth("100%");
    layout.setHeight("100%");
    layout.setStyle("background-color: transparent; position: absolute;");
    North north = new North();
    north.appendChild(listbox);
    north.setSplittable(true);
    north.setHflex("true");
    //north.setVflex("true");
    north.setHeight("50%");
    layout.appendChild(north);
    north.setStyle("background-color: transparent");
    listbox.addEventListener(Events.ON_SELECT, this);
    Center center = new Center();
    center.appendChild(grid);
    layout.appendChild(center);
    center.setStyle("background-color: transparent");
    center.setHflex("true");
    center.setVflex("true");
    South south = new South();
    south.appendChild(statusBar);
    layout.appendChild(south);
    south.setStyle("background-color: transparent");
    this.appendChild(layout);
    this.setStyle("height: 100%; width: 100%; position: absolute;");
}
Also used : Div(org.zkoss.zul.Div) Hbox(org.zkoss.zul.Hbox) Center(org.zkoss.zul.Center) Grid(org.adempiere.webui.component.Grid) Label(org.adempiere.webui.component.Label) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Row(org.adempiere.webui.component.Row) Borderlayout(org.zkoss.zul.Borderlayout) Rows(org.adempiere.webui.component.Rows)

Example 2 with Borderlayout

use of org.zkoss.zul.Borderlayout in project adempiere by adempiere.

the class WFEditor method initForm.

@Override
protected void initForm() {
    this.setHeight("100%");
    Borderlayout layout = new Borderlayout();
    layout.setStyle("width: 100%; height: 100%; position: absolute;");
    appendChild(layout);
    String sql = MRole.getDefault().addAccessSQL("SELECT AD_Workflow_ID, Name FROM AD_Workflow ORDER BY 2", "AD_Workflow", MRole.SQL_NOTQUALIFIED, //	all
    MRole.SQL_RO);
    KeyNamePair[] pp = DB.getKeyNamePairs(sql, true);
    workflowList = ListboxFactory.newDropdownListbox();
    for (KeyNamePair knp : pp) {
        workflowList.addItem(knp);
    }
    workflowList.addEventListener(Events.ON_SELECT, this);
    North north = new North();
    layout.appendChild(north);
    north.appendChild(workflowList);
    workflowList.setStyle("margin-left: 10px; margin-top: 5px;");
    north.setHeight("30px");
    imageMap = new Imagemap();
    Center center = new Center();
    layout.appendChild(center);
    center.setAutoscroll(true);
    //		center.setHflex("true");
    center.setVflex("true");
    center.appendChild(imageMap);
    ConfirmPanel confirmPanel = new ConfirmPanel(true);
    confirmPanel.addActionListener(this);
    South south = new South();
    layout.appendChild(south);
    south.appendChild(confirmPanel);
    south.setHeight("36px");
}
Also used : Center(org.zkoss.zul.Center) ConfirmPanel(org.adempiere.webui.component.ConfirmPanel) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Borderlayout(org.zkoss.zul.Borderlayout) KeyNamePair(org.compiere.util.KeyNamePair) Imagemap(org.zkoss.zul.Imagemap)

Example 3 with Borderlayout

use of org.zkoss.zul.Borderlayout in project adempiere by adempiere.

the class WAccountDialog method init.

/**
	 *	Static component init.
	 *  <pre>
	 *  - north
	 *    - parameterPanel
	 *    - toolBar
	 *  - center
	 *    - adtabpanel
	 *  - south
	 *    - confirmPanel
	 *    - statusBar
	 *  </pre>
	 *  @throws Exception
	 */
void init() throws Exception {
    //
    Caption caption = new Caption(Msg.getMsg(Env.getCtx(), "Parameter"));
    parameterPanel.appendChild(caption);
    parameterPanel.setStyle("background-color: transparent;");
    toolBar.setOrient("vertical");
    toolBar.setStyle("border: none; margin: 5px");
    bSave.setImage(ServletFns.resolveThemeURL("~./images/Save24.png"));
    bSave.setTooltiptext(Msg.getMsg(Env.getCtx(), "AccountNewUpdate"));
    bSave.addEventListener(Events.ON_CLICK, this);
    bRefresh.setImage(ServletFns.resolveThemeURL("~./images/Refresh24.png"));
    bRefresh.setTooltiptext(Msg.getMsg(Env.getCtx(), "Refresh"));
    bRefresh.addEventListener(Events.ON_CLICK, this);
    bIgnore.setImage(ServletFns.resolveThemeURL("~./images/Ignore24.png"));
    bIgnore.setTooltiptext(Msg.getMsg(Env.getCtx(), "Ignore"));
    bIgnore.addEventListener(Events.ON_CLICK, this);
    //
    toolBar.appendChild(bRefresh);
    toolBar.appendChild(bIgnore);
    toolBar.appendChild(bSave);
    //
    northPanel.appendChild(parameterPanel);
    parameterPanel.setWidth("95%");
    northPanel.appendChild(toolBar);
    northPanel.setWidth("100%");
    m_adTabPanel = new ADTabPanel();
    Borderlayout layout = new Borderlayout();
    layout.setParent(this);
    if (AEnv.isFirefox2()) {
        layout.setHeight("93%");
        layout.setWidth("98%");
        layout.setStyle("background-color: transparent; position: absolute;");
        this.setStyle("position: relative;");
    } else {
        layout.setHeight("100%");
        layout.setWidth("100%");
        layout.setStyle("background-color: transparent;");
    }
    North nRegion = new North();
    nRegion.setParent(layout);
    nRegion.setHflex("false");
    nRegion.setVflex("false");
    nRegion.appendChild(northPanel);
    nRegion.setStyle("background-color: transparent; border: none");
    northPanel.setStyle("background-color: transparent;");
    Center cRegion = new Center();
    cRegion.setParent(layout);
    cRegion.appendChild(m_adTabPanel);
    cRegion.setHflex("true");
    cRegion.setVflex("true");
    South sRegion = new South();
    sRegion.setParent(layout);
    Div div = new Div();
    div.appendChild(confirmPanel);
    confirmPanel.setStyle("margin-top: 5px; margin-bottom: 5px");
    div.appendChild(statusBar);
    sRegion.appendChild(div);
    sRegion.setStyle("background-color: transparent; border: none");
    confirmPanel.addActionListener(Events.ON_CLICK, this);
    this.setBorder("normal");
    this.setClosable(false);
    this.setAttribute("modal", Boolean.TRUE);
    this.setSizable(true);
}
Also used : ADTabPanel(org.adempiere.webui.panel.ADTabPanel) Div(org.zkoss.zul.Div) Center(org.zkoss.zul.Center) South(org.zkoss.zul.South) North(org.zkoss.zul.North) Borderlayout(org.zkoss.zul.Borderlayout) Caption(org.zkoss.zul.Caption)

Example 4 with Borderlayout

use of org.zkoss.zul.Borderlayout in project adempiere by adempiere.

the class WEMailDialog method jbInit.

/**
	 *	Static Init
	 */
void jbInit() throws Exception {
    lFrom.setValue(Msg.getMsg(Env.getCtx(), "From") + ":");
    lTo.setValue(Msg.getMsg(Env.getCtx(), "To") + ":");
    lCc.setValue(Msg.getMsg(Env.getCtx(), "Cc") + ":");
    lSubject.setValue(Msg.getMsg(Env.getCtx(), "Subject") + ":");
    lAttachment.setValue(Msg.getMsg(Env.getCtx(), "Attachment") + ":");
    fFrom.setReadonly(true);
    statusBar.setStatusDB(null);
    //
    Grid grid = new Grid();
    grid.setWidth("480px");
    grid.setStyle("margin:0; padding:0; position: absolute; align: center; valign: center;");
    grid.makeNoStrip();
    grid.setOddRowSclass("even");
    Rows rows = new Rows();
    grid.appendChild(rows);
    Row row = new Row();
    rows.appendChild(row);
    Div div = new Div();
    div.setAlign("right");
    div.appendChild(lFrom);
    row.appendChild(div);
    row.appendChild(fFrom);
    fFrom.setWidth("100%");
    row = new Row();
    rows.appendChild(row);
    div = new Div();
    div.setAlign("right");
    div.appendChild(lTo);
    row.appendChild(div);
    row.appendChild(fUser.getComponent());
    fUser.getComponent().setWidth("100%");
    row = new Row();
    rows.appendChild(row);
    row.appendChild(new Label(""));
    row.appendChild(fTo);
    fTo.setWidth("100%");
    row = new Row();
    rows.appendChild(row);
    div = new Div();
    div.setAlign("right");
    div.appendChild(lCc);
    row.appendChild(div);
    row.appendChild(fCcUser.getComponent());
    fCcUser.getComponent().setWidth("100%");
    row = new Row();
    rows.appendChild(row);
    row.appendChild(new Label(""));
    row.appendChild(fCc);
    fCc.setWidth("100%");
    row = new Row();
    rows.appendChild(row);
    row.setSpans("2");
    row.appendChild(new Separator());
    row = new Row();
    rows.appendChild(row);
    div = new Div();
    div.setAlign("right");
    div.appendChild(lSubject);
    row.appendChild(div);
    row.appendChild(fSubject);
    fSubject.setWidth("100%");
    row = new Row();
    rows.appendChild(row);
    row.setSpans("2");
    row.appendChild(new Separator());
    row = new Row();
    rows.appendChild(row);
    div = new Div();
    div.setAlign("right");
    div.appendChild(lAttachment);
    row.appendChild(div);
    row.appendChild(fAttachment);
    fAttachment.setWidth("100%");
    row = new Row();
    rows.appendChild(row);
    row.setSpans("2");
    row.appendChild(fMessage);
    fMessage.setWidth("100%");
    fMessage.setRows(10);
    row = new Row();
    rows.appendChild(row);
    row.setSpans("2");
    row.appendChild(confirmPanel);
    confirmPanel.addActionListener(this);
    Borderlayout layout = new Borderlayout();
    layout.setWidth("490px");
    layout.setHeight("470px");
    layout.setStyle("background-color: white; position: absolute;");
    Center center = new Center();
    center.appendChild(grid);
    layout.appendChild(center);
    center.setStyle("background-color: white");
    South south = new South();
    south.appendChild(statusBar);
    layout.appendChild(south);
    south.setStyle("background-color: white");
    this.appendChild(layout);
}
Also used : Div(org.zkoss.zul.Div) Center(org.zkoss.zul.Center) Grid(org.adempiere.webui.component.Grid) Label(org.adempiere.webui.component.Label) South(org.zkoss.zul.South) Row(org.adempiere.webui.component.Row) Borderlayout(org.zkoss.zul.Borderlayout) Separator(org.zkoss.zul.Separator) Rows(org.adempiere.webui.component.Rows)

Example 5 with Borderlayout

use of org.zkoss.zul.Borderlayout 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)

Aggregations

Borderlayout (org.zkoss.zul.Borderlayout)30 Center (org.zkoss.zul.Center)30 South (org.zkoss.zul.South)19 North (org.zkoss.zul.North)18 Rows (org.adempiere.webui.component.Rows)10 Row (org.adempiere.webui.component.Row)9 Div (org.zkoss.zul.Div)9 ConfirmPanel (org.adempiere.webui.component.ConfirmPanel)8 Grid (org.adempiere.webui.component.Grid)8 Panel (org.adempiere.webui.component.Panel)7 Separator (org.zkoss.zul.Separator)7 Event (org.zkoss.zk.ui.event.Event)5 SQLException (java.sql.SQLException)4 Label (org.adempiere.webui.component.Label)4 West (org.zkoss.zul.West)4 Tab (org.adempiere.webui.component.Tab)3 Tabpanels (org.adempiere.webui.component.Tabpanels)3 Tabs (org.adempiere.webui.component.Tabs)3 EventListener (org.zkoss.zk.ui.event.EventListener)3 IOException (java.io.IOException)2