|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.model.DataModel
org.rhq.core.gui.table.model.PagedListDataModel<T>
T - the data object typepublic abstract class PagedListDataModel<T>
| Constructor Summary | |
|---|---|
PagedListDataModel(AbstractPagedDataUIBean pagedDataBean)
Create a data model that pages through the data set, showing the specified number of rows on each page. |
|
| Method Summary | |
|---|---|
abstract org.rhq.core.domain.util.PageList<T> |
fetchPage(org.rhq.core.domain.util.PageControl pageControl)
Method which must be implemented in cooperation with the managed bean class to fetch data on demand. |
org.rhq.core.domain.util.PageControl |
getPageControl()
|
int |
getRowCount()
Return the total number of rows of data available (not just the number of rows in the current page!). |
Object |
getRowData()
Return the object corresponding to the current getRowIndex(). |
int |
getRowIndex()
|
Object |
getWrappedData()
|
boolean |
isRowAvailable()
Return true if the getRowIndex() value is currently set to a value that matches some
element in the dataset. |
void |
reset()
TODO |
void |
setPageControl(org.rhq.core.domain.util.PageControl pageControl)
|
void |
setRowIndex(int index)
Specify what the "current row" within the dataset is. |
void |
setWrappedData(Object o)
Not used in this class; data is fetched via a callback to the getDataPage() method rather
than by explicitly assigning a list. |
| 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 |
|---|
public PagedListDataModel(AbstractPagedDataUIBean pagedDataBean)
| Method Detail |
|---|
public void setWrappedData(Object o)
getDataPage() method rather
than by explicitly assigning a list.
setWrappedData in class javax.faces.model.DataModelo - unused
UnsupportedOperationException - thrown when this method is calledpublic int getRowIndex()
getRowIndex in class javax.faces.model.DataModelpublic void setRowIndex(int index)
setRowIndex in class javax.faces.model.DataModelindex - current row index, indexes start at 0public int getRowCount()
getRowCount in class javax.faces.model.DataModelpublic Object getRowData()
getRowIndex(). If the PageList object currently cached
doesn't include that index then getDataPage() is called to retrieve the appropriate page.
getRowData in class javax.faces.model.DataModelgetRowIndex()
IllegalArgumentException - if the getRowIndex() is outside the range of the dataset sizepublic Object getWrappedData()
getWrappedData in class javax.faces.model.DataModelpublic boolean isRowAvailable()
true if the getRowIndex() value is currently set to a value that matches some
element in the dataset. Note that it may match a row that is not in the currently cached PageList; if so then
when getRowData() is called the required PageList will be fetched by calling
getDataPage().
isRowAvailable in class javax.faces.model.DataModeltrue if the row is available@NotNull public org.rhq.core.domain.util.PageControl getPageControl()
public void setPageControl(org.rhq.core.domain.util.PageControl pageControl)
public abstract org.rhq.core.domain.util.PageList<T> fetchPage(org.rhq.core.domain.util.PageControl pageControl)
pageControl - information such as the first row of data to be fetched, the number of rows of data to be fetched and
sorting data
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||