Java Doc for KeyboardListener.java in  » Ajax » GWT » com » google » gwt » user » client » ui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » GWT » com.google.gwt.user.client.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.google.gwt.user.client.ui.KeyboardListener

All known Subclasses:   com.google.gwt.user.client.ui.DelegatingKeyboardListenerCollectionTest,  com.google.gwt.user.client.ui.KeyboardListenerAdapter,  com.google.gwt.user.client.ui.DelegatingKeyboardListenerCollection,
KeyboardListener
public interface KeyboardListener extends EventListener(Code)
Event listener interface for keyboard events.


Field Summary
final public static  intKEY_ALT
    
final public static  intKEY_BACKSPACE
    
final public static  intKEY_CTRL
    
final public static  intKEY_DELETE
    
final public static  intKEY_DOWN
    
final public static  intKEY_END
    
final public static  intKEY_ENTER
    
final public static  intKEY_ESCAPE
    
final public static  intKEY_HOME
    
final public static  intKEY_LEFT
    
final public static  intKEY_PAGEDOWN
    
final public static  intKEY_PAGEUP
    
final public static  intKEY_RIGHT
    
final public static  intKEY_SHIFT
    
final public static  intKEY_TAB
    
final public static  intKEY_UP
    
final public static  intMODIFIER_ALT
    
final public static  intMODIFIER_CTRL
    
final public static  intMODIFIER_META
    
final public static  intMODIFIER_SHIFT
    


Method Summary
 voidonKeyDown(Widget sender, char keyCode, int modifiers)
     Fired when the user depresses a physical key.
Parameters:
  sender - the widget that was focused when the event occurred.
Parameters:
  keyCode - the physical key that was depressed.
 voidonKeyPress(Widget sender, char keyCode, int modifiers)
     Fired when a keyboard action generates a character.
 voidonKeyUp(Widget sender, char keyCode, int modifiers)
     Fired when the user releases a physical key.
Parameters:
  sender - the widget that was focused when the event occurred.
Parameters:
  keyCode - the physical key that was released.

Field Detail
KEY_ALT
final public static int KEY_ALT(Code)



KEY_BACKSPACE
final public static int KEY_BACKSPACE(Code)



KEY_CTRL
final public static int KEY_CTRL(Code)



KEY_DELETE
final public static int KEY_DELETE(Code)



KEY_DOWN
final public static int KEY_DOWN(Code)



KEY_END
final public static int KEY_END(Code)



KEY_ENTER
final public static int KEY_ENTER(Code)



KEY_ESCAPE
final public static int KEY_ESCAPE(Code)



KEY_HOME
final public static int KEY_HOME(Code)



KEY_LEFT
final public static int KEY_LEFT(Code)



KEY_PAGEDOWN
final public static int KEY_PAGEDOWN(Code)



KEY_PAGEUP
final public static int KEY_PAGEUP(Code)



KEY_RIGHT
final public static int KEY_RIGHT(Code)



KEY_SHIFT
final public static int KEY_SHIFT(Code)



KEY_TAB
final public static int KEY_TAB(Code)



KEY_UP
final public static int KEY_UP(Code)



MODIFIER_ALT
final public static int MODIFIER_ALT(Code)



MODIFIER_CTRL
final public static int MODIFIER_CTRL(Code)



MODIFIER_META
final public static int MODIFIER_META(Code)



MODIFIER_SHIFT
final public static int MODIFIER_SHIFT(Code)





Method Detail
onKeyDown
void onKeyDown(Widget sender, char keyCode, int modifiers)(Code)
Fired when the user depresses a physical key.
Parameters:
  sender - the widget that was focused when the event occurred.
Parameters:
  keyCode - the physical key that was depressed. Constants for thisvalue are defined in this interface with the KEY prefix.
Parameters:
  modifiers - the modifier keys pressed at when the event occurred. Thisvalue is a combination of the bits defined byKeyboardListener.MODIFIER_SHIFT,KeyboardListener.MODIFIER_CTRL, andKeyboardListener.MODIFIER_ALT.



onKeyPress
void onKeyPress(Widget sender, char keyCode, int modifiers)(Code)
Fired when a keyboard action generates a character. This occurs after onKeyDown and onKeyUp are fired for the physical key that was pressed.

It should be noted that many browsers do not generate keypress events for non-printing keyCode values, such as KeyboardListener.KEY_ENTER or arrow keys. These keyCodes can be reliably captured either with KeyboardListener.onKeyDown(Widgetcharint) or KeyboardListener.onKeyUp(Widgetcharint) .


Parameters:
  sender - the widget that was focused when the event occurred.
Parameters:
  keyCode - the Unicode character that was generated by the keyboardaction.
Parameters:
  modifiers - the modifier keys pressed at when the event occurred. Thisvalue is a combination of the bits defined byKeyboardListener.MODIFIER_SHIFT,KeyboardListener.MODIFIER_CTRL, andKeyboardListener.MODIFIER_ALT.



onKeyUp
void onKeyUp(Widget sender, char keyCode, int modifiers)(Code)
Fired when the user releases a physical key.
Parameters:
  sender - the widget that was focused when the event occurred.
Parameters:
  keyCode - the physical key that was released. Constants for this valueare defined in this interface with the KEY prefix.
Parameters:
  modifiers - the modifier keys pressed at when the event occurred. Thisvalue is a combination of the bits defined byKeyboardListener.MODIFIER_SHIFT,KeyboardListener.MODIFIER_CTRL, andKeyboardListener.MODIFIER_ALT.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.