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 java.lang.Object implements CellPreviewEvent.Handler<T>
Default implementation of a keyboard navigation handler.
-
-
Constructor Summary
Constructors Constructor Description DefaultKeyboardSelectionHandler(AbstractHasData<T> display)Construct a new keyboard selection handler for the specified view.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidend()AbstractHasData<T>getDisplay()(package private) voidhandledEvent(CellPreviewEvent<?> event)(package private) voidhome()(package private) voidnextPage()(package private) voidnextRow()voidonCellPreview(CellPreviewEvent<T> event)Called whenCellPreviewEventis fired.(package private) voidprevPage()(package private) voidprevRow()(package private) voidsetKeyboardSelectedRow(int row)
-
-
-
Constructor Detail
-
DefaultKeyboardSelectionHandler
public DefaultKeyboardSelectionHandler(AbstractHasData<T> display)
Construct a new keyboard selection handler for the specified view.- Parameters:
display- the display being handled
-
-
Method Detail
-
getDisplay
public AbstractHasData<T> getDisplay()
-
onCellPreview
public void onCellPreview(CellPreviewEvent<T> event)
Description copied from interface:CellPreviewEvent.HandlerCalled whenCellPreviewEventis fired.- Specified by:
onCellPreviewin interfaceCellPreviewEvent.Handler<T>- Parameters:
event- theCellPreviewEventthat was fired
-
end
void end()
-
handledEvent
void handledEvent(CellPreviewEvent<?> event)
-
home
void home()
-
nextPage
void nextPage()
-
nextRow
void nextRow()
-
prevPage
void prevPage()
-
prevRow
void prevRow()
-
setKeyboardSelectedRow
void setKeyboardSelectedRow(int row)
-
-