com.vaadin.client.widget.grid.events
Class GridKeyUpEvent

java.lang.Object
  extended by 
      extended by com.vaadin.client.widgets.Grid.AbstractGridKeyEvent<AbstractGridKeyEventHandler.GridKeyUpHandler>
          extended by com.vaadin.client.widget.grid.events.GridKeyUpEvent

public class GridKeyUpEvent
extends Grid.AbstractGridKeyEvent<AbstractGridKeyEventHandler.GridKeyUpHandler>

Represents native key up event in Grid.

Since:
7.4
Author:
Vaadin Ltd

Constructor Summary
GridKeyUpEvent(Grid<?> grid, CellReference<?> targetCell)
           
 
Method Summary
protected  void doDispatch(AbstractGridKeyEventHandler.GridKeyUpHandler handler, com.vaadin.shared.ui.grid.GridConstants.Section section)
           
protected  java.lang.String getBrowserEventType()
           
 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?
 java.lang.String toDebugString()
           
 
Methods inherited from class com.vaadin.client.widgets.Grid.AbstractGridKeyEvent
dispatch, getAssociatedType, getFocusedCell, getGrid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridKeyUpEvent

public GridKeyUpEvent(Grid<?> grid,
                      CellReference<?> targetCell)
Method Detail

doDispatch

protected void doDispatch(AbstractGridKeyEventHandler.GridKeyUpHandler handler,
                          com.vaadin.shared.ui.grid.GridConstants.Section section)
Specified by:
doDispatch in class Grid.AbstractGridKeyEvent<AbstractGridKeyEventHandler.GridKeyUpHandler>

getBrowserEventType

protected java.lang.String getBrowserEventType()
Specified by:
getBrowserEventType in class Grid.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 the KeyCodes class.

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 java.lang.String toDebugString()


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.