Package org.opencms.ui.apps.datesearch
Class CmsDateSearchComposite
- java.lang.Object
-
- org.opencms.ui.apps.datesearch.CmsDateSearchComposite
-
- All Implemented Interfaces:
CmsResourceTable.I_ResourcePropertyProvider
,I_CmsResultFacetsManager
public class CmsDateSearchComposite extends java.lang.Object implements CmsResourceTable.I_ResourcePropertyProvider, I_CmsResultFacetsManager
Component that realizes a content finder.
-
-
Constructor Summary
Constructors Constructor Description CmsDateSearchComposite()
Creates a new content finder component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItemProperties(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, java.util.Locale locale)
Adds the property values to the given item.com.vaadin.ui.Component
getFilterComponent()
Returns the filter component of this content finder.com.vaadin.ui.Component
getResultComponent()
Returns the result component of this content finder.com.vaadin.ui.Component
getResultFilterComponent()
Returns the result filter component of this content finder.void
search(boolean updateState, boolean resetSelectedFacets)
Executes the search.void
search(java.util.Map<java.lang.String,java.util.List<java.lang.String>> fieldFacets, java.util.Map<java.lang.String,java.util.List<java.lang.String>> rangeFacets)
Searches for given field facets and range facets.void
setState(CmsComponentState componentState)
Sets a component state.
-
-
-
Constructor Detail
-
CmsDateSearchComposite
public CmsDateSearchComposite()
Creates a new content finder component.
-
-
Method Detail
-
addItemProperties
public void addItemProperties(com.vaadin.v7.data.Item resourceItem, CmsObject cms, CmsResource resource, java.util.Locale locale)
Description copied from interface:CmsResourceTable.I_ResourcePropertyProvider
Adds the property values to the given item.- Specified by:
addItemProperties
in interfaceCmsResourceTable.I_ResourcePropertyProvider
- Parameters:
resourceItem
- the resource itemcms
- the cms contextresource
- the resourcelocale
- the workplace locale- See Also:
CmsResourceTable.I_ResourcePropertyProvider.addItemProperties(com.vaadin.v7.data.Item, org.opencms.file.CmsObject, org.opencms.file.CmsResource, java.util.Locale)
-
getFilterComponent
public com.vaadin.ui.Component getFilterComponent()
Returns the filter component of this content finder.- Returns:
- the filter component of this content finder
-
getResultComponent
public com.vaadin.ui.Component getResultComponent()
Returns the result component of this content finder.- Returns:
- the result component of this content finder
-
getResultFilterComponent
public com.vaadin.ui.Component getResultFilterComponent()
Returns the result filter component of this content finder.- Returns:
- the result filter component of this content finder
-
search
public void search(boolean updateState, boolean resetSelectedFacets)
Executes the search.- Parameters:
updateState
- whether to update the app stateresetSelectedFacets
- whether to reset the selected facets
-
search
public void search(java.util.Map<java.lang.String,java.util.List<java.lang.String>> fieldFacets, java.util.Map<java.lang.String,java.util.List<java.lang.String>> rangeFacets)
Description copied from interface:I_CmsResultFacetsManager
Searches for given field facets and range facets.- Specified by:
search
in interfaceI_CmsResultFacetsManager
- Parameters:
fieldFacets
- the field facetsrangeFacets
- the range facets- See Also:
I_CmsResultFacetsManager.search(java.util.Map, java.util.Map)
-
setState
public void setState(CmsComponentState componentState)
Sets a component state.- Parameters:
componentState
- the component state
-
-