public abstract class TreeSequenceKeyModel<V> extends ExtendedDataModel<V> implements TreeDataModel<V>
SEPARATOR_CHAR| Constructor and Description |
|---|
TreeSequenceKeyModel() |
| Modifier and Type | Method and Description |
|---|---|
V |
getData() |
Object |
getParentRowKey(Object rowKey) |
int |
getRowCount() |
V |
getRowData() |
int |
getRowIndex() |
SequenceRowKey |
getRowKey() |
boolean |
isDataAvailable() |
boolean |
isRowAvailable() |
protected void |
setData(V data) |
void |
setRowIndex(int rowIndex) |
void |
setRowKey(Object rowKey)
Instead of simple
int for current state selection, this model can use any object for select current data. |
protected void |
setRowKeyAndData(SequenceRowKey key,
V data) |
protected abstract void |
setupKey(SequenceRowKey key) |
void |
walk(javax.faces.context.FacesContext context,
DataVisitor visitor,
Range range,
Object argument)
Iterate over model by "visitor" pattern, for given range
|
addDataModelListener, getDataModelListeners, getWrappedData, iterator, removeDataModelListener, setWrappedDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchildren, createSnapshot, getRowKeyConverter, getWrappedData, isLeaf, restoreFromSnapshot, setWrappedDatapublic SequenceRowKey getRowKey()
getRowKey in interface TreeDataModel<V>getRowKey in class ExtendedDataModel<V>nullpublic void setRowKey(Object rowKey)
ExtendedDataModel
Instead of simple int for current state selection, this model can use any object for select current data.
Implementation depend on model, with any restrictions :
Serializable.Object.toString() method must return representation compatible with
UIComponent.getClientId(javax.faces.context.FacesContext), as far as this string will be
appended to clientId of iterator component.setRowKey in interface TreeDataModel<V>setRowKey in class ExtendedDataModel<V>rowKey - key for select current data, or null for clear selection.protected void setData(V data)
protected void setRowKeyAndData(SequenceRowKey key, V data)
public boolean isDataAvailable()
isDataAvailable in interface TreeDataModel<V>public V getData()
getData in interface TreeDataModel<V>protected abstract void setupKey(SequenceRowKey key)
public void walk(javax.faces.context.FacesContext context,
DataVisitor visitor,
Range range,
Object argument)
ExtendedDataModelwalk in class ExtendedDataModel<V>context - current JSF context.visitor - instance of DataVisitor, for process each row.range - Implementation-specific range of data keys.argument - Implementation-specific argumentpublic boolean isRowAvailable()
isRowAvailable in class javax.faces.model.DataModel<V>public int getRowCount()
getRowCount in class javax.faces.model.DataModel<V>public int getRowIndex()
getRowIndex in class javax.faces.model.DataModel<V>public void setRowIndex(int rowIndex)
setRowIndex in class javax.faces.model.DataModel<V>public Object getParentRowKey(Object rowKey)
getParentRowKey in interface TreeDataModel<V>Copyright © 2015 JBoss by Red Hat. All Rights Reserved.