Package org.opencms.ui.components
Class CmsComponentState
java.lang.Object
org.opencms.ui.components.CmsComponentState
Component state bean.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates 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.voidparseStateString(String state) Parses a state string.voidsetAvailability(String availability) Sets the availability.voidsetCategory(String category) Sets the category.voidsetDateFrom(Date dateFrom) Sets the from date.voidSets the to date.voidSets the folder.voidSets the locale.voidSets the query.voidsetResourceType(I_CmsResourceType resourceType) Sets the resource type.voidSets 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
-