Interface LiveSearchSelectionHandler<TYPE>
-
- Type Parameters:
TYPE- The data type handled by the component
- All Known Implementing Classes:
MultipleLiveSearchSelectionHandler,SingleLiveSearchSelectionHandler
public interface LiveSearchSelectionHandler<TYPE>Handles the selection of aLiveSearchDropDown
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearSelection()Clears the selectionStringgetDropDownMenuHeader()Retrieves the text for theLiveSearchDropDownheader based on the selected valuesbooleanisMultipleSelection()Determines if the handler supports multiple selection or not.voidregisterItem(LiveSearchSelectorItem<TYPE> item)Registers and initializes the givenLiveSearchSelectorItemvoidselectItem(LiveSearchSelectorItem<TYPE> item)Sets the givenLiveSearchSelectorItemas a selected valuevoidselectKey(TYPE key)Selects theLiveSearchSelectorItemthat has the given keyvoidsetLiveSearchSelectionCallback(org.uberfire.mvp.Command command)Sets theCommandcallback to notify theLiveSearchDropDownwhen there's a selection change.
-
-
-
Method Detail
-
getDropDownMenuHeader
String getDropDownMenuHeader()
Retrieves the text for theLiveSearchDropDownheader based on the selected values- Returns:
- The
LiveSearchDropDownheader
-
registerItem
void registerItem(LiveSearchSelectorItem<TYPE> item)
Registers and initializes the givenLiveSearchSelectorItem- Parameters:
item-
-
selectItem
void selectItem(LiveSearchSelectorItem<TYPE> item)
Sets the givenLiveSearchSelectorItemas a selected value- Parameters:
item-
-
selectKey
void selectKey(TYPE key)
Selects theLiveSearchSelectorItemthat has the given key- Parameters:
key-
-
clearSelection
void clearSelection()
Clears the selection
-
setLiveSearchSelectionCallback
void setLiveSearchSelectionCallback(org.uberfire.mvp.Command command)
Sets theCommandcallback to notify theLiveSearchDropDownwhen there's a selection change.- Parameters:
command-
-
isMultipleSelection
boolean isMultipleSelection()
Determines if the handler supports multiple selection or not.- Returns:
- True if supports multiple selection, false if not.
-
-