The model is the tree model (aka the value attribute of the tree2
tag). I needed this in my code since all the expansion code and state
lives in the tree state object in the model and not in the nodes. If I
had had more time, I could have written a custom tree state that gets
its expansion state from the nodes themselves, and then not have the
model passed to each node.
Parent is the parent node. So the root has null as the parent and
every other node has it's parent node set.
On 7/6/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
What are the first two parameters?
I assume model is the "actual model" i.e. the element on the jsp page.
What is parent?
Thanks,
--Todd
public BaseTreeNode(TreeModel model,
BaseTreeNode parent, String type, String identifier,
String name, boolean leaf) {
this.model = model;
this.type = type;
this.parent = parent;
this.identifier = identifier;
this.name = name;
if (leaf)
children = Collections.emptyList();
}