Class AbstractHasData.DefaultKeyboardSelectionHandler<T>
java.lang.Object
com.google.gwt.user.cellview.client.AbstractHasData.DefaultKeyboardSelectionHandler<T>
- Type Parameters:
T
- the data type of each row
- All Implemented Interfaces:
EventHandler
,CellPreviewEvent.Handler<T>
- Direct Known Subclasses:
AbstractCellTable.CellTableKeyboardSelectionHandler
- Enclosing class:
AbstractHasData<T>
public static class AbstractHasData.DefaultKeyboardSelectionHandler<T>
extends Object
implements CellPreviewEvent.Handler<T>
Default implementation of a keyboard navigation handler.
-
Constructor Summary
ConstructorDescriptionDefaultKeyboardSelectionHandler
(AbstractHasData<T> display) Construct a new keyboard selection handler for the specified view. -
Method Summary
Modifier and TypeMethodDescription(package private) void
end()
(package private) void
handledEvent
(CellPreviewEvent<?> event) (package private) void
home()
(package private) void
nextPage()
(package private) void
nextRow()
void
onCellPreview
(CellPreviewEvent<T> event) Called whenCellPreviewEvent
is fired.(package private) void
prevPage()
(package private) void
prevRow()
(package private) void
setKeyboardSelectedRow
(int row)
-
Constructor Details
-
DefaultKeyboardSelectionHandler
Construct a new keyboard selection handler for the specified view.- Parameters:
display
- the display being handled
-
-
Method Details
-
getDisplay
-
onCellPreview
Description copied from interface:CellPreviewEvent.Handler
Called whenCellPreviewEvent
is fired.- Specified by:
onCellPreview
in interfaceCellPreviewEvent.Handler<T>
- Parameters:
event
- theCellPreviewEvent
that was fired
-
end
void end() -
handledEvent
-
home
void home() -
nextPage
void nextPage() -
nextRow
void nextRow() -
prevPage
void prevPage() -
prevRow
void prevRow() -
setKeyboardSelectedRow
void setKeyboardSelectedRow(int row)
-