📄 b35-2075716.zul
字号:
<?xml version="1.0" encoding="UTF-8"?><!--B35-2075716.zul{{IS_NOTE Purpose: Description: History: Wed Aug 27 12:03:48 TST 2008, Created by jumperchen}}IS_NOTECopyright (C) 2008 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><window>1. Press the "add" button, and see the new column of Portallayout is 50% of right remainder width. <separator/>2. Press the "remove" button, and see the column disappear. <separator />3. If no any error, that is true. <button label="add" onClick="add()" /> <button label="remove" onClick="remove()" /> <portallayout id="cl"> <portalchildren width="200px" style="padding: 5px"> <panel height="100px" title="portal" border="normal" maximizable="true" collapsible="true"> <panelchildren>Panel</panelchildren> </panel> </portalchildren> </portallayout> <zscript> import org.zkoss.zkmax.zul.Portalchildren; import org.zkoss.zul.Spinner; Portalchildren[] cc = new Portalchildren[15]; int count = 0; public void add() { if (count > 14) return; cc[count] = new Portalchildren(); cc[count].setWidth("50%"); cc[count].setParent(cl); Panel p = new Panel(); p.setHeight("100px"); p.setStyle("padding: 5px"); p.setTitle("portal " + count); p.setBorder("normal"); Panelchildren pc = new Panelchildren(); Label l = new Label("test"); l.setParent(pc); pc.setParent(p); p.setParent(cc[count]); count++; } public void remove() { if (count > 0) cc[--count].detach(); }</zscript></window>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -