Class AbstractPagination
- java.lang.Object
-
- org.silverpeas.core.web.util.viewgenerator.html.pagination.AbstractPagination
-
- All Implemented Interfaces:
Pagination
,SimpleGraphicElement
- Direct Known Subclasses:
PaginationSP
public abstract class AbstractPagination extends Object implements Pagination
-
-
Field Summary
-
Fields inherited from interface org.silverpeas.core.web.util.viewgenerator.html.pagination.Pagination
INDEX_PARAMETER_NAME, ITEMS_PER_PAGE_PARAM
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPagination()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.web.util.viewgenerator.html.pagination.Pagination
getPaginatedListFrom, getStartLastIndexes, printCounter, printIndex, printIndex, printIndex
-
Methods inherited from interface org.silverpeas.core.web.util.viewgenerator.html.SimpleGraphicElement
print
-
-
-
-
Method Detail
-
init
public void init(int nbItems, int nbItemsPerPage, int firstItemIndex)
- Specified by:
init
in interfacePagination
-
getIconsPath
public String getIconsPath()
-
getNbItems
public int getNbItems()
- Specified by:
getNbItems
in interfacePagination
-
getNbItemsPerPage
public int getNbItemsPerPage()
-
getFirstItemIndex
public int getFirstItemIndex()
- Specified by:
getFirstItemIndex
in interfacePagination
-
getLastItemIndex
public int getLastItemIndex()
- Specified by:
getLastItemIndex
in interfacePagination
-
getCurrentPage
public int getCurrentPage()
-
getNbPage
public int getNbPage()
-
isLastPage
public boolean isLastPage()
- Specified by:
isLastPage
in interfacePagination
-
getIndexForPreviousPage
public int getIndexForPreviousPage()
- Specified by:
getIndexForPreviousPage
in interfacePagination
-
getIndexForDirectPage
public int getIndexForDirectPage(int page)
- Specified by:
getIndexForDirectPage
in interfacePagination
-
getIndexForCurrentPage
public int getIndexForCurrentPage()
- Specified by:
getIndexForCurrentPage
in interfacePagination
-
getIndexForNextPage
public int getIndexForNextPage()
- Specified by:
getIndexForNextPage
in interfacePagination
-
getIndexForLastPage
public int getIndexForLastPage()
-
getActionSuffix
public String getActionSuffix()
-
setActionSuffix
public void setActionSuffix(String actionSuffix)
- Specified by:
setActionSuffix
in interfacePagination
-
getBaseURL
public String getBaseURL()
-
setBaseURL
public void setBaseURL(String url)
- Specified by:
setBaseURL
in interfacePagination
-
getAltPreviousPage
public String getAltPreviousPage()
-
setAltPreviousPage
public void setAltPreviousPage(String text)
- Specified by:
setAltPreviousPage
in interfacePagination
-
getAltNextPage
public String getAltNextPage()
-
setAltNextPage
public void setAltNextPage(String text)
- Specified by:
setAltNextPage
in interfacePagination
-
getNumberOfPagesAround
protected int getNumberOfPagesAround()
-
displayTotalNumberOfPages
protected boolean displayTotalNumberOfPages()
-
getIndexThreshold
protected int getIndexThreshold()
-
getNumberPerPageThreshold
protected int getNumberPerPageThreshold()
-
getJumperThreshold
protected int getJumperThreshold()
-
getPaginationAllThreshold
protected int getPaginationAllThreshold()
-
getMultilang
public LocalizationBundle getMultilang()
-
setMultilang
public void setMultilang(LocalizationBundle multilang)
- Specified by:
setMultilang
in interfacePagination
-
-