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()
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 TYPE getSelectedKey()
public String getSelectedValue()
public void setLiveSearchSelectionCallback(Command command)
LiveSearchSelectionHandlerCommand callback to notify the LiveSearchDropDown when there's a selection change.setLiveSearchSelectionCallback in interface LiveSearchSelectionHandler<TYPE>public void clearSelection()
LiveSearchSelectionHandlerclearSelection in interface LiveSearchSelectionHandler<TYPE>public boolean isMultipleSelection()
LiveSearchSelectionHandlerisMultipleSelection in interface LiveSearchSelectionHandler<TYPE>Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.