|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.model.DataModel com.ibm.xsp.model.TabularDataModel com.ibm.xsp.model.AbstractDataModel com.ibm.xsp.model.AbstractViewDataModel
public abstract class AbstractViewDataModel
Field Summary |
---|
Fields inherited from class com.ibm.xsp.model.AbstractDataModel |
---|
_rowIndex, _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 |
Fields inherited from interface com.ibm.xsp.model.ViewDataModel |
---|
SORT_ASCENDING, SORT_DESCENDING, SORT_NONE |
Constructor Summary | |
---|---|
protected |
AbstractViewDataModel()
Default Constructor |
Method Summary | |
---|---|
void |
addSelectedId(java.lang.String id)
Add the specified id to the selected list |
void |
clearSelectedIds()
Clear the list of selected ids. |
void |
deleteSelectedItems()
Delete the selected items and clear the list of selected ids. |
protected abstract int |
doComputeRowCount()
Compute the total number of rows for this data model. |
protected abstract void |
doDeleteSelectedItems(java.util.List selectedIds)
Delete the selected items and clear the list of selected ids. |
protected abstract int |
doGetSortOrder(java.lang.String columnName)
Get the sort order for the specified column |
protected abstract ViewRowData |
doGetViewRowData()
Return a ViewRowData representing the data for the currently selected row index in the View |
protected abstract boolean |
doIsDataTransient(java.lang.Object wrappedData)
Return true if this current wrapped data is transient |
protected abstract boolean |
doIsNumeric(java.lang.String columnName)
Return true if the column has a numeric value |
protected abstract void |
doReload()
Force a refresh of the view data model. |
protected abstract void |
doSetComputeTotals(boolean computeTotals)
Indicates that column totals should be computed. |
protected abstract void |
doSetSortOrder(java.lang.String columnName,
int sortOrder)
Set the sort order for the specified column |
int |
getRowCount()
see javax.faces.model.DataModel#getRowCount() (non-Javadoc) |
java.lang.Object |
getRowData()
see javax.faces.model.DataModel#getRowData() (non-Javadoc) |
java.util.Iterator |
getSelectedIds()
Return an iterator of the selected ids. |
int |
getSortOrder(java.lang.String columnName)
Get the sort order for the specified column |
boolean |
isNumeric(java.lang.String columnName)
Return true if the column has a numeric value |
boolean |
isSelectedId(java.lang.String id)
Return true if the specified id is selected |
void |
reload()
Force a refresh of the view data model. |
void |
removeSelectedId(java.lang.String id)
Remove the specified id to the selected list |
protected void |
resetRowCount()
Reset the row count to -1 |
void |
setComputeTotals(boolean computeTotals)
Indicates that column totals should be computed. |
void |
setSortOrder(java.lang.String columnName,
int sortOrder)
Set the sort order for the specified column |
Methods inherited from class com.ibm.xsp.model.AbstractDataModel |
---|
getPropertyAsString, getPropertyValue, getRowIndex, getValueBinding, getWrappedData, isRowAvailable, setDisplayParameters, setRowIndex, setValueBinding, setWrappedData |
Methods inherited from class javax.faces.model.DataModel |
---|
addDataModelListener, getDataModelListeners, removeDataModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractViewDataModel()
Method Detail |
---|
public int getRowCount()
getRowCount
in class javax.faces.model.DataModel
DataModel.getRowCount()
public java.lang.Object getRowData()
getRowData
in class javax.faces.model.DataModel
DataModel.getRowData()
public void reload()
reload
in interface ViewDataModel
public void setComputeTotals(boolean computeTotals)
setComputeTotals
in interface ViewDataModel
computeTotals
- The computeTotals to set.public boolean isNumeric(java.lang.String columnName)
isNumeric
in interface ViewDataModel
public void setSortOrder(java.lang.String columnName, int sortOrder)
setSortOrder
in interface ViewDataModel
public int getSortOrder(java.lang.String columnName)
getSortOrder
in interface ViewDataModel
public java.util.Iterator getSelectedIds()
getSelectedIds
in interface ViewDataModel
getSelectedIds
in class TabularDataModel
public void clearSelectedIds()
clearSelectedIds
in interface ViewDataModel
clearSelectedIds
in class TabularDataModel
public boolean isSelectedId(java.lang.String id)
isSelectedId
in interface ViewDataModel
isSelectedId
in class TabularDataModel
public void addSelectedId(java.lang.String id)
addSelectedId
in interface ViewDataModel
addSelectedId
in class TabularDataModel
public void removeSelectedId(java.lang.String id)
removeSelectedId
in interface ViewDataModel
removeSelectedId
in class TabularDataModel
public void deleteSelectedItems() throws java.io.IOException
deleteSelectedItems
in interface ViewDataModel
deleteSelectedItems
in class TabularDataModel
java.io.IOException
protected final void resetRowCount()
protected abstract void doReload()
protected abstract void doSetComputeTotals(boolean computeTotals)
computeTotals
- The computeTotals to set.protected abstract boolean doIsNumeric(java.lang.String columnName)
protected abstract int doComputeRowCount()
protected abstract ViewRowData doGetViewRowData()
protected abstract void doSetSortOrder(java.lang.String columnName, int sortOrder)
protected abstract int doGetSortOrder(java.lang.String columnName)
protected abstract boolean doIsDataTransient(java.lang.Object wrappedData)
data
-
protected abstract void doDeleteSelectedItems(java.util.List selectedIds) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |