Class CompareViewLabelRendererWrapper
- java.lang.Object
-
- com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<java.lang.Object>
-
- com.hybris.cockpitng.widgets.compare.renderer.value.CompareViewLabelRendererWrapper
-
- All Implemented Interfaces:
CockpitEditorRenderer<java.lang.Object>
public class CompareViewLabelRendererWrapper extends AbstractCockpitEditorRenderer<java.lang.Object>
Label renderer for CompareView to create a string representation of collection value. It creates a container for each element that contains a string representation of it.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringNO_VALUE_LABEL-
Fields inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
HEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENT, YW_EDITOR_AREA_LABEL_CONTAINER
-
Fields inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description CompareViewLabelRendererWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.zkoss.zul.LabelcreateNoValueLabel(EditorContext<java.lang.Object> context)CockpitEditorRenderer<java.lang.Object>getValueRenderer()voidrender(org.zkoss.zk.ui.Component parent, EditorContext<java.lang.Object> context, EditorListener<java.lang.Object> listener)Creates a new editor component and attaches it to the specifiedComponentcomponent.voidsetValueRenderer(CockpitEditorRenderer<java.lang.Object> valueRenderer)-
Methods inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecorator
-
-
-
-
Field Detail
-
NO_VALUE_LABEL
protected static final java.lang.String NO_VALUE_LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
render
public void render(org.zkoss.zk.ui.Component parent, EditorContext<java.lang.Object> context, EditorListener<java.lang.Object> listener)Description copied from interface:CockpitEditorRendererCreates a new editor component and attaches it to the specifiedComponentcomponent.- Parameters:
parent- parent component the editor should be attached tocontext- the context for the editor creationlistener- the listener to notify the rest of the world about value changes and other events
-
createNoValueLabel
protected org.zkoss.zul.Label createNoValueLabel(EditorContext<java.lang.Object> context)
-
getValueRenderer
public CockpitEditorRenderer<java.lang.Object> getValueRenderer()
-
setValueRenderer
public void setValueRenderer(CockpitEditorRenderer<java.lang.Object> valueRenderer)
-
-