Interface CollectionEditorModel
-
- All Known Implementing Classes:
AbstractCollectionEditorModel
,DefaultMediaReferenceCollectionEditorModel
,DefaultReferenceCollectionEditorModel
public interface CollectionEditorModel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCollectionEditorModelListener(ReferenceCollectionEditorModelListener modelListener)
java.util.List<java.lang.Object>
getCollectionItems()
java.lang.String
getItemLabel(java.lang.Object item)
DefaultReferenceSelectorModel
getReferenceSelectorModel()
ObjectType
getRootSearchType()
Returns the type for which this reference collection editor should search for.ObjectType
getRootType()
Returns the root type of this reference collection editor i.e.void
removeCollectionEditorModelListener(ReferenceCollectionEditorModelListener selectorModelListener)
-
-
-
Method Detail
-
getCollectionItems
java.util.List<java.lang.Object> getCollectionItems()
-
getItemLabel
java.lang.String getItemLabel(java.lang.Object item)
-
getReferenceSelectorModel
DefaultReferenceSelectorModel getReferenceSelectorModel()
-
addCollectionEditorModelListener
void addCollectionEditorModelListener(ReferenceCollectionEditorModelListener modelListener)
-
removeCollectionEditorModelListener
void removeCollectionEditorModelListener(ReferenceCollectionEditorModelListener selectorModelListener)
-
getRootType
ObjectType getRootType()
Returns 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 bygetRootSearchType()
. In this case information about the root type is generally needed for value handling.- Returns:
- the root type of this editor
- See Also:
getRootSearchType()
-
getRootSearchType
ObjectType getRootSearchType()
Returns 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 asgetRootType()
. 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()
-
-