Interface SimpleReferenceSelectorModel
- All Superinterfaces:
SimpleSelectorModel
- All Known Implementing Classes:
AbstractSimpleReferenceSelectorModel,DefaultSimpleMediaReferenceSelectorModel,DefaultSimpleReferenceSelectorModel
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.cockpit.model.referenceeditor.simple.SimpleSelectorModel
SimpleSelectorModel.Mode -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Perform cancel on simple reference selector modelCreates advanced table model - used for advanced modeCreates an default table model - used for advanced modevoiddoSearch(ObjectTemplate objectType, AdvancedSearchParameterContainer parameterContainer, int currentPage) Perform search within advanced selector modeReturns advanced search mode - used for advanced modeReturns current auto complete resultsintintAfter how many characters auto complete results should be triggeredintReturns page sizeReturns the type for which this reference collection editor should search for.Returns the root type of this reference collection editor i.e.Returns current search results - used for advanced search selector modeReturns current table model - used in advanced modeintReturns total size of search resultsMethods inherited from interface de.hybris.platform.cockpit.model.referenceeditor.simple.SimpleSelectorModel
addSelectorModelListener, getMode, getValue, removeSelectorModelListener
-
Method Details
-
getAutoCompleteResult
Returns current auto complete results- Returns:
- auto complete results
-
getSearchResult
Returns current search results - used for advanced search selector mode- Returns:
- search results
-
getMaxAutoCompleteResultSize
int getMaxAutoCompleteResultSize() -
getMinAutoCompleteTextLength
int getMinAutoCompleteTextLength()After how many characters auto complete results should be triggered- Returns:
- characters quantity
-
getPageSize
int getPageSize()Returns page size- Returns:
- - page size
-
cancel
void cancel()Perform cancel on simple reference selector model -
getTotalSize
int getTotalSize()Returns total size of search results- Returns:
- total size
-
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
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:
-
getTableModel
MutableTableModel getTableModel()Returns current table model - used in advanced mode- Returns:
- root search type
-
createDefaultTableModel
MutableTableModel createDefaultTableModel()Creates an default table model - used for advanced mode- Returns:
- default table model
-
createAdvancedTableModel
DefaultAdvancedSearchModel createAdvancedTableModel()Creates advanced table model - used for advanced mode- Returns:
- advanced table model
-
getAdvancedSearchModel
AdvancedSearchModel getAdvancedSearchModel()Returns advanced search mode - used for advanced mode- Returns:
- advanced search model
-
doSearch
void doSearch(ObjectTemplate objectType, AdvancedSearchParameterContainer parameterContainer, int currentPage) Perform search within advanced selector mode- Parameters:
objectType- - chosen typeparameterContainer- - parameterscurrentPage- - current page
-