API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom.events. MouseEvent View Source
Author(s)
Since
DOM Level 2
Version
Serial
Hierarchy
 Event
      UIEvent
          MouseEvent
Subinterfaces
Description
public interface MouseEvent
  The MouseEvent interface provides specific contextual information associated with Mouse events.
See also:   
Methods
Hide/Show inherited methods
public boolean getAltKey ()
  Used to indicate whether the 'alt' key was depressed during the firing of the event.
public short getButton ()
  During mouse events caused by the depression or release of a mouse button, button is used to indicate which mouse button changed state.
public int getClientX ()
The horizontal coordinate at which the event occurred relative to the DOM implementation's client area.
public int getClientY ()
The vertical coordinate at which the event occurred relative to the DOM implementation's client area.
public boolean getCtrlKey ()
Used to indicate whether the 'ctrl' key was depressed during the firing of the event.
public boolean getMetaKey ()
  Used to indicate whether the 'meta' key was depressed during the firing of the event.
public EventTarget getRelatedTarget ()
  Used to identify a secondary EventTarget related to a UI event.
public int getScreenX ()
The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system.
public int getScreenY ()
The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system.
public boolean getShiftKey ()
Used to indicate whether the 'shift' key was depressed during the firing of the event.
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)
  The initMouseEvent method is used to initialize the value of a MouseEvent created through the DocumentEvent interface.
Fields
Hide/Show inherited fields
publicfinalstatic short AT_TARGET = "2" [Inherited From UIEvent]
The event is currently being evaluated at the target EventTarget.
publicfinalstatic short BUBBLING_PHASE = "3" [Inherited From UIEvent]
The current event phase is the bubbling phase.
publicfinalstatic short CAPTURING_PHASE = "1" [Inherited From UIEvent]
The current event phase is the capturing phase.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar