?? z30-tree-0007.zul
字號:
<zk>
<window title="treemodel with paging">
<zscript>
import org.zkoss.zkdemo.test2.tree.TreeModelA;
//An ArrayList is created to be the root of tree
ArrayList mother = new ArrayList();
for(int i=0; i < 9; i++){
mother.add("Person"+i);
}
ArrayList child = new ArrayList();
for(int i =0; i < 50; i++){
child.add("Sub"+i);
}
mother.add(child);
for(int i=0; i < 31; i++){
mother.add("Person"+i);
}
//TreeModelA class is contructed, only the root "mother" of tree is passed to its constructor.
TreeModelA tma = new TreeModelA(mother);
</zscript>
<tree model="${tma}" id="tree" ></tree>
</window>
</zk>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -