public abstract class ListActionSupport extends Object implements ListPagingInfo, ListSortingInfo
This action support object provides functions for dealing with list paging and sorting.
Please used either ReaderListActionSupport or BeanListActionSupport object.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ListActionSupport.ListPageInfo |
protected static class |
ListActionSupport.ListSortInfo |
| Modifier and Type | Field and Description |
|---|---|
protected ActionBase |
action |
protected static org.slf4j.Logger |
log |
protected String |
propertyName |
| Constructor and Description |
|---|
ListActionSupport(ActionBase action,
String propertyName) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFirstItemIndex() |
int |
getItemCount() |
int |
getLastItemIndex() |
protected ListActionSupport.ListPageInfo |
getListPageInfo() |
String |
getListPropertyName() |
protected ListActionSupport.ListSortInfo |
getListSortInfo() |
int |
getPage() |
int |
getPageCount() |
int |
getPageSize() |
String |
getSortColumn() |
boolean |
isSortDescending() |
protected void |
setFirstItem(int firstItemIndex) |
void |
setItemCount(int itemCount) |
void |
setPage(int page) |
void |
setSortColumn(ColumnExpr column) |
void |
setSortColumn(String column) |
void |
setSortDescending(boolean sortDescending) |
protected static org.slf4j.Logger log
protected ActionBase action
protected String propertyName
public ListActionSupport(ActionBase action, String propertyName)
public String getListPropertyName()
getListPropertyName in interface ListPagingInfogetListPropertyName in interface ListSortingInfoprotected ListActionSupport.ListPageInfo getListPageInfo()
public int getPageSize()
getPageSize in interface ListPagingInfoprotected void setFirstItem(int firstItemIndex)
public int getFirstItemIndex()
getFirstItemIndex in interface ListPagingInfopublic int getLastItemIndex()
getLastItemIndex in interface ListPagingInfopublic int getItemCount()
getItemCount in interface ListPagingInfopublic void setItemCount(int itemCount)
public int getPageCount()
getPageCount in interface ListPagingInfopublic int getPage()
getPage in interface ListPagingInfopublic void setPage(int page)
setPage in interface ListPagingInfoprotected ListActionSupport.ListSortInfo getListSortInfo()
public String getSortColumn()
getSortColumn in interface ListSortingInfopublic void setSortColumn(ColumnExpr column)
public void setSortColumn(String column)
setSortColumn in interface ListSortingInfopublic boolean isSortDescending()
isSortDescending in interface ListSortingInfopublic void setSortDescending(boolean sortDescending)
setSortDescending in interface ListSortingInfoCopyright © 2008–2022 Apache Software Foundation. All rights reserved.