public void render(Treeitem item, Object data) throws Exception {
SimpleTreeNode t = (SimpleTreeNode) data;
FunForm funForm = (FunForm) t.getData();
// Construct treecells
Treecell tcFunName = new Treecell(funForm.getFunName());
Treecell tcFunPath = new Treecell(funForm.getFunPath());
Treecell tcFunId = new Treecell(funForm.getFunId().toString());
Treecell tcBootFlag = new Treecell(funForm.getBootFlag());
/*
* Since only one treerow is allowed, if treerow is not null, append
* treecells to it. If treerow is null, contruct a new treerow and
* attach it to item.
*/
Treerow tr = null;
if (item.getTreerow() == null) {
tr = new Treerow();
tr.setParent(item);
} else {
tr = item.getTreerow();
tr.getChildren().clear();
}
// Attach treecells to treerow
tcFunName.setParent(tr);
tcFunPath.setParent(tr);
tcFunId.setParent(tr);
tcBootFlag.setParent(tr);
tcFunPath.setVisible(false);
tcFunId.setVisible(false);
tcBootFlag.setVisible(false);
// not open tree node in UI
item.setOpen(false);