com.vaadin.client.widget.grid.events.
Class GridKeyPressEvent
- java.lang.Object
-
- com.google.web.bindery.event.shared.Event<H>
-
- com.google.gwt.event.shared.GwtEvent<H>
-
- com.google.gwt.event.dom.client.DomEvent<H>
-
- com.google.gwt.event.dom.client.KeyEvent<HANDLER>
-
- com.vaadin.client.widgets.Grid.AbstractGridKeyEvent<AbstractGridKeyEventHandler.GridKeyPressHandler>
-
- com.vaadin.client.widget.grid.events.GridKeyPressEvent
-
All Implemented Interfaces:
com.google.gwt.event.dom.client.HasNativeEvent
public class GridKeyPressEvent extends Grid.AbstractGridKeyEvent<AbstractGridKeyEventHandler.GridKeyPressHandler>
Represents native key press event in Grid.
Since:
7.4
Author:
Vaadin Ltd
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.gwt.event.dom.client.DomEvent.Type<AbstractGridKeyEventHandler.GridKeyPressHandler>
TYPE
DOM event type.
-
Constructor Summary
Constructors Constructor Description GridKeyPressEvent()
GridKeyPressEvent(Grid<?> grid, CellReference<?> targetCell)
Deprecated.
This constructor's arguments are no longer used.
-
Method Summary
All Methods Modifier and Type Method Description protected void
doDispatch(AbstractGridKeyEventHandler.GridKeyPressHandler 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.GridKeyPressHandler>
getAssociatedType()
protected String
getBrowserEventType()
Returns the
BrowserEvents
type that corresponds with this event.char
getCharCode()
Gets the char code for this event.
int
getUnicodeCharCode()
Gets the Unicode char code (code point) for this event.
String
toDebugString()
-
Methods inherited from class com.vaadin.client.widgets.Grid.AbstractGridKeyEvent
dispatch, getFocusedCell, getGrid
-
Methods inherited from class com.google.gwt.event.dom.client.KeyEvent
isAltKeyDown, isAnyModifierKeyDown, isControlKeyDown, isMetaKeyDown, isShiftKeyDown
-
Methods inherited from class com.google.gwt.event.dom.client.DomEvent
fireNativeEvent, fireNativeEvent, getNativeEvent, getRelativeElement, preventDefault, setNativeEvent, setRelativeElement, stopPropagation
-
-
-
-
Field Detail
-
TYPE
public static final com.google.gwt.event.dom.client.DomEvent.Type<AbstractGridKeyEventHandler.GridKeyPressHandler> TYPE
DOM event type.
-
-
Constructor Detail
-
GridKeyPressEvent
public GridKeyPressEvent()
Since:
7.7.9
-
GridKeyPressEvent
@Deprecated public GridKeyPressEvent(Grid<?> grid, CellReference<?> targetCell)
Deprecated.This constructor's arguments are no longer used. Use the no-args constructor instead.Parameters:
grid
- the grid the event occurred in, not usedtargetCell
- the cell the event targets, not used
-
-
Method Detail
-
getAssociatedType
public com.google.gwt.event.dom.client.DomEvent.Type<AbstractGridKeyEventHandler.GridKeyPressHandler> getAssociatedType()
Specified by:
getAssociatedType
in classcom.google.gwt.event.dom.client.DomEvent<AbstractGridKeyEventHandler.GridKeyPressHandler>
-
doDispatch
protected void doDispatch(AbstractGridKeyEventHandler.GridKeyPressHandler handler, GridConstants.Section section)
Description copied from class:
Grid.AbstractGridKeyEvent
The given handler processes the event if the handler type matches the given section.
Specified by:
doDispatch
in classGrid.AbstractGridKeyEvent<AbstractGridKeyEventHandler.GridKeyPressHandler>
Parameters:
handler
- handlersection
- the section where the target element is located
-
getBrowserEventType
protected String getBrowserEventType()
Description copied from class:
Grid.AbstractGridKeyEvent
Returns the
BrowserEvents
type that corresponds with this event.Specified by:
getBrowserEventType
in classGrid.AbstractGridKeyEvent<AbstractGridKeyEventHandler.GridKeyPressHandler>
Returns:
the browser event type
-
getCharCode
public char getCharCode()
Gets the char code for this event.
Returns:
the char code
-
getUnicodeCharCode
public int getUnicodeCharCode()
Gets the Unicode char code (code point) for this event.
Returns:
the Unicode char code
-
toDebugString
public String toDebugString()
Overrides:
toDebugString
in classcom.google.web.bindery.event.shared.Event<AbstractGridKeyEventHandler.GridKeyPressHandler>
-
-