📄 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 + -