Project Wonder 5.0.0.8658

er.ajax
Class AjaxTreeModel.WrapperNode

java.lang.Object
  extended by er.ajax.AjaxTreeModel.WrapperNode
Enclosing class:
AjaxTreeModel

public abstract static class AjaxTreeModel.WrapperNode
extends Object

WrapperNode is useful if your objects form a graph instead of a tree and you want to maintain the unique branching to a particular node as the user navigates through the tree. isLeaf has a default implementation that you may want to overried if you can provide a "smarter" implementation.

Author:
mschrag

Constructor Summary
AjaxTreeModel.WrapperNode(AjaxTreeModel.WrapperNode parent, Object userObject)
           
 
Method Summary
protected abstract  NSArray _childrenTreeNodes()
           
protected abstract  AjaxTreeModel.WrapperNode _createChildNode(Object userObject)
           
 NSArray childrenTreeNodes()
           
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isLeaf()
           
 AjaxTreeModel.WrapperNode parentTreeNode()
           
 Object userObject()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxTreeModel.WrapperNode

public AjaxTreeModel.WrapperNode(AjaxTreeModel.WrapperNode parent,
                                 Object userObject)
Method Detail

userObject

public Object userObject()

_createChildNode

protected abstract AjaxTreeModel.WrapperNode _createChildNode(Object userObject)

_childrenTreeNodes

protected abstract NSArray _childrenTreeNodes()

childrenTreeNodes

public NSArray childrenTreeNodes()

isLeaf

public boolean isLeaf()

parentTreeNode

public AjaxTreeModel.WrapperNode parentTreeNode()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Last updated: Fri, Nov 21, 2008 • 04:36 AM EST

Copyright © 2002 – 2007 Project Wonder.