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