public class

TreeNodeDataModel

extends TreeDataModel
java.lang.Object
   ↳ javax.faces.model.DataModel
     ↳ org.apache.myfaces.tobago.model.TreeDataModel
       ↳ org.apache.myfaces.tobago.model.TreeNodeDataModel

Class Overview

Implementation for a TreeNode that represents the data model for a tree.

Summary

Public Constructors
TreeNodeDataModel(TreeNode data, boolean showRoot, ExpandedState expandedState)
Public Methods
List<Boolean> getJunctions()
int getLevel()
TreePath getPath()
String getRowClientId()
int getRowCount()
TreeNode getRowData()
int getRowIndex()
List<Integer> getRowIndicesOfChildren()
String getRowParentClientId()
Object getWrappedData()
boolean isFolder()
boolean isRowAvailable()
boolean isRowVisible()
void reset()
void setRowClientId(String clientId)
void setRowIndex(int rowIndex)
void setWrappedData(Object data)
void update(ExpandedState expandedState)
[Expand]
Inherited Methods
From class org.apache.myfaces.tobago.model.TreeDataModel
From class javax.faces.model.DataModel
From class java.lang.Object

Public Constructors

public TreeNodeDataModel (TreeNode data, boolean showRoot, ExpandedState expandedState)

Parameters
data The tree data, which shall be wrapped.
showRoot Is the root node visible.
expandedState Defines which nodes are expanded, (XXX should it be so?) a value of null means all.

Public Methods

public List<Boolean> getJunctions ()

public int getLevel ()

public TreePath getPath ()

public String getRowClientId ()

public int getRowCount ()

public TreeNode getRowData ()

public int getRowIndex ()

public List<Integer> getRowIndicesOfChildren ()

public String getRowParentClientId ()

public Object getWrappedData ()

public boolean isFolder ()

public boolean isRowAvailable ()

public boolean isRowVisible ()

public void reset ()

public void setRowClientId (String clientId)

public void setRowIndex (int rowIndex)

public void setWrappedData (Object data)

public void update (ExpandedState expandedState)