Package org.opencms.ui.components
Class CmsComponentState
java.lang.Object
org.opencms.ui.components.CmsComponentState
Component state bean.
-
Constructor Summary
ConstructorDescriptionCreates a new state bean.CmsComponentState
(String state) Creates a new state bean for a given state string. -
Method Summary
Modifier and TypeMethodDescriptionGenerates a state string for this state bean.Returns the availability.Returns the category.Returns the date from.Returns the date to.Returns the folder.Returns the locale.getQuery()
Returns the query.Returns the resource type.getSite()
Returns the site.void
parseStateString
(String state) Parses a state string.void
setAvailability
(String availability) Sets the availability.void
setCategory
(String category) Sets the category.void
setDateFrom
(Date dateFrom) Sets the from date.void
Sets the to date.void
Sets the folder.void
Sets the locale.void
Sets the query.void
setResourceType
(I_CmsResourceType resourceType) Sets the resource type.void
Sets the site.
-
Constructor Details
-
CmsComponentState
public CmsComponentState()Creates a new state bean. -
CmsComponentState
Creates a new state bean for a given state string.- Parameters:
state
- the state string
-
-
Method Details
-
generateStateString
Generates a state string for this state bean.- Returns:
- the state string
-
getAvailability
Returns the availability.- Returns:
- the availability
-
getCategory
Returns the category.- Returns:
- the category
-
getDateFrom
Returns the date from.- Returns:
- the date from
-
getDateTo
Returns the date to.- Returns:
- the date to
-
getFolder
Returns the folder.- Returns:
- the folder
-
getLocale
Returns the locale.- Returns:
- the locale
-
getQuery
Returns the query.- Returns:
- the query
-
getResourceType
Returns the resource type.- Returns:
- the resource type
-
getSite
Returns the site.- Returns:
- the site
-
parseStateString
Parses a state string.- Parameters:
state
- the state string
-
setAvailability
Sets the availability.- Parameters:
availability
- the availability
-
setCategory
Sets the category.- Parameters:
category
- the category
-
setDateFrom
Sets the from date.- Parameters:
dateFrom
- the dateFrom
-
setDateTo
Sets the to date.- Parameters:
dateTo
- the dateTo
-
setFolder
Sets the folder.- Parameters:
folder
- the folder
-
setLocale
Sets the locale.- Parameters:
locale
- the locale
-
setQuery
Sets the query.- Parameters:
query
- the query
-
setResourceType
Sets the resource type.- Parameters:
resourceType
- the resource type
-
setSite
Sets the site.- Parameters:
site
- the site
-