01: /*
02: * MyGWT Widget Library
03: * Copyright(c) 2007, MyGWT.
04: * licensing@mygwt.net
05: *
06: * http://mygwt.net/license
07: */
08: package net.mygwt.ui.client.widget.treetable;
09:
10: import net.mygwt.ui.client.widget.tree.TreeItemUI;
11:
12: import com.google.gwt.user.client.DOM;
13:
14: class RootTreeTableItem extends TreeTableItem {
15:
16: public RootTreeTableItem(TreeTable treeTable) {
17: super (new String[0]);
18: setElement(DOM.createDiv());
19: this .tree = treeTable;
20: }
21:
22: protected TreeItemUI getTreeItemUI() {
23: TreeTableItemUI ui = new TreeTableItemUI(this );
24: ui.setContainer(getElement());
25: setData("loaded", "true");
26: return ui;
27: }
28:
29: public String getId() {
30: return "";
31: }
32:
33: protected void renderChildren() {
34: if (!childrenRendered) {
35: super.renderChildren();
36: }
37: }
38:
39: }
|