public class

TreeDataModel

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

Summary

Public Constructors
TreeDataModel(DefaultMutableTreeNode data, boolean showRoot, ExpandedState expandedState)
Public Methods
List<Integer> getChildrensRowIndices()
TreePath getPath()
String getRowClientId()
int getRowCount()
DefaultMutableTreeNode getRowData()
int getRowIndex()
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 javax.faces.model.DataModel
From class java.lang.Object

Public Constructors

public TreeDataModel (DefaultMutableTreeNode 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<Integer> getChildrensRowIndices ()

public TreePath getPath ()

public String getRowClientId ()

public int getRowCount ()

public DefaultMutableTreeNode getRowData ()

public int getRowIndex ()

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)