Class ListPageElement.ListTableInfo
java.lang.Object
org.apache.empire.jsf2.pageelements.ListPageElement.ListTableInfo
- Direct Known Subclasses:
BeanListPageElement.BeanListTableInfo
- Enclosing class:
- ListPageElement<T>
This class holds information about the list view to display.
This will be held on the session in order to maintain position and sorting when navigating back and forth.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfirstPage(javax.faces.event.ActionEvent e) set the next x entriesintintintintintvoidinit(int itemCount, int pageSize) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisValid()voidlastPage(javax.faces.event.ActionEvent e) set the next x entriesvoidnextPage(javax.faces.event.ActionEvent e) set the next x entriesvoidprevPage(javax.faces.event.ActionEvent e) set the prev x entriesvoidsetModified(boolean modified) voidsetPageNumber(int newPageNumber) voidsetPosition(int position) voidsetSortAscending(boolean sortAscending) voidsetSortColumn(javax.faces.event.ActionEvent ae) voidsetSortColumnName(String column) voidsetSortOrderChanged(boolean sortOrderChanged) voidsetValid(boolean valid)
-
Constructor Details
-
ListTableInfo
public ListTableInfo()
-
-
Method Details
-
init
public void init(int itemCount, int pageSize) -
isValid
public boolean isValid() -
setValid
public void setValid(boolean valid) -
isModified
public boolean isModified() -
setModified
public void setModified(boolean modified) -
getItemCount
public int getItemCount() -
getPageSize
public int getPageSize() -
getSortColumnName
-
setSortColumnName
-
isSortAscending
public boolean isSortAscending() -
setSortAscending
public void setSortAscending(boolean sortAscending) -
isSortOrderChanged
public boolean isSortOrderChanged() -
setSortOrderChanged
public void setSortOrderChanged(boolean sortOrderChanged) -
setSortColumn
public void setSortColumn(javax.faces.event.ActionEvent ae) -
getPosition
public int getPosition() -
setPosition
public void setPosition(int position) -
isAllowPagination
public boolean isAllowPagination() -
isFirstPage
public boolean isFirstPage() -
isLastPage
public boolean isLastPage() -
isHasNextPage
public boolean isHasNextPage() -
isHasPrevPage
public boolean isHasPrevPage() -
nextPage
public void nextPage(javax.faces.event.ActionEvent e) set the next x entries- Parameters:
e- the action event
-
prevPage
public void prevPage(javax.faces.event.ActionEvent e) set the prev x entries- Parameters:
e- the action event
-
firstPage
public void firstPage(javax.faces.event.ActionEvent e) set the next x entries- Parameters:
e- the action event
-
lastPage
public void lastPage(javax.faces.event.ActionEvent e) set the next x entries- Parameters:
e- the action event
-
getPageNumber
public int getPageNumber() -
setPageNumber
public void setPageNumber(int newPageNumber) -
getPageCount
public int getPageCount()
-