T
- the data typepublic static class DefaultSelectionEventManager.CheckboxEventTranslator<T> extends Object implements DefaultSelectionEventManager.EventTranslator<T>
DefaultSelectionEventManager.EventTranslator
that only triggers selection when
any checkbox is selected.Constructor and Description |
---|
CheckboxEventTranslator()
Construct a new
DefaultSelectionEventManager.CheckboxEventTranslator that will trigger
selection when any checkbox in any column is selected. |
CheckboxEventTranslator(int column)
Construct a new
DefaultSelectionEventManager.CheckboxEventTranslator that will trigger
selection when a checkbox in the specified column is selected. |
Modifier and Type | Method and Description |
---|---|
boolean |
clearCurrentSelection(CellPreviewEvent<T> event)
Check whether a user selection event should clear all currently selected
values.
|
DefaultSelectionEventManager.SelectAction |
translateSelectionEvent(CellPreviewEvent<T> event)
Translate the user selection event into a
DefaultSelectionEventManager.SelectAction . |
public CheckboxEventTranslator()
DefaultSelectionEventManager.CheckboxEventTranslator
that will trigger
selection when any checkbox in any column is selected.public CheckboxEventTranslator(int column)
DefaultSelectionEventManager.CheckboxEventTranslator
that will trigger
selection when a checkbox in the specified column is selected.column
- the column index, or -1 for all columnspublic boolean clearCurrentSelection(CellPreviewEvent<T> event)
DefaultSelectionEventManager.EventTranslator
clearCurrentSelection
in interface DefaultSelectionEventManager.EventTranslator<T>
event
- the CellPreviewEvent
to translatepublic 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.