T
- the data typepublic static class DefaultSelectionEventManager.WhitelistEventTranslator<T> extends Object implements DefaultSelectionEventManager.EventTranslator<T>
Constructor and Description |
---|
DefaultSelectionEventManager.WhitelistEventTranslator(int... whitelistedColumns)
Construct a new
DefaultSelectionEventManager.WhitelistEventTranslator . |
Modifier and Type | Method and Description |
---|---|
boolean |
clearCurrentSelection(CellPreviewEvent<T> event)
Check whether a user selection event should clear all currently selected
values.
|
void |
clearWhitelist()
Clear all columns from the whitelist.
|
boolean |
isColumnWhitelisted(int index)
Check if the specified column is whitelisted.
|
void |
setColumnWhitelisted(int index,
boolean isWhitelisted)
Set whether or not the specified column in whitelisted.
|
DefaultSelectionEventManager.SelectAction |
translateSelectionEvent(CellPreviewEvent<T> event)
Translate the user selection event into a
DefaultSelectionEventManager.SelectAction . |
public DefaultSelectionEventManager.WhitelistEventTranslator(int... whitelistedColumns)
DefaultSelectionEventManager.WhitelistEventTranslator
.whitelistedColumns
- the columns to whitelistpublic boolean clearCurrentSelection(CellPreviewEvent<T> event)
DefaultSelectionEventManager.EventTranslator
clearCurrentSelection
in interface DefaultSelectionEventManager.EventTranslator<T>
event
- the CellPreviewEvent
to translatepublic void clearWhitelist()
public boolean isColumnWhitelisted(int index)
index
- the column indexpublic void setColumnWhitelisted(int index, boolean isWhitelisted)
index
- the column indexisWhitelisted
- true to whitelist, false to allow disallow selectionpublic DefaultSelectionEventManager.SelectAction translateSelectionEvent(CellPreviewEvent<T> event)
DefaultSelectionEventManager.EventTranslator
DefaultSelectionEventManager.SelectAction
.translateSelectionEvent
in interface DefaultSelectionEventManager.EventTranslator<T>
event
- the CellPreviewEvent
to translateCopyright © 2016. All rights reserved.