Class DefaultCollectionEditorModel
java.lang.Object
de.hybris.platform.cockpit.model.referenceeditor.collection.model.AbstractCollectionEditorModel
de.hybris.platform.cockpit.model.referenceeditor.collection.model.DefaultCollectionEditorModel
- All Implemented Interfaces:
CollectionEditorModel
- Direct Known Subclasses:
DefaultMediaCollectionEditorModel
-
Field Summary
FieldsFields inherited from class de.hybris.platform.cockpit.model.referenceeditor.collection.model.AbstractCollectionEditorModel
listeners -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCollectionItem(Object item) voidaddCollectionItems(Collection<? extends Object> collection) voidgetItemLabel(Object item) Returns the type for which this reference collection editor should search for.Returns the root type of this reference collection editor i.e.protected voidinitializeReferenceSelectorModel(ObjectType rootType) booleanmoveCollectionItem(int fromIndex, int toIndex) booleanremoveCollectionItem(int index) booleanremoveCollectionItem(Object item) voidsetCollectionItems(Collection<Object> collectionItems) voidsetParameters(Map<String, ? extends Object> parameters) voidsetRootSearchType(ObjectType rootSearchType) Sets the type for which this reference selector should search for.voidsetRootType(ObjectType rootType) Sets the root type of this reference selector i.e.Methods inherited from class de.hybris.platform.cockpit.model.referenceeditor.collection.model.AbstractCollectionEditorModel
addCollectionEditorModelListener, fireCollectionItemsChanged, fireRootSearchTypeChanged, fireRootTypeChanged, getListeners, removeCollectionEditorModelListener
-
Field Details
-
referenceSelectorModel
-
-
Constructor Details
-
DefaultCollectionEditorModel
-
-
Method Details
-
setParameters
-
getSimpleReferenceSelectorModel
-
getCollectionItems
-
setCollectionItems
-
addCollectionItem
-
addCollectionItems
-
removeCollectionItem
public boolean removeCollectionItem(int index) -
removeCollectionItem
-
moveCollectionItem
public boolean moveCollectionItem(int fromIndex, int toIndex) -
clearCollectionItems
public void clearCollectionItems() -
getItemLabel
-
getRootType
Description copied from interface:CollectionEditorModelReturns 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 byCollectionEditorModel.getRootSearchType(). In this case information about the root type is generally needed for value handling.- Returns:
- the root type of this editor
- See Also:
-
setRootType
Sets the root type of this reference selector i.e. the type of the items which this editor should hold references to. Note: Unless search type has been set explicitly,getRootSearchType()will return the same type asgetRootType().- Parameters:
rootType- reference type- See Also:
-
getRootSearchType
Description copied from interface:CollectionEditorModelReturns 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 asCollectionEditorModel.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:
-
setRootSearchType
Sets the type for which this reference selector should search for. IfrootSearchTypeisnullgetRootSearchType()will return the same type asgetRootType().- Parameters:
rootSearchType- the type of the items to search for- See Also:
-
initializeReferenceSelectorModel
-
getTypeService
-