T
- the data typepublic static class DefaultSelectionEventManager.BlacklistEventTranslator<T> extends Object implements DefaultSelectionEventManager.EventTranslator<T>
Constructor and Description |
---|
BlacklistEventTranslator(int... blacklistedColumns)
Construct a new
DefaultSelectionEventManager.BlacklistEventTranslator . |
Modifier and Type | Method and Description |
---|---|
void |
clearBlacklist()
Clear all columns from the blacklist.
|
boolean |
clearCurrentSelection(CellPreviewEvent<T> event)
Check whether a user selection event should clear all currently selected
values.
|
boolean |
isColumnBlacklisted(int index)
Check if the specified column is blacklisted.
|
void |
setColumnBlacklisted(int index,
boolean isBlacklisted)
Set whether or not the specified column in blacklisted.
|
DefaultSelectionEventManager.SelectAction |
translateSelectionEvent(CellPreviewEvent<T> event)
Translate the user selection event into a
DefaultSelectionEventManager.SelectAction . |
public BlacklistEventTranslator(int... blacklistedColumns)
DefaultSelectionEventManager.BlacklistEventTranslator
.blacklistedColumns
- the columns to blacklistpublic void clearBlacklist()
public boolean clearCurrentSelection(CellPreviewEvent<T> event)
DefaultSelectionEventManager.EventTranslator
clearCurrentSelection
in interface DefaultSelectionEventManager.EventTranslator<T>
event
- the CellPreviewEvent
to translatepublic boolean isColumnBlacklisted(int index)
index
- the column indexpublic void setColumnBlacklisted(int index, boolean isBlacklisted)
index
- the column indexisBlacklisted
- true to blacklist, false to allow selectionpublic DefaultSelectionEventManager.SelectAction translateSelectionEvent(CellPreviewEvent<T> event)
DefaultSelectionEventManager.EventTranslator
DefaultSelectionEventManager.SelectAction
.translateSelectionEvent
in interface DefaultSelectionEventManager.EventTranslator<T>
event
- the CellPreviewEvent
to translateCopyright © 2018. All rights reserved.