org.apache.empire.struts2.actionsupport
Class ListActionSupport
java.lang.Object
org.apache.empire.struts2.actionsupport.ListActionSupport
- All Implemented Interfaces:
- ListPagingInfo, ListSortingInfo
- Direct Known Subclasses:
- BeanListActionSupport, ReaderListActionSupport
public abstract class ListActionSupport
- extends Object
- implements ListPagingInfo, ListSortingInfo
ListActionSupport
This action support object provides functions for dealing with list paging and sorting.
Please used either ReaderListActionSupport or BeanListActionSupport object.
- Author:
- Rainer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.slf4j.Logger log
action
protected ActionBase action
propertyName
protected String propertyName
ListActionSupport
public ListActionSupport(ActionBase action,
String propertyName)
getListPropertyName
public String getListPropertyName()
- Specified by:
getListPropertyName
in interface ListPagingInfo
- Specified by:
getListPropertyName
in interface ListSortingInfo
getListPageInfo
protected ListActionSupport.ListPageInfo getListPageInfo()
getPageSize
public int getPageSize()
- Specified by:
getPageSize
in interface ListPagingInfo
setFirstItem
protected void setFirstItem(int firstItemIndex)
getFirstItemIndex
public int getFirstItemIndex()
- Specified by:
getFirstItemIndex
in interface ListPagingInfo
getLastItemIndex
public int getLastItemIndex()
- Specified by:
getLastItemIndex
in interface ListPagingInfo
getItemCount
public int getItemCount()
- Specified by:
getItemCount
in interface ListPagingInfo
setItemCount
public void setItemCount(int itemCount)
getPageCount
public int getPageCount()
- Specified by:
getPageCount
in interface ListPagingInfo
getPage
public int getPage()
- Specified by:
getPage
in interface ListPagingInfo
setPage
public void setPage(int page)
- Specified by:
setPage
in interface ListPagingInfo
getListSortInfo
protected ListActionSupport.ListSortInfo getListSortInfo()
getSortColumn
public String getSortColumn()
- Specified by:
getSortColumn
in interface ListSortingInfo
setSortColumn
public void setSortColumn(ColumnExpr column)
setSortColumn
public void setSortColumn(String column)
- Specified by:
setSortColumn
in interface ListSortingInfo
isSortDescending
public boolean isSortDescending()
- Specified by:
isSortDescending
in interface ListSortingInfo
setSortDescending
public void setSortDescending(boolean sortDescending)
- Specified by:
setSortDescending
in interface ListSortingInfo
Copyright © 2008–2014 Apache Software Foundation. All rights reserved.