Package org.apache.myfaces.tobago.model
Class TreeDataModel<E>
java.lang.Object
javax.faces.model.DataModel<E>
org.apache.myfaces.tobago.model.TreeDataModel<E>
- All Implemented Interfaces:
Iterable<E>
- Direct Known Subclasses:
TreeNodeDataModel
public abstract class TreeDataModel<E>
extends javax.faces.model.DataModel<E>
Abstract class that represents the data model for a tree.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract int
getDepth()
abstract int
getLevel()
abstract TreePath
getPath()
abstract String
abstract int
abstract int
abstract String
abstract E
abstract boolean
isFolder()
abstract boolean
abstract boolean
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
-
Constructor Details
-
TreeDataModel
public TreeDataModel()
-
-
Method Details
-
reset
public abstract void reset() -
update
-
getRowCount
public abstract int getRowCount()- Specified by:
getRowCount
in classjavax.faces.model.DataModel<E>
-
getRowIndex
public abstract int getRowIndex()- Specified by:
getRowIndex
in classjavax.faces.model.DataModel<E>
-
getLevel
public abstract int getLevel() -
getPath
-
getDepth
public abstract int getDepth() -
isFolder
public abstract boolean isFolder() -
getWrappedData
- Specified by:
getWrappedData
in classjavax.faces.model.DataModel<E>
-
isRowAvailable
public abstract boolean isRowAvailable()- Specified by:
isRowAvailable
in classjavax.faces.model.DataModel<E>
-
setRowIndex
public abstract void setRowIndex(int rowIndex) - Specified by:
setRowIndex
in classjavax.faces.model.DataModel<E>
-
setWrappedData
- Specified by:
setWrappedData
in classjavax.faces.model.DataModel<E>
-
isRowVisible
public abstract boolean isRowVisible() -
getRowClientId
-
setRowClientId
-
getRowParentClientId
-
getRowIndicesOfChildren
-
getJunctions
-