public abstract class NodeDataModel<K>
extends javax.faces.model.DataModel<K>
| Constructor and Description |
|---|
NodeDataModel() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
atNullRoot() |
abstract java.util.Iterator<java.util.Map.Entry<NodeKey,K>> |
children() |
abstract KeySegmentConverter |
getConverter() |
K |
getData() |
java.util.Map.Entry<NodeKey,K> |
getEntry() |
NodeKey |
getKey() |
int |
getRowCount() |
K |
getRowData() |
int |
getRowIndex() |
void |
insert(K node,
int index)
Insert a node as a child of the current node.
|
abstract boolean |
isLeaf() |
abstract boolean |
isMutable() |
abstract boolean |
isNodeAvailable() |
boolean |
isRowAvailable() |
abstract K |
navToChild(java.lang.Object keySegment) |
abstract K |
navToKey(NodeKey key) |
abstract K |
navToParent() |
void |
remove(java.lang.Object segOrNode,
boolean isSegment)
Remove a node from the children of the current node.
|
abstract void |
setConverter(KeySegmentConverter converter) |
protected void |
setData(K data) |
void |
setKey(NodeKey key) |
void |
setRowIndex(int rowIndex) |
public K getData()
protected void setData(K data)
public NodeKey getKey()
public void setKey(NodeKey key)
protected boolean atNullRoot()
public abstract K navToParent()
public abstract K navToChild(java.lang.Object keySegment)
public abstract KeySegmentConverter getConverter()
public abstract void setConverter(KeySegmentConverter converter)
public abstract boolean isNodeAvailable()
public abstract boolean isLeaf()
public abstract boolean isMutable()
public void insert(K node, int index)
node - the node to be insertedindex - the position index of the node among siblingspublic void remove(java.lang.Object segOrNode,
boolean isSegment)
segOrNode - the node to be removed or identifying key segmentisSegment - identify if the first argument is a node or segmentpublic boolean isRowAvailable()
isRowAvailable in class javax.faces.model.DataModel<K>public int getRowCount()
getRowCount in class javax.faces.model.DataModel<K>public int getRowIndex()
getRowIndex in class javax.faces.model.DataModel<K>public void setRowIndex(int rowIndex)
setRowIndex in class javax.faces.model.DataModel<K>Copyright 2017 ICEsoft Technologies Canada Corp., All Rights Reserved.