Class GridKeyUpEvent
- 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.GridKeyUpHandler>
-
- com.vaadin.client.widget.grid.events.GridKeyUpEvent
-
- All Implemented Interfaces:
com.google.gwt.event.dom.client.HasNativeEvent
public class GridKeyUpEvent extends Grid.AbstractGridKeyEvent<AbstractGridKeyEventHandler.GridKeyUpHandler>
Represents native key up 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.GridKeyUpHandler>TYPE
-
Constructor Summary
Constructors Constructor Description GridKeyUpEvent()GridKeyUpEvent(Grid<?> grid, CellReference<?> targetCell)Deprecated.This constructor's arguments are no longer used.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoDispatch(AbstractGridKeyEventHandler.GridKeyUpHandler handler, GridConstants.Section section)com.google.gwt.event.dom.client.DomEvent.Type<AbstractGridKeyEventHandler.GridKeyUpHandler>getAssociatedType()protected StringgetBrowserEventType()intgetNativeKeyCode()Gets the native key code.static booleanisArrow(int keyCode)Does the key code represent an arrow key?booleanisDownArrow()Is this a key down arrow?booleanisLeftArrow()Is this a left arrow?booleanisRightArrow()Is this a right arrow?booleanisUpArrow()Is this a up arrow?StringtoDebugString()-
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.GridKeyUpHandler> TYPE
- Since:
- 7.7.9
-
-
Constructor Detail
-
GridKeyUpEvent
public GridKeyUpEvent()
- Since:
- 7.7.9
-
GridKeyUpEvent
@Deprecated public GridKeyUpEvent(Grid<?> grid, CellReference<?> targetCell)
Deprecated.This constructor's arguments are no longer used. Use the no-args constructor instead.
-
-
Method Detail
-
doDispatch
protected void doDispatch(AbstractGridKeyEventHandler.GridKeyUpHandler handler, GridConstants.Section section)
- Specified by:
doDispatchin classGrid.AbstractGridKeyEvent<AbstractGridKeyEventHandler.GridKeyUpHandler>
-
getAssociatedType
public com.google.gwt.event.dom.client.DomEvent.Type<AbstractGridKeyEventHandler.GridKeyUpHandler> getAssociatedType()
- Specified by:
getAssociatedTypein classcom.google.gwt.event.dom.client.DomEvent<AbstractGridKeyEventHandler.GridKeyUpHandler>- Since:
- 7.7.9
-
getBrowserEventType
protected String getBrowserEventType()
- Specified by:
getBrowserEventTypein classGrid.AbstractGridKeyEvent<AbstractGridKeyEventHandler.GridKeyUpHandler>
-
isArrow
public static boolean isArrow(int keyCode)
Does the key code represent an arrow key?- Parameters:
keyCode- the key code- Returns:
- if it is an arrow key code
-
getNativeKeyCode
public int getNativeKeyCode()
Gets the native key code. These key codes are enumerated in theKeyCodesclass.- Returns:
- the key code
-
isDownArrow
public boolean isDownArrow()
Is this a key down arrow?- Returns:
- whether this is a down arrow key event
-
isLeftArrow
public boolean isLeftArrow()
Is this a left arrow?- Returns:
- whether this is a left arrow key event
-
isRightArrow
public boolean isRightArrow()
Is this a right arrow?- Returns:
- whether this is a right arrow key event
-
isUpArrow
public boolean isUpArrow()
Is this a up arrow?- Returns:
- whether this is a right arrow key event
-
toDebugString
public String toDebugString()
- Overrides:
toDebugStringin classcom.google.web.bindery.event.shared.Event<AbstractGridKeyEventHandler.GridKeyUpHandler>
-
-