|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.model.DataModel<E>
org.portletfaces.liferay.faces.model.RowMarkerDataModel<E>
public abstract class RowMarkerDataModel<E>
This class extends the DataModel class and provides a convenient base implementation of the
RowMarker interface.
| Nested Class Summary | |
|---|---|
protected class |
RowMarkerDataModel.RowMarksObserver
|
| Field Summary | |
|---|---|
protected boolean |
allRowsMarked
|
| Constructor Summary | |
|---|---|
RowMarkerDataModel()
|
|
| Method Summary | |
|---|---|
int |
deleteMarkedRows()
Deletes the rows that are marked according to the value of RowMarker.getRowMarks() and returns the number of
deleted rows. |
abstract void |
deleteRow(java.lang.Object primaryKey)
Deletes the row associated with the specified primary key. |
abstract java.lang.Object |
getPrimaryKey(E e)
Retrieves the primary key from the specified object. |
RowMarks |
getRowMarks()
Returns an instance of RowMarks that represents rows that are marked. |
boolean |
isAllRowsMarked()
Returns a boolean flag indicating whether or not all rows are marked. |
abstract boolean |
isReset()
Indicates whether or not the underlying cache of rows has been reset/cleared. |
abstract void |
reset()
Resets (clears) the underlying cache of rows. |
void |
setAllRowsMarked(boolean allRowsMarked)
Sets the flag indicating whether or not all rows are marked, according to the specified value. |
void |
setRowMarks(RowMarks rowMarks)
Sets an instance of RowMarks that represents rows that are marked. |
| Methods inherited from class javax.faces.model.DataModel |
|---|
addDataModelListener, getDataModelListeners, getRowCount, getRowData, getRowIndex, getWrappedData, isRowAvailable, iterator, removeDataModelListener, setRowIndex, setWrappedData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean allRowsMarked
| Constructor Detail |
|---|
public RowMarkerDataModel()
| Method Detail |
|---|
public abstract void deleteRow(java.lang.Object primaryKey)
throws java.io.IOException
java.io.IOException - When any type of exception occurs during the delete process.public abstract void reset()
public int deleteMarkedRows()
throws java.io.IOException
RowMarkerRowMarker.getRowMarks() and returns the number of
deleted rows.
deleteMarkedRows in interface RowMarkerjava.io.IOException - When any kind of exception occurs during the delete process.RowMarker#deleteMarkedRows()}public void setAllRowsMarked(boolean allRowsMarked)
RowMarker
setAllRowsMarked in interface RowMarkerRowMarker#setAllRowsMarked(boolean)}public boolean isAllRowsMarked()
RowMarker
isAllRowsMarked in interface RowMarkerRowMarker#isAllRowsMarked()}public abstract java.lang.Object getPrimaryKey(E e)
public RowMarks getRowMarks()
RowMarkerRowMarks that represents rows that are marked.
getRowMarks in interface RowMarkerRowMarker#getRowMarks()}public void setRowMarks(RowMarks rowMarks)
RowMarkerRowMarks that represents rows that are marked.
setRowMarks in interface RowMarkerRowMarker#setRowMarks(RowMarks)}public abstract boolean isReset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||