Package org.ametys.web.frontoffice
Class AbstractSearchGenerator.AttributeFacetField
- java.lang.Object
-
- org.ametys.web.frontoffice.AbstractSearchGenerator.AttributeFacetField
-
- All Implemented Interfaces:
AbstractSearchGenerator.FacetField
- Enclosing class:
- AbstractSearchGenerator
protected class AbstractSearchGenerator.AttributeFacetField extends Object implements AbstractSearchGenerator.FacetField
Facet field for an attribute
-
-
Constructor Summary
Constructors Constructor Description AttributeFacetField(SearchField field, ModelItem modelItem, org.slf4j.Logger logger)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I18nizableText
getFacetLabel(String value, Locale currentLocale)
Get the label for a facet valueI18nizableText
getLabel()
Get the label of the facetSearchField
getSearchField()
Get the search field for this facet
-
-
-
Constructor Detail
-
AttributeFacetField
public AttributeFacetField(SearchField field, ModelItem modelItem, org.slf4j.Logger logger)
Constructor- Parameters:
field
- The search fieldmodelItem
- The model itemlogger
- The logger
-
-
Method Detail
-
getSearchField
public SearchField getSearchField()
Description copied from interface:AbstractSearchGenerator.FacetField
Get the search field for this facet- Specified by:
getSearchField
in interfaceAbstractSearchGenerator.FacetField
- Returns:
- the search field
-
getLabel
public I18nizableText getLabel()
Description copied from interface:AbstractSearchGenerator.FacetField
Get the label of the facet- Specified by:
getLabel
in interfaceAbstractSearchGenerator.FacetField
- Returns:
- the label
-
getFacetLabel
public I18nizableText getFacetLabel(String value, Locale currentLocale)
Description copied from interface:AbstractSearchGenerator.FacetField
Get the label for a facet value- Specified by:
getFacetLabel
in interfaceAbstractSearchGenerator.FacetField
- Parameters:
value
- the valuecurrentLocale
- the current locale- Returns:
- the label for this value
-
-