本文整理汇总了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();
}