Class ColourFacetRenderer
- java.lang.Object
-
- com.hybris.backoffice.widgets.refineby.renderer.StandardFacetRenderer
-
- com.hybris.backoffice.widgets.refineby.renderer.ColourFacetRenderer
-
- All Implemented Interfaces:
FacetRenderer
public class ColourFacetRenderer extends StandardFacetRenderer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRENDER_COLOR_NAME_SETTING_KEYstatic java.lang.StringYW_COLOUR_FACET_BOXstatic java.lang.StringYW_COLOUR_FACET_BOX_SELECTEDstatic java.lang.StringYW_COLOUR_FACET_CONTAINER-
Fields inherited from class com.hybris.backoffice.widgets.refineby.renderer.StandardFacetRenderer
I18N_SHOW_ALL_VALUES, I18N_SHOW_LESS_VALUES, PREFIX_EXPANDED, PREFIX_TOP, WIDGET_SETTING_MAX_INLINE_FACETS, YW_FACET_NAME, YW_FACET_VALUE, YW_FACET_VALUE_CONTAINER, YW_TOGGLE_FACETS
-
-
Constructor Summary
Constructors Constructor Description ColourFacetRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyBackgroundColor(org.zkoss.zul.Div check, Context context, java.lang.String facetValueName)protected org.zkoss.zk.ui.ComponentcreateSingleValue(FacetData facet, FacetValueData facetValueData, java.lang.Boolean isChecked, WidgetInstanceManager wim, Context context)voidrenderFacet(org.zkoss.zk.ui.Component parent, FacetData facet, boolean selected, WidgetInstanceManager wim, Context context)Render a single facetprotected booleanshouldRenderColorName(Context context)-
Methods inherited from class com.hybris.backoffice.widgets.refineby.renderer.StandardFacetRenderer
calculateFacetLabel, calculateFacetValueLabel, calculateMaxValuesInline, createFacetLabel, createShowAllLabel, createShowLessLabel, createSingleValue, expandOrCollapseFacet, findExpandedFacets, findFacetValuesToRender, findSelectedFacets, getExpandedFacetsModelKey, getFirstFacetValue, getSelectedFacetsModelKey, prepareRadioGroup, renderVisibleFacetValues, select, setExpandedFacetsModelKey, setSelectedFacetsModelKey, shouldFacetBeRendered
-
-
-
-
Field Detail
-
YW_COLOUR_FACET_CONTAINER
public static final java.lang.String YW_COLOUR_FACET_CONTAINER
- See Also:
- Constant Field Values
-
YW_COLOUR_FACET_BOX
public static final java.lang.String YW_COLOUR_FACET_BOX
- See Also:
- Constant Field Values
-
YW_COLOUR_FACET_BOX_SELECTED
public static final java.lang.String YW_COLOUR_FACET_BOX_SELECTED
- See Also:
- Constant Field Values
-
RENDER_COLOR_NAME_SETTING_KEY
public static final java.lang.String RENDER_COLOR_NAME_SETTING_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
renderFacet
public void renderFacet(org.zkoss.zk.ui.Component parent, FacetData facet, boolean selected, WidgetInstanceManager wim, Context context)Description copied from interface:FacetRendererRender a single facet- Specified by:
renderFacetin interfaceFacetRenderer- Overrides:
renderFacetin classStandardFacetRenderer- Parameters:
parent- an instance ofComponentfacet- an instance ofFacetDataselected- an instance ofBooleanwim- an instance ofWidgetInstanceManagercontext- an instance ofContext
-
createSingleValue
protected org.zkoss.zk.ui.Component createSingleValue(FacetData facet, FacetValueData facetValueData, java.lang.Boolean isChecked, WidgetInstanceManager wim, Context context)
-
shouldRenderColorName
protected boolean shouldRenderColorName(Context context)
-
applyBackgroundColor
protected void applyBackgroundColor(org.zkoss.zul.Div check, Context context, java.lang.String facetValueName)
-
-