Package org.opencms.jsp.search.state
Class CmsSearchStatePagination
- java.lang.Object
-
- org.opencms.jsp.search.state.CmsSearchStatePagination
-
- All Implemented Interfaces:
I_CmsSearchStatePagination
public class CmsSearchStatePagination extends java.lang.Object implements I_CmsSearchStatePagination
Class for keeping the state for the pagination.
-
-
Constructor Summary
Constructors Constructor Description CmsSearchStatePagination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCurrentPage()
Returns the current page.boolean
getIgnorePage()
Returns a flag, indicating if the state of the current page should be ignored.void
setCurrentPage(int page)
Setter for the current page.void
setIgnorePage(boolean ignore)
Setter for a flag, indicating if the state of the current page should be ignored.
-
-
-
Constructor Detail
-
CmsSearchStatePagination
public CmsSearchStatePagination()
-
-
Method Detail
-
getCurrentPage
public int getCurrentPage()
Description copied from interface:I_CmsSearchStatePagination
Returns the current page.- Specified by:
getCurrentPage
in interfaceI_CmsSearchStatePagination
- Returns:
- The current page.
- See Also:
I_CmsSearchStatePagination.getCurrentPage()
-
getIgnorePage
public boolean getIgnorePage()
Description copied from interface:I_CmsSearchStatePagination
Returns a flag, indicating if the state of the current page should be ignored. This is for example the case if the user's query has changed.- Specified by:
getIgnorePage
in interfaceI_CmsSearchStatePagination
- Returns:
- A flag, indicating if the state of the current page should be ignored.
- See Also:
I_CmsSearchStatePagination.getIgnorePage()
-
setCurrentPage
public void setCurrentPage(int page)
Description copied from interface:I_CmsSearchStatePagination
Setter for the current page.- Specified by:
setCurrentPage
in interfaceI_CmsSearchStatePagination
- Parameters:
page
- The current page to set.- See Also:
I_CmsSearchStatePagination.setCurrentPage(int)
-
setIgnorePage
public void setIgnorePage(boolean ignore)
Description copied from interface:I_CmsSearchStatePagination
Setter for a flag, indicating if the state of the current page should be ignored.- Specified by:
setIgnorePage
in interfaceI_CmsSearchStatePagination
- Parameters:
ignore
- A flag, indicating if the state of the current page should be ignored.- See Also:
I_CmsSearchStatePagination.setIgnorePage(boolean)
-
-