import com.webobjects.appserver.WOActionResults;
import com.webobjects.appserver.WOComponent;
import com.webobjects.appserver.WOContext;
import er.ajax.example.InfiniteTreeNode;
public class AjaxTreeExample extends WOComponent {
public Object _rootTreeNode;
public Object _rootTreeNode2;
private Object _treeNode;
private Object _delegate;
public AjaxTreeExample(WOContext context) {
super(context);
_rootTreeNode = new InfiniteTreeNode(null, "Root", 0);
_rootTreeNode2 = new InfiniteTreeNode(null, "Root2", 0);
}
public void setTreeNode(Object treeNode) {
_treeNode = treeNode;
}
public Object getTreeNode() {
return _treeNode;
}
public WOActionResults nodeSelected() {
System.out.println("AjaxTreeExample.nodeSelected: selected " + _treeNode);
return null;
}
public Object delegate() {
if (_delegate == null) {
_delegate = new InfiniteTreeNode.Delegate();
}
return _delegate;
}
}