public class SingleLiveSearchSelectionHandler<TYPE> extends Object implements LiveSearchSelectionHandler<TYPE>
Modifier and Type | Field and Description |
---|---|
protected List<LiveSearchSelectorItem<TYPE>> |
visibleItems |
Constructor and Description |
---|
SingleLiveSearchSelectionHandler() |
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 |
TYPE |
getSelectedKey() |
String |
getSelectedValue() |
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. |
protected List<LiveSearchSelectorItem<TYPE>> visibleItems
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 TYPE getSelectedKey()
public String getSelectedValue()
public void setLiveSearchSelectionCallback(Command command)
LiveSearchSelectionHandler
Command
callback to notify the LiveSearchDropDown
when there's a selection change.setLiveSearchSelectionCallback
in interface LiveSearchSelectionHandler<TYPE>
public void clearSelection()
LiveSearchSelectionHandler
clearSelection
in interface LiveSearchSelectionHandler<TYPE>
public boolean isMultipleSelection()
LiveSearchSelectionHandler
isMultipleSelection
in interface LiveSearchSelectionHandler<TYPE>
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.