本文整理匯總了Java中org.zkoss.zul.Borderlayout類的典型用法代碼示例。如果您正苦於以下問題:Java Borderlayout類的具體用法?Java Borderlayout怎麽用?Java Borderlayout使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Borderlayout類屬於org.zkoss.zul包,在下文中一共展示了Borderlayout類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: Window
import org.zkoss.zul.Borderlayout; //導入依賴的package包/類
public Window(boolean addToolBar) {
Borderlayout borderlayout = new Borderlayout();
borderlayout.appendChild(center);
if (addToolBar) {
North north = new North();
borderlayout.appendChild(north);
north.appendChild(toolbar);
toolbar.setAlign("end");
}
center.appendChild(panelLayout);
panelLayout.setHflex("true");
panelLayout.setVflex("true");
appendChild(borderlayout);
setWidth("100%");
setHeight("100%");
}
示例2: buildForm
import org.zkoss.zul.Borderlayout; //導入依賴的package包/類
@Override
protected void buildForm() throws Exception {
CustomForm form = (CustomForm) getForm();
Borderlayout mainLayout = new Borderlayout();
form.appendChild(mainLayout);
North mainPanelNorth = new North();
mainLayout.appendChild(mainPanelNorth);
Center mainPanelCenter = new Center();
mainLayout.appendChild(mainPanelCenter);
processButton = new Button();
processButton.setLabel("Print Plugin Info");
processButton.setStyle("text-align: right");
mainPanelNorth.appendChild(processButton);
pluginInfo = new WStringEditor();
pluginInfo.getComponent().setText("");
pluginInfo.getComponent().setWidth("100%");
pluginInfo.setReadWrite(true);
mainPanelCenter.appendChild(pluginInfo.getComponent());
processButton.addEventListener(Events.ON_CLICK, this);
}
示例3: show
import org.zkoss.zul.Borderlayout; //導入依賴的package包/類
public static void show(String title, String name, byte[] arr, Page page) {
AMedia media = new AMedia(name, "pdf", "application/pdf", arr);
final Window window = new Window();
window.setClosable(false);
window.setSizable(false);
Iframe iframe = new Iframe();
iframe.setContent(media);
Borderlayout borderlayout = new Borderlayout();
North north = new North();
Toolbar toolbar = new Toolbar();
toolbar.setAlign("end");
Toolbarbutton close = new Toolbarbutton(null, "/images/close.png");
close.setTooltiptext("Cerrar");
close.addEventListener("onClick", (Event t) -> {
window.onClose();
});
toolbar.appendChild(close);
north.appendChild(toolbar);
borderlayout.appendChild(north);
Center cntr = new Center();
cntr.appendChild(iframe);
borderlayout.appendChild(cntr);
window.appendChild(borderlayout);
iframe.setWidth("100%");
iframe.setHeight("100%");
window.setWidth("80%");
window.setHeight("80%");
window.setPage(page);
window.doModal();
}