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
ConstructorDescriptionEmpty constructor, with default values.CmsListState
(CmsHtmlList list) Default Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the column.Returns the filter.getOrder()
Returns the order.int
getPage()
Returns the page.void
Sets the column.void
Sets the filter.void
setOrder
(CmsListOrderEnum order) Sets the order.void
setPage
(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
-