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 Constructor Description TreeDataModel()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract intgetDepth()abstract List<Boolean>getJunctions()abstract intgetLevel()abstract TreePathgetPath()abstract StringgetRowClientId()abstract intgetRowCount()abstract intgetRowIndex()abstract List<Integer>getRowIndicesOfChildren()abstract StringgetRowParentClientId()abstract EgetWrappedData()abstract booleanisFolder()abstract booleanisRowAvailable()abstract booleanisRowVisible()abstract voidreset()abstract voidsetRowClientId(String clientId)abstract voidsetRowIndex(int rowIndex)abstract voidsetWrappedData(Object data)abstract voidupdate(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:
getRowCountin classjavax.faces.model.DataModel<E>
-
getRowIndex
public abstract int getRowIndex()
- Specified by:
getRowIndexin classjavax.faces.model.DataModel<E>
-
getLevel
public abstract int getLevel()
-
getPath
public abstract TreePath getPath()
-
getDepth
public abstract int getDepth()
-
isFolder
public abstract boolean isFolder()
-
getWrappedData
public abstract E getWrappedData()
- Specified by:
getWrappedDatain classjavax.faces.model.DataModel<E>
-
isRowAvailable
public abstract boolean isRowAvailable()
- Specified by:
isRowAvailablein classjavax.faces.model.DataModel<E>
-
setRowIndex
public abstract void setRowIndex(int rowIndex)
- Specified by:
setRowIndexin classjavax.faces.model.DataModel<E>
-
setWrappedData
public abstract void setWrappedData(Object data)
- Specified by:
setWrappedDatain classjavax.faces.model.DataModel<E>
-
isRowVisible
public abstract boolean isRowVisible()
-
getRowClientId
public abstract String getRowClientId()
-
setRowClientId
public abstract void setRowClientId(String clientId)
-
getRowParentClientId
public abstract String getRowParentClientId()
-
-