public class MultipleLiveSearchSelectionHandler<TYPE> extends Object implements LiveSearchSelectionHandler<TYPE>
Constructor and Description |
---|
MultipleLiveSearchSelectionHandler() |
MultipleLiveSearchSelectionHandler(int maxDropDownTextItems) |
Modifier and Type | Method and Description |
---|---|
void |
clearSelection()
Clears the selection
|
String |
getDropDownMenuHeader()
Retrieves the text for the
LiveSearchDropDown header based on the selected values |
List<TYPE> |
getSelectedValues() |
boolean |
isMultipleSelection()
Determines if the handler supports multiple selection or not.
|
void |
registerItem(LiveSearchSelectorItem<TYPE> item)
Registers and initializes the given
LiveSearchSelectorItem |
void |
selectItem(LiveSearchSelectorItem<TYPE> item)
Sets the given
LiveSearchSelectorItem as a selected value |
void |
selectKey(TYPE key)
Selects the
LiveSearchSelectorItem that has the given key |
void |
setLiveSearchSelectionCallback(Command command)
Sets the
Command callback to notify the LiveSearchDropDown when there's a selection change. |
void |
setMaxDropDownTextItems(int maxDropDownTextItems) |
public MultipleLiveSearchSelectionHandler()
public MultipleLiveSearchSelectionHandler(int maxDropDownTextItems)
public String getDropDownMenuHeader()
LiveSearchSelectionHandler
LiveSearchDropDown
header based on the selected valuesgetDropDownMenuHeader
in interface LiveSearchSelectionHandler<TYPE>
LiveSearchDropDown
headerpublic void registerItem(LiveSearchSelectorItem<TYPE> item)
LiveSearchSelectionHandler
LiveSearchSelectorItem
registerItem
in interface LiveSearchSelectionHandler<TYPE>
public void selectItem(LiveSearchSelectorItem<TYPE> item)
LiveSearchSelectionHandler
LiveSearchSelectorItem
as a selected valueselectItem
in interface LiveSearchSelectionHandler<TYPE>
public void selectKey(TYPE key)
LiveSearchSelectionHandler
LiveSearchSelectorItem
that has the given keyselectKey
in interface LiveSearchSelectionHandler<TYPE>
public void clearSelection()
LiveSearchSelectionHandler
clearSelection
in interface LiveSearchSelectionHandler<TYPE>
public void setMaxDropDownTextItems(int maxDropDownTextItems)
public void setLiveSearchSelectionCallback(Command command)
LiveSearchSelectionHandler
Command
callback to notify the LiveSearchDropDown
when there's a selection change.setLiveSearchSelectionCallback
in interface LiveSearchSelectionHandler<TYPE>
public boolean isMultipleSelection()
LiveSearchSelectionHandler
isMultipleSelection
in interface LiveSearchSelectionHandler<TYPE>
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.