Java Doc for KeyboardEvent.java in  » Graphic-Library » batik » org » w3c » dom » events » 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 » Graphic Library » batik » org.w3c.dom.events 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.w3c.dom.events.KeyboardEvent

All known Subclasses:   org.apache.batik.dom.events.DOMKeyboardEvent,
KeyboardEvent
public interface KeyboardEvent extends UIEvent(Code)
The KeyboardEvent interface provides specific contextual information associated with keyboard devices. Each keyboard event references a key using an identifier. Keyboard events are commonly directed at the element that has the focus.

The KeyboardEvent interface provides convenient attributes for some common modifiers keys: KeyboardEvent.ctrlKey, KeyboardEvent.shiftKey, KeyboardEvent.altKey, KeyboardEvent.metaKey. These attributes are equivalent to use the method KeyboardEvent.getModifierState(keyIdentifierArg) with "Control", "Shift", "Alt", or "Meta" respectively.

To create an instance of the KeyboardEvent interface, use the DocumentEvent.createEvent("KeyboardEvent") method call.

See also the Document Object Model (DOM) Level 3 Events Specification .
since:
   DOM Level 3



Field Summary
final public static  intDOM_KEY_LOCATION_LEFT
     The key activated is in the left key location (there is more than one possible location for this key).
final public static  intDOM_KEY_LOCATION_NUMPAD
     The key activation originated on the numeric keypad or with a virtual key corresponding to the numeric keypad.
final public static  intDOM_KEY_LOCATION_RIGHT
     The key activation is in the right key location (there is more than one possible location for this key).
final public static  intDOM_KEY_LOCATION_STANDARD
     The key activation is not distinguished as the left or right version of the key, and did not originate from the numeric keypad (or did not originate with a virtual key corresponding to the numeric keypad).


Method Summary
public  booleangetAltKey()
     true if the alternative (Alt) key modifier is activated.
public  booleangetCtrlKey()
     true if the control (Ctrl) key modifier is activated.
public  StringgetKeyIdentifier()
     keyIdentifier holds the identifier of the key.
public  intgetKeyLocation()
     The keyLocation attribute contains an indication of the location of they key on the device, as described in .
public  booleangetMetaKey()
     true if the meta (Meta) key modifier is activated.
public  booleangetModifierState(String keyIdentifierArg)
     This methods queries the state of a modifier using a key identifier.
public  booleangetShiftKey()
     true if the shift (Shift) key modifier is activated.
public  voidinitKeyboardEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, String keyIdentifierArg, int keyLocationArg, String modifiersList)
     The initKeyboardEvent method is used to initialize the value of a KeyboardEvent object and has the same behavior as UIEvent.initUIEvent().
public  voidinitKeyboardEventNS(String namespaceURI, String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, String keyIdentifierArg, int keyLocationArg, String modifiersList)
     The initKeyboardEventNS method is used to initialize the value of a KeyboardEvent object and has the same behavior as UIEvent.initUIEventNS().

Field Detail
DOM_KEY_LOCATION_LEFT
final public static int DOM_KEY_LOCATION_LEFT(Code)
The key activated is in the left key location (there is more than one possible location for this key). Example: the left Shift key on a PC 101 Key US keyboard.



DOM_KEY_LOCATION_NUMPAD
final public static int DOM_KEY_LOCATION_NUMPAD(Code)
The key activation originated on the numeric keypad or with a virtual key corresponding to the numeric keypad. Example: the '1' key on a PC 101 Key US keyboard located on the numeric pad.



DOM_KEY_LOCATION_RIGHT
final public static int DOM_KEY_LOCATION_RIGHT(Code)
The key activation is in the right key location (there is more than one possible location for this key). Example: the right Shift key on a PC 101 Key US keyboard.



DOM_KEY_LOCATION_STANDARD
final public static int DOM_KEY_LOCATION_STANDARD(Code)
The key activation is not distinguished as the left or right version of the key, and did not originate from the numeric keypad (or did not originate with a virtual key corresponding to the numeric keypad). Example: the 'Q' key on a PC 101 Key US keyboard.





Method Detail
getAltKey
public boolean getAltKey()(Code)
true if the alternative (Alt) key modifier is activated.

Note: The Option key modifier on Macintosh systems must be represented using this key modifier.




getCtrlKey
public boolean getCtrlKey()(Code)
true if the control (Ctrl) key modifier is activated.



getKeyIdentifier
public String getKeyIdentifier()(Code)
keyIdentifier holds the identifier of the key. The key identifiers are defined in Appendix A.2 "". Implementations that are unable to identify a key must use the key identifier "Unidentified".



getKeyLocation
public int getKeyLocation()(Code)
The keyLocation attribute contains an indication of the location of they key on the device, as described in .



getMetaKey
public boolean getMetaKey()(Code)
true if the meta (Meta) key modifier is activated.

Note: The Command key modifier on Macintosh systems must be represented using this key modifier.




getModifierState
public boolean getModifierState(String keyIdentifierArg)(Code)
This methods queries the state of a modifier using a key identifier. See also .
Parameters:
  keyIdentifierArg - A modifier key identifier. Common modifier keys are "Alt", "AltGraph", "CapsLock", "Control", "Meta", "NumLock", "Scroll", or "Shift".

Note: If an application wishes to distinguish between right and left modifiers, this information could be deduced using keyboard events and KeyboardEvent.keyLocation. true if it is modifier key and the modifier is activated, false otherwise.




getShiftKey
public boolean getShiftKey()(Code)
true if the shift (Shift) key modifier is activated.



initKeyboardEvent
public void initKeyboardEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, String keyIdentifierArg, int keyLocationArg, String modifiersList)(Code)
The initKeyboardEvent method is used to initialize the value of a KeyboardEvent object and has the same behavior as UIEvent.initUIEvent(). The value of UIEvent.detail remains undefined.
Parameters:
  typeArg - Refer to the UIEvent.initUIEvent() method for a description of this parameter.
Parameters:
  canBubbleArg - Refer to the UIEvent.initUIEvent() method for a description of this parameter.
Parameters:
  cancelableArg - Refer to the UIEvent.initUIEvent() method for a description of this parameter.
Parameters:
  viewArg - Refer to the UIEvent.initUIEvent() method for a description of this parameter.
Parameters:
  keyIdentifierArg - Specifies KeyboardEvent.keyIdentifier.
Parameters:
  keyLocationArg - Specifies KeyboardEvent.keyLocation.
Parameters:
  modifiersList - A white space separated list of modifier key identifiers to be activated on this object.



initKeyboardEventNS
public void initKeyboardEventNS(String namespaceURI, String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, String keyIdentifierArg, int keyLocationArg, String modifiersList)(Code)
The initKeyboardEventNS method is used to initialize the value of a KeyboardEvent object and has the same behavior as UIEvent.initUIEventNS(). The value of UIEvent.detail remains undefined.
Parameters:
  namespaceURI - Refer to the UIEvent.initUIEventNS() method for a description of this parameter.
Parameters:
  typeArg - Refer to the UIEvent.initUIEventNS() method for a description of this parameter.
Parameters:
  canBubbleArg - Refer to the UIEvent.initUIEventNS() method for a description of this parameter.
Parameters:
  cancelableArg - Refer to the UIEvent.initUIEventNS()method for a description of this parameter.
Parameters:
  viewArg - Refer to the UIEvent.initUIEventNS() method for a description of this parameter.
Parameters:
  keyIdentifierArg - Refer to the KeyboardEvent.initKeyboardEvent() method for a description of this parameter.
Parameters:
  keyLocationArg - Refer to the KeyboardEvent.initKeyboardEvent() method for a description of this parameter.
Parameters:
  modifiersList - A white space separated list of modifier key identifiers to be activated on this object. As an example, "Control Alt" will activated the control and alt modifiers.



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