Class DefaultFieldQueryFieldRenderer
- java.lang.Object
-
- com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer<org.zkoss.zk.ui.Component,FulltextSearch,FieldQueryFilter>
-
- com.hybris.backoffice.widgets.fulltextsearch.renderer.impl.DefaultFieldQueryFieldRenderer
-
- All Implemented Interfaces:
NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,FulltextSearch,FieldQueryFilter>,WidgetComponentRenderer<org.zkoss.zk.ui.Component,FulltextSearch,FieldQueryFilter>
public class DefaultFieldQueryFieldRenderer extends AbstractWidgetComponentRenderer<org.zkoss.zk.ui.Component,FulltextSearch,FieldQueryFilter>
-
-
Constructor Summary
Constructors Constructor Description DefaultFieldQueryFieldRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanCreateResultLabel(java.lang.String resultLabel, java.lang.String labelData)protected FieldTypefindField(FulltextSearch configuration, java.lang.String name)protected FullTextSearchStrategyfindSearchStrategy(java.lang.String preferredStrategyName)ClassificationLabelServicegetClassificationLabelService()CockpitConfigurationServicegetCockpitConfigurationService()protected DataTypegetDataType(org.zkoss.zk.ui.Component parent)FullTextSearchStrategygetDefaultSearchStrategy()protected java.lang.StringgetEditorProperty(FieldQueryFilter data)protected FieldQueryFiltergetFieldQueryData(org.zkoss.zk.ui.Component parent)protected FulltextSearchgetFulltextSearchConfig(org.zkoss.zk.ui.Component parent)protected java.lang.StringgetLabelByFieldName(java.lang.String typeCode, java.lang.String fieldName)protected java.lang.StringgetLabelFromLabelService(java.lang.String typeCode, java.lang.String labelName)LabelStringObjectHandlergetLabelStringObjectHandler()LocalizedValuesServicegetLocalizedValuesService()PermissionFacadegetPermissionFacade()java.util.List<FullTextSearchStrategy>getSearchStrategies()protected FullTextSearchStrategygetSearchStrategy(WidgetInstanceManager instanceManager)protected FieldTypegetSelectedField(org.zkoss.zk.ui.Component parent)TypeFacadegetTypeFacade()protected voidonFilterChanged(FieldQueryFilter data, ValueComparisonOperator operator)protected voidonFilterChanged(FieldQueryFilter data, java.lang.String name)protected voidonFilterChanged(org.zkoss.zk.ui.Component parent, WidgetInstanceManager widgetInstanceManager)protected voidonFilterOperatorChanged(org.zkoss.zk.ui.Component parent, WidgetInstanceManager widgetInstanceManager)protected voidonLanguageChanged(FieldQueryFilter data, java.lang.Object eventData)protected voidonValueChanged(FieldQueryFilter data, java.lang.Object value)protected voidpopulateFilterQueryLocale(FieldQueryFilter data, java.lang.Object value)protected java.util.Map<java.util.regex.Pattern,java.lang.String>prepareEditorMappings()voidrender(org.zkoss.zk.ui.Component parent, FulltextSearch configuration, FieldQueryFilter filter, DataType dataType, WidgetInstanceManager widgetInstanceManager)Renders a component inside parent, representing given data and complying to given ui configuration.protected voidrenderEditor(org.zkoss.zk.ui.Component parent, WidgetInstanceManager widgetInstanceManager)protected voidrenderFilterChooser(org.zkoss.zk.ui.Component parent, WidgetInstanceManager widgetInstanceManager)protected voidrenderFilterName(org.zkoss.zk.ui.Component parent, WidgetInstanceManager widgetInstanceManager)protected voidrenderOperator(org.zkoss.zk.ui.Component parent, WidgetInstanceManager widgetInstanceManager)protected voidrenderOperatorChooser(org.zkoss.zk.ui.Component parent, WidgetInstanceManager widgetInstanceManager)protected java.lang.StringresolveFilterLabel(java.lang.String typeCode, FieldType field, WidgetInstanceManager widgetInstanceManager)protected java.lang.StringresolveLabelByKey(java.lang.String key)protected java.lang.StringresolveOperatorLabel(ValueComparisonOperator operator, FieldQueryFilter fieldQueryFilter, WidgetInstanceManager wim)voidsetClassificationLabelService(ClassificationLabelService classificationLabelService)voidsetCockpitConfigurationService(CockpitConfigurationService cockpitConfigurationService)protected voidsetDataType(org.zkoss.zk.ui.Component parent, DataType dataType)voidsetDefaultSearchStrategy(FullTextSearchStrategy defaultSearchStrategy)protected voidsetFieldQueryData(org.zkoss.zk.ui.Component parent, FieldQueryFilter data)protected voidsetFulltextSearchConfig(org.zkoss.zk.ui.Component parent, FulltextSearch config)voidsetLabelStringObjectHandler(LabelStringObjectHandler labelStringObjectHandler)voidsetLocalizedValuesService(LocalizedValuesService localizedValuesService)voidsetPermissionFacade(PermissionFacade permissionFacade)voidsetSearchStrategies(java.util.List<FullTextSearchStrategy> searchStrategies)voidsetTypeFacade(TypeFacade typeFacade)-
Methods inherited from class com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer
addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer
render
-
-
-
-
Method Detail
-
render
public void render(org.zkoss.zk.ui.Component parent, FulltextSearch configuration, FieldQueryFilter filter, DataType dataType, WidgetInstanceManager widgetInstanceManager)Description copied from interface:WidgetComponentRendererRenders a component inside parent, representing given data and complying to given ui configuration. The data should be of give dataType. The renderer implementation could communicate with underlying widget via widgetInstanceManager.- Parameters:
parent- parent component on which to renderconfiguration- configuration of rendererfilter- data to be rendereddataType- meta information about type of data providedwidgetInstanceManager- widget manager in scope of which renderer is used
-
findField
protected FieldType findField(FulltextSearch configuration, java.lang.String name)
-
resolveFilterLabel
protected java.lang.String resolveFilterLabel(java.lang.String typeCode, FieldType field, WidgetInstanceManager widgetInstanceManager)
-
resolveLabelByKey
protected java.lang.String resolveLabelByKey(java.lang.String key)
-
canCreateResultLabel
protected boolean canCreateResultLabel(java.lang.String resultLabel, java.lang.String labelData)
-
getLabelByFieldName
protected java.lang.String getLabelByFieldName(java.lang.String typeCode, java.lang.String fieldName)
-
getLabelFromLabelService
protected java.lang.String getLabelFromLabelService(java.lang.String typeCode, java.lang.String labelName)
-
renderFilterName
protected void renderFilterName(org.zkoss.zk.ui.Component parent, WidgetInstanceManager widgetInstanceManager)
-
onFilterChanged
protected void onFilterChanged(FieldQueryFilter data, java.lang.String name)
-
onFilterChanged
protected void onFilterChanged(FieldQueryFilter data, ValueComparisonOperator operator)
-
onFilterChanged
protected void onFilterChanged(org.zkoss.zk.ui.Component parent, WidgetInstanceManager widgetInstanceManager)
-
onFilterOperatorChanged
protected void onFilterOperatorChanged(org.zkoss.zk.ui.Component parent, WidgetInstanceManager widgetInstanceManager)
-
getSelectedField
protected FieldType getSelectedField(org.zkoss.zk.ui.Component parent)
-
renderFilterChooser
protected void renderFilterChooser(org.zkoss.zk.ui.Component parent, WidgetInstanceManager widgetInstanceManager)
-
renderOperator
protected void renderOperator(org.zkoss.zk.ui.Component parent, WidgetInstanceManager widgetInstanceManager)
-
resolveOperatorLabel
protected java.lang.String resolveOperatorLabel(ValueComparisonOperator operator, FieldQueryFilter fieldQueryFilter, WidgetInstanceManager wim)
-
renderOperatorChooser
protected void renderOperatorChooser(org.zkoss.zk.ui.Component parent, WidgetInstanceManager widgetInstanceManager)
-
getEditorProperty
protected java.lang.String getEditorProperty(FieldQueryFilter data)
-
prepareEditorMappings
protected java.util.Map<java.util.regex.Pattern,java.lang.String> prepareEditorMappings()
-
renderEditor
protected void renderEditor(org.zkoss.zk.ui.Component parent, WidgetInstanceManager widgetInstanceManager) throws TypeNotFoundException- Throws:
TypeNotFoundException
-
getSearchStrategy
protected FullTextSearchStrategy getSearchStrategy(WidgetInstanceManager instanceManager)
-
findSearchStrategy
protected FullTextSearchStrategy findSearchStrategy(java.lang.String preferredStrategyName)
-
onValueChanged
protected void onValueChanged(FieldQueryFilter data, java.lang.Object value)
-
populateFilterQueryLocale
protected void populateFilterQueryLocale(FieldQueryFilter data, java.lang.Object value)
-
onLanguageChanged
protected void onLanguageChanged(FieldQueryFilter data, java.lang.Object eventData)
-
getFulltextSearchConfig
protected FulltextSearch getFulltextSearchConfig(org.zkoss.zk.ui.Component parent)
-
setFulltextSearchConfig
protected void setFulltextSearchConfig(org.zkoss.zk.ui.Component parent, FulltextSearch config)
-
getDataType
protected DataType getDataType(org.zkoss.zk.ui.Component parent)
-
setDataType
protected void setDataType(org.zkoss.zk.ui.Component parent, DataType dataType)
-
getFieldQueryData
protected FieldQueryFilter getFieldQueryData(org.zkoss.zk.ui.Component parent)
-
setFieldQueryData
protected void setFieldQueryData(org.zkoss.zk.ui.Component parent, FieldQueryFilter data)
-
getTypeFacade
public TypeFacade getTypeFacade()
-
setTypeFacade
public void setTypeFacade(TypeFacade typeFacade)
-
getCockpitConfigurationService
public CockpitConfigurationService getCockpitConfigurationService()
-
setCockpitConfigurationService
public void setCockpitConfigurationService(CockpitConfigurationService cockpitConfigurationService)
-
getPermissionFacade
public PermissionFacade getPermissionFacade()
-
setPermissionFacade
public void setPermissionFacade(PermissionFacade permissionFacade)
-
getLocalizedValuesService
public LocalizedValuesService getLocalizedValuesService()
-
setLocalizedValuesService
public void setLocalizedValuesService(LocalizedValuesService localizedValuesService)
-
getSearchStrategies
public java.util.List<FullTextSearchStrategy> getSearchStrategies()
-
setSearchStrategies
public void setSearchStrategies(java.util.List<FullTextSearchStrategy> searchStrategies)
-
getDefaultSearchStrategy
public FullTextSearchStrategy getDefaultSearchStrategy()
-
setDefaultSearchStrategy
public void setDefaultSearchStrategy(FullTextSearchStrategy defaultSearchStrategy)
-
getClassificationLabelService
public ClassificationLabelService getClassificationLabelService()
-
setClassificationLabelService
public void setClassificationLabelService(ClassificationLabelService classificationLabelService)
-
getLabelStringObjectHandler
public LabelStringObjectHandler getLabelStringObjectHandler()
-
setLabelStringObjectHandler
public void setLabelStringObjectHandler(LabelStringObjectHandler labelStringObjectHandler)
-
-