org.xwiki.gwt.user.client
Class KeyboardAdaptor
java.lang.Object
org.xwiki.gwt.user.client.KeyboardAdaptor
- All Implemented Interfaces:
- com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.dom.client.KeyPressHandler, com.google.gwt.event.dom.client.KeyUpHandler, com.google.gwt.event.shared.EventHandler
public class KeyboardAdaptor
- extends Object
- implements com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.dom.client.KeyPressHandler, com.google.gwt.event.dom.client.KeyUpHandler
Cross-browser keyboard handling.
- Version:
- $Id: 551aba5e580d3cb599e3d2165ba3ff788d3e18d8 $
|
Method Summary |
protected void |
handleKeyRelease(Event event)
Handles a key release. |
protected void |
handleRepeatableKey(Event event)
Handles a repeatable key press. |
void |
onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
|
void |
onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
|
void |
onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyboardAdaptor
public KeyboardAdaptor()
onKeyDown
public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
- Specified by:
onKeyDown in interface com.google.gwt.event.dom.client.KeyDownHandler
onKeyPress
public void onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent event)
- Specified by:
onKeyPress in interface com.google.gwt.event.dom.client.KeyPressHandler
onKeyUp
public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event)
- Specified by:
onKeyUp in interface com.google.gwt.event.dom.client.KeyUpHandler
handleRepeatableKey
protected void handleRepeatableKey(Event event)
- Handles a repeatable key press.
- Parameters:
event - the native event that was fired
handleKeyRelease
protected void handleKeyRelease(Event event)
- Handles a key release.
- Parameters:
event - the native event that was fired
Copyright © 2004–2014 XWiki. All rights reserved.