Class DefaultAsMultiReferenceItemMasterRenderer<D extends AbstractEditorData,V>
java.lang.Object
de.hybris.platform.adaptivesearchbackoffice.editors.configurablemultireference.DefaultAsMultiReferenceItemMasterRenderer<D,V>
- Type Parameters:
D- - the type of the item dataV- - the type of the item value
- All Implemented Interfaces:
EditorRenderer<MultiReferenceEditorLogic<D,V>, D>
public class DefaultAsMultiReferenceItemMasterRenderer<D extends AbstractEditorData,V>
extends Object
implements EditorRenderer<MultiReferenceEditorLogic<D,V>,D>
Default renderer for the item master section.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildPropertySclass(String property) protected StringbuildToggleIconSclass(boolean open) protected StringbuildToggleSclass(boolean enabled) booleancanRender(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data) Checks if a specific item can be rendered.booleanisEnabled(MultiReferenceEditorLogic<D, V> logic) Checks if this renderer is enabled for a specific context.voidrender(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data) Creates a new editor item component and attaches it to the specified parent component.protected voidrenderActions(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data) protected voidrenderInfo(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data) protected voidrenderLabel(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data) protected voidrenderProperties(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data) protected voidrenderProperty(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data, String property) protected voidrenderToggle(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.adaptivesearchbackoffice.editors.EditorRenderer
beforeRender
-
Field Details
-
TOGGLE_SCLASS
- See Also:
-
TOGGLE_DISABLED_SCLASS
- See Also:
-
TOGGLE_ICON_SCLASS
- See Also:
-
TOGGLE_CNG_ACTION_ICON
- See Also:
-
TOGGLE_CNG_FONT_ICON
- See Also:
-
TOGGLE_FONT_ICON_NAVIGATION_DOWN_ARROW
- See Also:
-
TOGGLE_FONT_ICON_NAVIGATION_RIGHT_ARROW
- See Also:
-
INFO_SCLASS
- See Also:
-
INFO_ICON_SCLASS
- See Also:
-
LABEL_SCLASS
- See Also:
-
PROPERTY_SCLASS
- See Also:
-
EDITABLE_SCLASS
- See Also:
-
ACTIONS_CONTEXT_SUFFIX
- See Also:
-
EDITOR_LOGIC_KEY
- See Also:
-
-
Constructor Details
-
DefaultAsMultiReferenceItemMasterRenderer
public DefaultAsMultiReferenceItemMasterRenderer()
-
-
Method Details
-
isEnabled
Description copied from interface:EditorRendererChecks if this renderer is enabled for a specific context.- Specified by:
isEnabledin interfaceEditorRenderer<D extends AbstractEditorData,V> - Parameters:
logic- - the editor logic- Returns:
trueif the renderer is enabled,falseotherwise
-
canRender
public boolean canRender(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data) Description copied from interface:EditorRendererChecks if a specific item can be rendered.- Specified by:
canRenderin interfaceEditorRenderer<D extends AbstractEditorData,V> - Parameters:
logic- - the editor logicparent- - the parent componentdata- - the item data- Returns:
trueif the item can be rendered,falseotherwise
-
render
Description copied from interface:EditorRendererCreates a new editor item component and attaches it to the specified parent component.- Specified by:
renderin interfaceEditorRenderer<D extends AbstractEditorData,V> - Parameters:
logic- - the editor logicparent- - the parent componentdata- - the item data
-
renderToggle
protected void renderToggle(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data) -
buildToggleSclass
-
buildToggleIconSclass
-
renderInfo
protected void renderInfo(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data) -
renderLabel
protected void renderLabel(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data) -
renderProperties
protected void renderProperties(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data) -
renderProperty
protected void renderProperty(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data, String property) -
buildPropertySclass
-
renderActions
protected void renderActions(MultiReferenceEditorLogic<D, V> logic, org.zkoss.zk.ui.Component parent, D data)
-