Package org.apache.myfaces.tobago.model
Class TreeDataModel
- java.lang.Object
-
- javax.faces.model.DataModel
-
- org.apache.myfaces.tobago.model.TreeDataModel
-
- All Implemented Interfaces:
Iterable
- Direct Known Subclasses:
TreeNodeDataModel
public abstract class TreeDataModel extends javax.faces.model.DataModel
Abstract class that represents the data model for a tree.
-
-
Constructor Summary
Constructors Constructor Description TreeDataModel()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract int
getDepth()
abstract List<Boolean>
getJunctions()
abstract int
getLevel()
abstract TreePath
getPath()
abstract String
getRowClientId()
abstract int
getRowCount()
abstract int
getRowIndex()
abstract List<Integer>
getRowIndicesOfChildren()
abstract String
getRowParentClientId()
abstract Object
getWrappedData()
abstract boolean
isFolder()
abstract boolean
isRowAvailable()
abstract boolean
isRowVisible()
abstract void
reset()
abstract void
setRowClientId(String clientId)
abstract void
setRowIndex(int rowIndex)
abstract void
setWrappedData(Object data)
abstract void
update(ExpandedState expandedState)
-
Methods inherited from class javax.faces.model.DataModel
addDataModelListener, getDataModelListeners, getRowData, iterator, removeDataModelListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
reset
public abstract void reset()
-
update
public abstract void update(ExpandedState expandedState)
-
getRowCount
public abstract int getRowCount()
- Specified by:
getRowCount
in classjavax.faces.model.DataModel
-
getRowIndex
public abstract int getRowIndex()
- Specified by:
getRowIndex
in classjavax.faces.model.DataModel
-
getLevel
public abstract int getLevel()
-
getPath
public abstract TreePath getPath()
-
getDepth
public abstract int getDepth()
-
isFolder
public abstract boolean isFolder()
-
getWrappedData
public abstract Object getWrappedData()
- Specified by:
getWrappedData
in classjavax.faces.model.DataModel
-
isRowAvailable
public abstract boolean isRowAvailable()
- Specified by:
isRowAvailable
in classjavax.faces.model.DataModel
-
setRowIndex
public abstract void setRowIndex(int rowIndex)
- Specified by:
setRowIndex
in classjavax.faces.model.DataModel
-
setWrappedData
public abstract void setWrappedData(Object data)
- Specified by:
setWrappedData
in classjavax.faces.model.DataModel
-
isRowVisible
public abstract boolean isRowVisible()
-
getRowClientId
public abstract String getRowClientId()
-
setRowClientId
public abstract void setRowClientId(String clientId)
-
getRowParentClientId
public abstract String getRowParentClientId()
-
-