org.apache.empire.struts2.actionsupport
Class ListActionSupport

java.lang.Object
  extended by org.apache.empire.commons.ErrorObject
      extended by org.apache.empire.struts2.actionsupport.ListActionSupport
All Implemented Interfaces:
org.apache.empire.commons.ErrorInfo, ListPagingInfo, ListSortingInfo
Direct Known Subclasses:
BeanListActionSupport, ReaderListActionSupport

public abstract class ListActionSupport
extends org.apache.empire.commons.ErrorObject
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

Constructor Summary
ListActionSupport(ActionBase action, java.lang.String propertyName)
           
 
Method Summary
 int getFirstItemIndex()
           
 int getItemCount()
           
 int getLastItemIndex()
           
 java.lang.String getListPropertyName()
           
 int getPage()
           
 int getPageCount()
           
 int getPageSize()
           
 java.lang.String getSortColumn()
           
 boolean isSortDescending()
           
 void setItemCount(int itemCount)
           
 void setPage(int page)
           
 void setSortColumn(org.apache.empire.data.ColumnExpr column)
           
 void setSortColumn(java.lang.String column)
           
 void setSortDescending(boolean sortDescending)
           
 
Methods inherited from class org.apache.empire.commons.ErrorObject
clearError, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, isExceptionsEnabled, setExceptionsEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListActionSupport

public ListActionSupport(ActionBase action,
                         java.lang.String propertyName)
Method Detail

getListPropertyName

public java.lang.String getListPropertyName()
Specified by:
getListPropertyName in interface ListPagingInfo
Specified by:
getListPropertyName in interface ListSortingInfo

getPageSize

public int getPageSize()
Specified by:
getPageSize in interface ListPagingInfo

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

getSortColumn

public java.lang.String getSortColumn()
Specified by:
getSortColumn in interface ListSortingInfo

setSortColumn

public void setSortColumn(org.apache.empire.data.ColumnExpr column)

setSortColumn

public void setSortColumn(java.lang.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