Package com.google.gwt.view.client
Class DefaultSelectionEventManager.CheckboxEventTranslator<T>
java.lang.Object
com.google.gwt.view.client.DefaultSelectionEventManager.CheckboxEventTranslator<T>
- Type Parameters:
T
- the data type
- All Implemented Interfaces:
DefaultSelectionEventManager.EventTranslator<T>
- Enclosing class:
DefaultSelectionEventManager<T>
public static class DefaultSelectionEventManager.CheckboxEventTranslator<T>
extends Object
implements DefaultSelectionEventManager.EventTranslator<T>
Implementation of
DefaultSelectionEventManager.EventTranslator
that only triggers selection when
any checkbox is selected.-
Constructor Summary
ConstructorDescriptionConstruct a newDefaultSelectionEventManager.CheckboxEventTranslator
that will trigger selection when any checkbox in any column is selected.CheckboxEventTranslator
(int column) Construct a newDefaultSelectionEventManager.CheckboxEventTranslator
that will trigger selection when a checkbox in the specified column is selected. -
Method Summary
Modifier and TypeMethodDescriptionboolean
clearCurrentSelection
(CellPreviewEvent<T> event) Check whether a user selection event should clear all currently selected values.translateSelectionEvent
(CellPreviewEvent<T> event) Translate the user selection event into aDefaultSelectionEventManager.SelectAction
.
-
Constructor Details
-
CheckboxEventTranslator
public CheckboxEventTranslator()Construct a newDefaultSelectionEventManager.CheckboxEventTranslator
that will trigger selection when any checkbox in any column is selected. -
CheckboxEventTranslator
public CheckboxEventTranslator(int column) Construct a newDefaultSelectionEventManager.CheckboxEventTranslator
that will trigger selection when a checkbox in the specified column is selected.- Parameters:
column
- the column index, or -1 for all columns
-
-
Method Details
-
clearCurrentSelection
Description copied from interface:DefaultSelectionEventManager.EventTranslator
Check whether a user selection event should clear all currently selected values.- Specified by:
clearCurrentSelection
in interfaceDefaultSelectionEventManager.EventTranslator<T>
- Parameters:
event
- theCellPreviewEvent
to translate
-
translateSelectionEvent
Description copied from interface:DefaultSelectionEventManager.EventTranslator
Translate the user selection event into aDefaultSelectionEventManager.SelectAction
.- Specified by:
translateSelectionEvent
in interfaceDefaultSelectionEventManager.EventTranslator<T>
- Parameters:
event
- theCellPreviewEvent
to translate
-