Class ListViewCollectionEditor
java.lang.Object
de.hybris.platform.cockpit.model.editor.impl.AbstractUIEditor
de.hybris.platform.cockpit.model.referenceeditor.impl.AbstractReferenceUIEditor
de.hybris.platform.cockpit.model.referenceeditor.impl.ListViewCollectionEditor
- All Implemented Interfaces:
ReferenceUIEditor,UIEditor
-
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
FieldsFields 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.ReferenceUIEditor
ALLOW_CREATE_PARAM_KEYFields inherited from interface de.hybris.platform.cockpit.model.editor.UIEditor
INITIAL_EDIT_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ListSectionComponentorg.zkoss.zk.ui.HtmlBasedComponentcreateViewComponent(Object initialValue, Map<String, ? extends Object> parameters, EditorListener listener) Creates a new editor component and attaches it to the specifiedPagepage.protected ListSectionModelgetModel()Returns the type for which this reference collection editor should search for.Returns the root type of this reference collection editor i.e.booleanisInline()Returns whether this editor is an inline editor or not.voidsetAllowCreate(Boolean allowCreate) Sets the flag that indicates whether reference selector can create new item.voidsetRootSearchType(ObjectType rootSearchType) Sets the type for which this reference selector should search for.voidsetRootType(ObjectType rootType) Sets the root type of this reference editor i.e.Methods inherited from class de.hybris.platform.cockpit.model.referenceeditor.impl.AbstractReferenceUIEditor
findMaxAutocompleteSearchResults, getBooleanParameter, getEditorType, isAllowCreateMethods 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
-
Field Details
-
LIST_VIEW_CONFIG_CODE
- See Also:
-
-
Constructor Details
-
ListViewCollectionEditor
public ListViewCollectionEditor() -
ListViewCollectionEditor
-
-
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.- 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
-
getRootSearchType
Description copied from interface:ReferenceUIEditorReturns the type for which this reference collection editor should search for. Generally, if no root search type has been explicitly set, this method returns the same type asReferenceUIEditor.getRootType(). Note: The root search type is actually the type of the items held by this editor, whereas root type is the type which should be used for persisting values.- Returns:
- the type for which this reference collection editor should search for
- See Also:
-
getRootType
Description copied from interface:ReferenceUIEditorReturns the root type of this reference collection editor i.e. the type of the items which this editor should hold references to. Note: If the root search type differs from the root type, this editor will actually hold items of the type returned byReferenceUIEditor.getRootSearchType(). In this case information about the root type is generally needed for value handling.- Returns:
- the root type of this editor
- See Also:
-
createViewComponent
-
setAllowCreate
Description copied from interface:ReferenceUIEditorSets the flag that indicates whether reference selector can create new item.- Specified by:
setAllowCreatein interfaceReferenceUIEditor- Overrides:
setAllowCreatein classAbstractReferenceUIEditor
-
setRootSearchType
Description copied from interface:ReferenceUIEditorSets the type for which this reference selector should search for. Note: Generally, ifrootSearchTypeisnull, the set root type will be used. -
setRootType
Description copied from interface:ReferenceUIEditorSets the root type of this reference editor i.e. the root type of the references which this editor holds.- Parameters:
rootType- the root type
-
getModel
-
isInline
public boolean isInline()Description copied from interface:UIEditorReturns whether this editor is an inline editor or not.- Returns:
- true, if inline
-