Search in sources :

Example 36 with North

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

the class WChat method staticInit.

/**
	 * 	Static Init.
	 *	@throws Exception
	 */
private void staticInit() throws Exception {
    this.appendChild(mainPanel);
    mainPanel.setStyle("position:absolute; height:90%; width:95%; border: none; background-color: white;");
    //
    North north = new North();
    north.setSplittable(true);
    north.setStyle("border: none");
    mainPanel.appendChild(north);
    historyDiv = new Div();
    historyDiv.setStyle("position:absolute; height:100%; width:100%; background-color: lightgray;");
    historyDiv.appendChild(historyText);
    north.appendChild(historyDiv);
    north.setAutoscroll(true);
    north.setHeight("150px");
    Center center = new Center();
    center.appendChild(newText);
    newText.setStyle("position:absolute; height:100%; width:100%");
    newText.setMultiline(true);
    mainPanel.appendChild(center);
    //
    //	South
    South south = new South();
    south.setHeight("50px");
    south.setStyle("border: none; margin-top: 10px");
    south.appendChild(confirmPanel);
    mainPanel.appendChild(south);
    confirmPanel.addActionListener(this);
    this.setStyle("position: relative; height: 450px; width: 500px;");
    this.setMaximizable(true);
    this.setSizable(true);
    this.setBorder("normal");
}
Also used : Div(org.zkoss.zul.Div) Center(org.zkoss.zul.Center) South(org.zkoss.zul.South) North(org.zkoss.zul.North)

Example 37 with North

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

the class WMediaDialog method staticInit.

// WAttachment
/**
	 *	Static setup.
	 *  <pre>
	 *  - northPanel
	 *      - toolBar
	 *      - title
	 *  - centerPane [split]
	 * 		- graphPanel (left)
	 *		  	- gifScroll - gifPanel
	 *			- pdfViewer
	 *  	- text (right)
	 *  - confirmPanel
	 *  </pre>
	 *  @throws Exception
	 */
void staticInit() throws Exception {
    this.setWidth("500px");
    this.setHeight("600px");
    this.setClosable(true);
    this.setBorder("normal");
    this.appendChild(mainPanel);
    mainPanel.setHeight("100%");
    mainPanel.setWidth("100%");
    North northPanel = new North();
    northPanel.setCollapsible(false);
    northPanel.setSplittable(false);
    toolBar.appendChild(bLoad);
    toolBar.appendChild(bDelete);
    toolBar.appendChild(bSave);
    mainPanel.appendChild(northPanel);
    northPanel.appendChild(toolBar);
    bSave.setEnabled(false);
    bSave.setImage(ServletFns.resolveThemeURL("~./images/Export24.png"));
    bSave.setTooltiptext(Msg.getMsg(Env.getCtx(), "AttachmentSave"));
    bSave.addEventListener(Events.ON_CLICK, this);
    bLoad.setImage(ServletFns.resolveThemeURL("~./images/Import24.png"));
    bLoad.setTooltiptext(Msg.getMsg(Env.getCtx(), "Load"));
    bLoad.addEventListener(Events.ON_CLICK, this);
    bDelete.setImage(ServletFns.resolveThemeURL("~./images/Delete24.png"));
    bDelete.setTooltiptext(Msg.getMsg(Env.getCtx(), "Delete"));
    bDelete.addEventListener(Events.ON_CLICK, this);
    previewPanel.appendChild(preview);
    preview.setHeight("100%");
    preview.setWidth("100%");
    Center centerPane = new Center();
    centerPane.setAutoscroll(true);
    centerPane.setHflex("true");
    centerPane.setVflex("true");
    mainPanel.appendChild(centerPane);
    centerPane.appendChild(previewPanel);
    South southPane = new South();
    mainPanel.appendChild(southPane);
    southPane.appendChild(confirmPanel);
    southPane.setHeight("30px");
    bCancel.setImage(ServletFns.resolveThemeURL("~./images/Cancel24.png"));
    bCancel.addEventListener(Events.ON_CLICK, this);
    bOk.setImage(ServletFns.resolveThemeURL("~./images/Ok24.png"));
    bOk.addEventListener(Events.ON_CLICK, this);
    confirmPanel.appendChild(bCancel);
    confirmPanel.appendChild(bOk);
}
Also used : Center(org.zkoss.zul.Center) South(org.zkoss.zul.South) North(org.zkoss.zul.North)

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