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");
}
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);
}
Aggregations