org.apache.empire.struts2.actionsupport
Class ListActionSupport

java.lang.Object
  extended by 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

Nested Class Summary
protected static class ListActionSupport.ListPageInfo
           
protected static class ListActionSupport.ListSortInfo
           
 
Field Summary
protected  ActionBase action
           
protected static org.slf4j.Logger log
           
protected  String propertyName
           
 
Constructor Summary
ListActionSupport(ActionBase action, String propertyName)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.slf4j.Logger log

action

protected ActionBase action

propertyName

protected String propertyName
Constructor Detail

ListActionSupport

public ListActionSupport(ActionBase action,
                         String propertyName)
Method Detail

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.