Class MapUIEditor
java.lang.Object
de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
de.hybris.platform.cockpit.model.editor.impl.GenericCollectionUIEditor
de.hybris.platform.cockpit.model.editor.impl.MapUIEditor
- All Implemented Interfaces:
ListUIEditor,UIEditor
Editor for map attributes
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
AbstractUIEditor.CancelButtonContainer, AbstractUIEditor.CancelListener, AbstractUIEditor.ErrorDiv -
Field Summary
Fields inherited from class de.hybris.platform.cockpit.model.editor.impl.GenericCollectionUIEditor
_100PERCENT, CELLPADDING, CELLSPACING, HEIGHT, SINGLE_VALUE_EDITOR_CODE, WIDTHFields inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
ATTRIBUTE_QUALIFIER_PARAM, CANCEL_BTN, EVENT_SOURCE, inEditMode, initialEditValue, initialInputString, PROPERTY_DESCRIPTOR_PARAM, SEARCH_MODE_PARAMFields inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
INITIAL_EDIT_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.zkoss.zul.ListitemRenderercreateCollectionItemListRenderer(Map<String, ? extends Object> parameters, EditorListener listener) voidcreateEmptyRow(org.zkoss.zul.ListModelMap listmodel) Adds null-null entry if map is missing such.protected org.zkoss.zul.ListitemRenderercreateListItemRenderer(Map<String, ? extends Object> parameters, EditorListener listener, org.zkoss.zul.Listbox listBox) org.zkoss.zk.ui.HtmlBasedComponentcreateViewComponent(Object initialValue, Map<String, ? extends Object> parameters, EditorListener listener) Creates a new editor component and attaches it to the specifiedPagepage.booleanisInline()Returns whether this editor is an inline editor or not.voidsetAvailableValues(List<? extends Object> availableValues) Methods inherited from class de.hybris.platform.cockpit.model.editor.impl.GenericCollectionUIEditor
createNewCollectionValuesList, createSingleValueEditor, getSingleValueEditorDescriptor, setSingleValueEditorDescriptor, updateCollectionItemsMethods inherited from class de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
applyReferenceRelatedAttributes, createEditor, createEditor, createEditor, createEditor, filterValues, fireValueChanged, getRootSearchType, getUIEditor, getValue, isEditable, isEditable, isOptional, isSearchMode, parseInitialInputString, parseTemplateCodes, persistValues, persistValues, setEditable, setFocus, setOptional, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
getValue, isEditable, isOptional, setEditable, setFocus, setOptional, setValue
-
Constructor Details
-
MapUIEditor
public MapUIEditor()
-
-
Method Details
-
createViewComponent
public org.zkoss.zk.ui.HtmlBasedComponent createViewComponent(Object initialValue, Map<String, ? extends Object> parameters, EditorListener listener) Description copied from interface:UIEditorCreates a new editor component and attaches it to the specifiedPagepage.- Specified by:
createViewComponentin interfaceUIEditor- Overrides:
createViewComponentin classGenericCollectionUIEditor- Parameters:
initialValue- editor's initial valueparameters- parameters passed via configuration for particular editorlistener- theEditorListenerthat will receive events when the editor's value is changed- Returns:
- the editor component
-
createCollectionItemListRenderer
protected org.zkoss.zul.ListitemRenderer createCollectionItemListRenderer(Map<String, ? extends Object> parameters, EditorListener listener) - Overrides:
createCollectionItemListRendererin classGenericCollectionUIEditor
-
createListItemRenderer
protected org.zkoss.zul.ListitemRenderer createListItemRenderer(Map<String, ? extends Object> parameters, EditorListener listener, org.zkoss.zul.Listbox listBox) -
isInline
public boolean isInline()Description copied from interface:UIEditorReturns whether this editor is an inline editor or not.- Specified by:
isInlinein interfaceUIEditor- Overrides:
isInlinein classGenericCollectionUIEditor- Returns:
- true, if inline
-
getEditorType
- Specified by:
getEditorTypein interfaceUIEditor- Overrides:
getEditorTypein classGenericCollectionUIEditor
-
getAvailableValues
- Specified by:
getAvailableValuesin interfaceListUIEditor- Overrides:
getAvailableValuesin classGenericCollectionUIEditor
-
setAvailableValues
- Specified by:
setAvailableValuesin interfaceListUIEditor- Overrides:
setAvailableValuesin classGenericCollectionUIEditor
-
createEmptyRow
public void createEmptyRow(org.zkoss.zul.ListModelMap listmodel) Adds null-null entry if map is missing such.
-