Package org.opencms.workplace.list
Class CmsListState
java.lang.Object
org.opencms.workplace.list.CmsListState
Class for storing the state of a list.
A list state includes:
- The current sorted Column
- The sorted column Order
- The current displayed Page
- The current search Filter
- Since:
- 6.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor, with default values.CmsListState(CmsHtmlList list) Default Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the column.Returns the filter.getOrder()Returns the order.intgetPage()Returns the page.voidSets the column.voidSets the filter.voidsetOrder(CmsListOrderEnum order) Sets the order.voidsetPage(int page) Sets the page.
-
Constructor Details
-
CmsListState
public CmsListState()Empty constructor, with default values. -
CmsListState
Default Constructor.- Parameters:
list- the list to read the state from
-
-
Method Details
-
getColumn
Returns the column.- Returns:
- the column
-
getFilter
Returns the filter.- Returns:
- the filter
-
getOrder
Returns the order.- Returns:
- the order
-
getPage
Returns the page.- Returns:
- the page
-
setColumn
Sets the column.- Parameters:
column- the column to set
-
setFilter
Sets the filter.- Parameters:
filter- the filter to set
-
setOrder
Sets the order.- Parameters:
order- the order to set
-
setPage
Sets the page.- Parameters:
page- the page to set
-