Maven module :un.engine : engine-ui :
Class : un.engine.ui.model.TreeRowModel
Extends/Implements : un.api.event.AbstractEventSource un.engine.ui.model.RowModel un.api.event.EventListener
Subclasses : -

author  Johann Sorel


Variables : PROP_CELLPRESENTER, PROP_PATHPRESENTER
Functions : TreeRowModel, TreeRowModel, getRoot, getFilter, isUnfold, setFold, asSequence, getDepth, getSize, getElement, findParent, getEventClasses, receiveEvent, fireNodeOpen, fireNodeClose, setFoldRecursive


public Chars PROP_CELLPRESENTER

public Chars PROP_PATHPRESENTER


public void TreeRowModel (Node root)

public void TreeRowModel (Node root, Predicate filter, boolean rootVisible)


Get the tree root node.
return  Node
public Node getRoot ()

public Predicate getFilter ()


indicate if given node is open.
param  node
return
public boolean isUnfold (Node node)


Set given node fold state.
param  node
param  open
public void setFold (Node node, boolean open)

public Sequence asSequence ()

public int[] getDepth (Object node)

public int getSize ()

public Object getElement (int index)

public Node findParent (Node candidate, int[] index)

public Class[] getEventClasses ()

public void receiveEvent (Event event)

protected void fireNodeOpen (Node n)

protected void fireNodeClose (Node n)


Recursivly set fold state of node and it's children.
param  model
param  node
param  open
public void setFoldRecursive (TreeRowModel model, Node node, boolean open)