public class GridKeyDownEvent extends Grid.AbstractGridKeyEvent<AbstractGridKeyEventHandler.GridKeyDownHandler>
| Modifier and Type | Field and Description |
|---|---|
static com.google.gwt.event.dom.client.DomEvent.Type<AbstractGridKeyEventHandler.GridKeyDownHandler> |
TYPE
DOM event type.
|
| Constructor and Description |
|---|
GridKeyDownEvent() |
GridKeyDownEvent(Grid<?> grid,
CellReference<?> targetCell)
Deprecated.
This constructor's arguments are no longer used. Use the
no-args constructor instead.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDispatch(AbstractGridKeyEventHandler.GridKeyDownHandler handler,
GridConstants.Section section)
The given handler processes the event if the handler type matches the
given section.
|
com.google.gwt.event.dom.client.DomEvent.Type<AbstractGridKeyEventHandler.GridKeyDownHandler> |
getAssociatedType() |
protected String |
getBrowserEventType()
Returns the
BrowserEvents type that corresponds with this
event. |
int |
getNativeKeyCode()
Gets the native key code.
|
static boolean |
isArrow(int keyCode)
Does the key code represent an arrow key?
|
boolean |
isDownArrow()
Is this a key down arrow?
|
boolean |
isLeftArrow()
Is this a left arrow?
|
boolean |
isRightArrow()
Is this a right arrow?
|
boolean |
isUpArrow()
Is this a up arrow?
|
String |
toDebugString() |
dispatch, getFocusedCell, getGridisAltKeyDown, isAnyModifierKeyDown, isControlKeyDown, isMetaKeyDown, isShiftKeyDownfireNativeEvent, fireNativeEvent, getNativeEvent, getRelativeElement, preventDefault, setNativeEvent, setRelativeElement, stopPropagationpublic static final com.google.gwt.event.dom.client.DomEvent.Type<AbstractGridKeyEventHandler.GridKeyDownHandler> TYPE
public GridKeyDownEvent()
@Deprecated public GridKeyDownEvent(Grid<?> grid, CellReference<?> targetCell)
grid - the grid the event occurred in, not usedtargetCell - the cell the event targets, not usedpublic com.google.gwt.event.dom.client.DomEvent.Type<AbstractGridKeyEventHandler.GridKeyDownHandler> getAssociatedType()
getAssociatedType in class com.google.gwt.event.dom.client.DomEvent<AbstractGridKeyEventHandler.GridKeyDownHandler>protected void doDispatch(AbstractGridKeyEventHandler.GridKeyDownHandler handler, GridConstants.Section section)
Grid.AbstractGridKeyEventdoDispatch in class Grid.AbstractGridKeyEvent<AbstractGridKeyEventHandler.GridKeyDownHandler>handler - handlersection - the section where the target element is locatedprotected String getBrowserEventType()
Grid.AbstractGridKeyEventBrowserEvents type that corresponds with this
event.getBrowserEventType in class Grid.AbstractGridKeyEvent<AbstractGridKeyEventHandler.GridKeyDownHandler>public static boolean isArrow(int keyCode)
keyCode - the key codepublic int getNativeKeyCode()
KeyCodes class.public boolean isDownArrow()
public boolean isLeftArrow()
public boolean isRightArrow()
public boolean isUpArrow()
public String toDebugString()
toDebugString in class com.google.web.bindery.event.shared.Event<AbstractGridKeyEventHandler.GridKeyDownHandler>Copyright © 2023 Vaadin Ltd. All rights reserved.