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 ListPagingInfo
getListPropertyName
in interface ListSortingInfo
protected ListActionSupport.ListPageInfo getListPageInfo()
public int getPageSize()
getPageSize
in interface ListPagingInfo
protected void setFirstItem(int firstItemIndex)
public int getFirstItemIndex()
getFirstItemIndex
in interface ListPagingInfo
public int getLastItemIndex()
getLastItemIndex
in interface ListPagingInfo
public int getItemCount()
getItemCount
in interface ListPagingInfo
public void setItemCount(int itemCount)
public int getPageCount()
getPageCount
in interface ListPagingInfo
public int getPage()
getPage
in interface ListPagingInfo
public void setPage(int page)
setPage
in interface ListPagingInfo
protected ListActionSupport.ListSortInfo getListSortInfo()
public String getSortColumn()
getSortColumn
in interface ListSortingInfo
public void setSortColumn(ColumnExpr column)
public void setSortColumn(String column)
setSortColumn
in interface ListSortingInfo
public boolean isSortDescending()
isSortDescending
in interface ListSortingInfo
public void setSortDescending(boolean sortDescending)
setSortDescending
in interface ListSortingInfo
Copyright © 2008–2015 Apache Software Foundation. All rights reserved.