Java Doc for MouseEvent.java in  » Web-Server » Rimfaxe-Web-Server » 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 » Web Server » Rimfaxe Web Server » org.w3c.dom.events 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.w3c.dom.events.MouseEvent

MouseEvent
public interface MouseEvent extends UIEvent(Code)
The MouseEvent interface provides specific contextual information associated with Mouse events.

The detail attribute inherited from UIEvent indicates the number of times a mouse button has been pressed and released over the same screen location during a user action. The attribute value is 1 when the user begins this action and increments by 1 for each full sequence of pressing and releasing. If the user moves the mouse between the mousedown and mouseup the value will be set to 0, indicating that no click is occurring.

In the case of nested elements mouse events are always targeted at the most deeply nested element. Ancestors of the targeted element may use bubbling to obtain notification of mouse events which occur within its descendent elements.

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





Method Summary
public  booleangetAltKey()
     Used to indicate whether the 'alt' key was depressed during the firing of the event.
public  shortgetButton()
     During mouse events caused by the depression or release of a mouse button, button is used to indicate which mouse button changed state.
public  intgetClientX()
     The horizontal coordinate at which the event occurred relative to the DOM implementation's client area.
public  intgetClientY()
     The vertical coordinate at which the event occurred relative to the DOM implementation's client area.
public  booleangetCtrlKey()
     Used to indicate whether the 'ctrl' key was depressed during the firing of the event.
public  booleangetMetaKey()
     Used to indicate whether the 'meta' key was depressed during the firing of the event.
public  EventTargetgetRelatedTarget()
     Used to identify a secondary EventTarget related to a UI event.
public  intgetScreenX()
     The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system.
public  intgetScreenY()
     The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system.
public  booleangetShiftKey()
     Used to indicate whether the 'shift' key was depressed during the firing of the event.
public  voidinitMouseEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, short buttonArg, EventTarget relatedTargetArg)
     The initMouseEvent method is used to initialize the value of a MouseEvent created through the DocumentEvent interface.



Method Detail
getAltKey
public boolean getAltKey()(Code)
Used to indicate whether the 'alt' key was depressed during the firing of the event. On some platforms this key may map to an alternative key name.



getButton
public short getButton()(Code)
During mouse events caused by the depression or release of a mouse button, button is used to indicate which mouse button changed state. The values for button range from zero to indicate the left button of the mouse, one to indicate the middle button if present, and two to indicate the right button. For mice configured for left handed use in which the button actions are reversed the values are instead read from right to left.



getClientX
public int getClientX()(Code)
The horizontal coordinate at which the event occurred relative to the DOM implementation's client area.



getClientY
public int getClientY()(Code)
The vertical coordinate at which the event occurred relative to the DOM implementation's client area.



getCtrlKey
public boolean getCtrlKey()(Code)
Used to indicate whether the 'ctrl' key was depressed during the firing of the event.



getMetaKey
public boolean getMetaKey()(Code)
Used to indicate whether the 'meta' key was depressed during the firing of the event. On some platforms this key may map to an alternative key name.



getRelatedTarget
public EventTarget getRelatedTarget()(Code)
Used to identify a secondary EventTarget related to a UI event. Currently this attribute is used with the mouseover event to indicate the EventTarget which the pointing device exited and with the mouseout event to indicate the EventTarget which the pointing device entered.



getScreenX
public int getScreenX()(Code)
The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system.



getScreenY
public int getScreenY()(Code)
The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system.



getShiftKey
public boolean getShiftKey()(Code)
Used to indicate whether the 'shift' key was depressed during the firing of the event.



initMouseEvent
public void initMouseEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, short buttonArg, EventTarget relatedTargetArg)(Code)
The initMouseEvent method is used to initialize the value of a MouseEvent created through the DocumentEvent interface. This method may only be called before the MouseEvent has been dispatched via the dispatchEvent method, though it may be called multiple times during that phase if necessary. If called multiple times, the final invocation takes precedence.
Parameters:
  typeArg - Specifies the event type.
Parameters:
  canBubbleArg - Specifies whether or not the event can bubble.
Parameters:
  cancelableArg - Specifies whether or not the event's default action can be prevented.
Parameters:
  viewArg - Specifies the Event's AbstractView.
Parameters:
  detailArg - Specifies the Event's mouse click count.
Parameters:
  screenXArg - Specifies the Event's screen x coordinate
Parameters:
  screenYArg - Specifies the Event's screen y coordinate
Parameters:
  clientXArg - Specifies the Event's client x coordinate
Parameters:
  clientYArg - Specifies the Event's client y coordinate
Parameters:
  ctrlKeyArg - Specifies whether or not control key was depressed during the Event.
Parameters:
  altKeyArg - Specifies whether or not alt key was depressed during the Event.
Parameters:
  shiftKeyArg - Specifies whether or not shift key was depressed during the Event.
Parameters:
  metaKeyArg - Specifies whether or not meta key was depressed during the Event.
Parameters:
  buttonArg - Specifies the Event's mouse button.
Parameters:
  relatedTargetArg - Specifies the Event's related EventTarget.



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