org.loom.simpleds
Class PagedListAdapter<T>

java.lang.Object
  extended by org.loom.simpleds.PagedListAdapter<T>
All Implemented Interfaces:
org.loom.paged.PagedContainer, org.loom.paged.PagedListData<T>

public class PagedListAdapter<T>
extends java.lang.Object
implements org.loom.paged.PagedListData<T>

Transforms a simpleds PagedList class into a PagedListData interface. This class is used to transforms simpleds paged lists for presdentation using loom tags.


Field Summary
 
Fields inherited from interface org.loom.paged.PagedContainer
DEFAULT_PAGE_SIZE
 
Constructor Summary
PagedListAdapter(org.simpleds.PagedList<T> data)
           
 
Method Summary
 java.util.List<T> getData()
           
 java.lang.String getId()
           
 int getNextPageRecordIndex()
           
 int getPageIndex()
           
 int getPageSize()
           
 int getRecordIndex()
           
 org.loom.paged.SortOrder getSortOrder()
           
 java.lang.String getSortProperty()
           
 int getTotalPages()
           
 int getTotalRecords()
           
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagedListAdapter

public PagedListAdapter(org.simpleds.PagedList<T> data)
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface org.loom.paged.PagedContainer

getData

public java.util.List<T> getData()
Specified by:
getData in interface org.loom.paged.PagedListData<T>

getNextPageRecordIndex

public int getNextPageRecordIndex()
Specified by:
getNextPageRecordIndex in interface org.loom.paged.PagedListData<T>

getTotalPages

public int getTotalPages()
Specified by:
getTotalPages in interface org.loom.paged.PagedListData<T>

getTotalRecords

public int getTotalRecords()
Specified by:
getTotalRecords in interface org.loom.paged.PagedListData<T>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface org.loom.paged.PagedListData<T>

getPageIndex

public int getPageIndex()
Specified by:
getPageIndex in interface org.loom.paged.PagedContainer

getPageSize

public int getPageSize()
Specified by:
getPageSize in interface org.loom.paged.PagedContainer

getRecordIndex

public int getRecordIndex()
Specified by:
getRecordIndex in interface org.loom.paged.PagedContainer

getSortOrder

public org.loom.paged.SortOrder getSortOrder()
Specified by:
getSortOrder in interface org.loom.paged.PagedContainer

getSortProperty

public java.lang.String getSortProperty()
Specified by:
getSortProperty in interface org.loom.paged.PagedContainer