|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.model.DataModel
com.ibm.xsp.model.TabularDataModel
com.ibm.xsp.model.AbstractDataModel
public abstract class AbstractDataModel
Field Summary | |
---|---|
protected int |
_rowIndex
|
protected java.lang.Object |
_wrappedData
|
Fields inherited from class com.ibm.xsp.model.TabularDataModel |
---|
dataControl, RESORT_ASCENDING, RESORT_BOTH, RESORT_DESCENDING, RESORT_NONE, RESORT_UNKNOWN, SORT_ASCENDING, SORT_DESCENDING, SORT_TOGGLE, TYPE_CATEGORY, TYPE_ENTRY, TYPE_TOTAL, TYPE_UNKNOWN |
Constructor Summary | |
---|---|
AbstractDataModel()
Construct an AbstractDataModel instance |
Method Summary | |
---|---|
protected java.lang.String |
getPropertyAsString(java.lang.String name,
java.lang.String value,
boolean checkRequest)
Helper method to return a property value |
protected java.lang.Object |
getPropertyValue(java.lang.String name,
java.lang.Object value,
boolean checkRequest)
Helper method to return a property value |
int |
getRowIndex()
Note: this does not delegate to ValueBindingObject.getValueBinding(String) because the row index
cannot be a value binding. |
javax.faces.el.ValueBinding |
getValueBinding(java.lang.String name)
Return the ValueBinding instance to used to calculate the value for the specified property. |
java.lang.Object |
getWrappedData()
Delegates to ValueBindingObject.getValueBinding(String) |
boolean |
isRowAvailable()
Return true is a row is available, i.e. |
protected void |
setDisplayParameters(int first,
int rows)
No implementation. |
void |
setRowIndex(int rowIndex)
|
void |
setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding binding)
Set the ValueBinding instance to used to calculate the value for the specified property. |
void |
setWrappedData(java.lang.Object data)
|
Methods inherited from class javax.faces.model.DataModel |
---|
addDataModelListener, getDataModelListeners, getRowCount, getRowData, removeDataModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int _rowIndex
protected java.lang.Object _wrappedData
Constructor Detail |
---|
public AbstractDataModel()
Method Detail |
---|
public boolean isRowAvailable()
TabularDataModel
true
is a row is available, i.e. current row index is
between the first and last row indexes.
(non-Javadoc)
isRowAvailable
in class TabularDataModel
DataModel.isRowAvailable()
public int getRowIndex()
ValueBindingObject.getValueBinding(String)
because the row index
cannot be a value binding.
getRowIndex
in class TabularDataModel
DataModel.getRowIndex()
public void setRowIndex(int rowIndex)
setRowIndex
in class TabularDataModel
public java.lang.Object getWrappedData()
ValueBindingObject.getValueBinding(String)
getWrappedData
in class TabularDataModel
DataModel.getWrappedData()
public void setValueBinding(java.lang.String name, javax.faces.el.ValueBinding binding)
ValueBindingObject
setValueBinding
in interface ValueBindingObject
name
- Name of the propertybinding
- The ValueBinding to set, or null to remove an existing ValueBindingpublic void setWrappedData(java.lang.Object data)
setWrappedData
in class TabularDataModel
public javax.faces.el.ValueBinding getValueBinding(java.lang.String name)
ValueBindingObject
getValueBinding
in interface ValueBindingObject
name
- Name of the property
protected java.lang.String getPropertyAsString(java.lang.String name, java.lang.String value, boolean checkRequest)
protected java.lang.Object getPropertyValue(java.lang.String name, java.lang.Object value, boolean checkRequest)
protected void setDisplayParameters(int first, int rows)
first
- row to start atrows
- number of rows to display
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |