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()
LiveSearchSelectionHandlerLiveSearchDropDown header based on the selected valuesgetDropDownMenuHeader in interface LiveSearchSelectionHandler<TYPE>LiveSearchDropDown headerpublic void registerItem(LiveSearchSelectorItem<TYPE> item)
LiveSearchSelectionHandlerLiveSearchSelectorItemregisterItem in interface LiveSearchSelectionHandler<TYPE>public void selectItem(LiveSearchSelectorItem<TYPE> item)
LiveSearchSelectionHandlerLiveSearchSelectorItem as a selected valueselectItem in interface LiveSearchSelectionHandler<TYPE>public void selectKey(TYPE key)
LiveSearchSelectionHandlerLiveSearchSelectorItem that has the given keyselectKey in interface LiveSearchSelectionHandler<TYPE>public void clearSelection()
LiveSearchSelectionHandlerclearSelection in interface LiveSearchSelectionHandler<TYPE>public void setMaxDropDownTextItems(int maxDropDownTextItems)
public void setLiveSearchSelectionCallback(Command command)
LiveSearchSelectionHandlerCommand callback to notify the LiveSearchDropDown when there's a selection change.setLiveSearchSelectionCallback in interface LiveSearchSelectionHandler<TYPE>public boolean isMultipleSelection()
LiveSearchSelectionHandlerisMultipleSelection in interface LiveSearchSelectionHandler<TYPE>Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.