?? useinline.zul
字號:
<?xml version="1.0" encoding="UTF-8"?><?component name="myrow" macroURI="inline.zul" inline="true"?><!--useinline.zul{{IS_NOTE Purpose: Description: History: Tue Mar 13 13:00:44 2007, Created by tomyeh}}IS_NOTECopyright (C) 2007 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><window title="Test of inline macros" border="normal"> <zscript><![CDATA[ import org.zkoss.util.Pair; List infos = new LinkedList(); for (int j = 0; j < 10; ++j) { infos.add(new Pair("A" + j, "B" + j)); } ]]></zscript> <grid> <rows id="rows"> <myrow col1="${each.x}" col2="${each.y}" forEach="${infos}"/> </rows> </grid> <button label="Create Manullay by Definition"> <attribute name="onClick">{ Component ua = page.getComponentDefinition("myrow", false).newInstance(page, null); ua.setParent(rows); //it calls afterCompose automatically (inline only) }</attribute> </button></window>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -