Top Constructors Methods
com.sun.webkit.dom

public Class MouseEventImpl

extends UIEventImpl
implements MouseEvent
Class Inheritance
All Implemented Interfaces
org.w3c.dom.events.MouseEvent, org.w3c.dom.events.UIEvent, org.w3c.dom.events.Event
Known Direct Subclasses
com.sun.webkit.dom.WheelEventImpl
Imports
org.w3c.dom.Node, org.w3c.dom.events.EventTarget, .MouseEvent, org.w3c.dom.views.AbstractView

Constructor Summary

AccessConstructor and Description
pack-priv
MouseEventImpl(long peer)

Method Summary

Modifier and TypeMethod and Description
public boolean
getAltKey()

Implements org.w3c.dom.events.MouseEvent.getAltKey.

Used to indicate whether the 'alt' key was depressed during the firing of the event.

pack-priv static native boolean
getAltKeyImpl(long peer)

public short
getButton()

Implements org.w3c.dom.events.MouseEvent.getButton.

During mouse events caused by the depression or release of a mouse button, button is used to indicate which mouse button changed state.

pack-priv static native short
getButtonImpl(long peer)

public int
getClientX()

Implements org.w3c.dom.events.MouseEvent.getClientX.

The horizontal coordinate at which the event occurred relative to the DOM implementation's client area.

pack-priv static native int
getClientXImpl(long peer)

public int
getClientY()

Implements org.w3c.dom.events.MouseEvent.getClientY.

The vertical coordinate at which the event occurred relative to the DOM implementation's client area.

pack-priv static native int
getClientYImpl(long peer)

public boolean
getCtrlKey()

Implements org.w3c.dom.events.MouseEvent.getCtrlKey.

Used to indicate whether the 'ctrl' key was depressed during the firing of the event.

pack-priv static native boolean
getCtrlKeyImpl(long peer)

public Node
pack-priv static native long
getFromElementImpl(long peer)

pack-priv static MouseEvent
public boolean
getMetaKey()

Implements org.w3c.dom.events.MouseEvent.getMetaKey.

Used to indicate whether the 'meta' key was depressed during the firing of the event.

pack-priv static native boolean
getMetaKeyImpl(long peer)

public int
pack-priv static native int
getOffsetXImpl(long peer)

public int
pack-priv static native int
getOffsetYImpl(long peer)

public EventTarget
getRelatedTarget()

Implements org.w3c.dom.events.MouseEvent.getRelatedTarget.

Used to identify a secondary EventTarget related to a UI event.

pack-priv static native long
public int
getScreenX()

Implements org.w3c.dom.events.MouseEvent.getScreenX.

The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system.

pack-priv static native int
getScreenXImpl(long peer)

public int
getScreenY()

Implements org.w3c.dom.events.MouseEvent.getScreenY.

The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system.

pack-priv static native int
getScreenYImpl(long peer)

public boolean
getShiftKey()

Implements org.w3c.dom.events.MouseEvent.getShiftKey.

Used to indicate whether the 'shift' key was depressed during the firing of the event.

pack-priv static native boolean
getShiftKeyImpl(long peer)

public Node
pack-priv static native long
getToElementImpl(long peer)

public int
getX()

pack-priv static native int
getXImpl(long peer)

public int
getY()

pack-priv static native int
getYImpl(long peer)

public void
initMouseEvent(String
Specifies the event type.
type
,
boolean
Specifies whether or not the event can bubble.
canBubble
,
boolean
Specifies whether or not the event's default action can be prevented.
cancelable
,
AbstractView
Specifies the Event's AbstractView.
view
,
int
Specifies the Event's mouse click count.
detail
,
int
Specifies the Event's screen x coordinate
screenX
,
int
Specifies the Event's screen y coordinate
screenY
,
int
Specifies the Event's client x coordinate
clientX
,
int
Specifies the Event's client y coordinate
clientY
,
boolean
Specifies whether or not control key was depressed during the Event.
ctrlKey
,
boolean
Specifies whether or not alt key was depressed during the Event.
altKey
,
boolean
Specifies whether or not shift key was depressed during the Event.
shiftKey
,
boolean
Specifies whether or not meta key was depressed during the Event.
metaKey
,
short
Specifies the Event's mouse button.
button
,
EventTarget
Specifies the Event's related EventTarget.
relatedTarget
)

Implements org.w3c.dom.events.MouseEvent.initMouseEvent.

The initMouseEvent method is used to initialize the value of a MouseEvent created through the DocumentEvent interface.

pack-priv static native void
initMouseEventImpl(long peer, String type, boolean canBubble, boolean cancelable, long view, int detail, int screenX, int screenY, int clientX, int clientY, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, short button, long relatedTarget)

Inherited from com.sun.webkit.dom.UIEventImpl:
getCharCodegetCharCodeImplgetDetailgetDetailImplgetKeyCodegetKeyCodeImplgetLayerXgetLayerXImplgetLayerYgetLayerYImplgetPageXgetPageXImplgetPageYgetPageYImplgetViewgetViewImplgetWhichgetWhichImplinitUIEventinitUIEventImpl

Constructor Detail

MouseEventImplback to summary
pack-priv MouseEventImpl(long peer)

Method Detail

getAltKeyback to summary
public boolean getAltKey()

Implements org.w3c.dom.events.MouseEvent.getAltKey.

Doc from org.w3c.dom.events.MouseEvent.getAltKey.

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.

getAltKeyImplback to summary
pack-priv static native boolean getAltKeyImpl(long peer)
getButtonback to summary
public short getButton()

Implements org.w3c.dom.events.MouseEvent.getButton.

Doc from org.w3c.dom.events.MouseEvent.getButton.

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.

getButtonImplback to summary
pack-priv static native short getButtonImpl(long peer)
getClientXback to summary
public int getClientX()

Implements org.w3c.dom.events.MouseEvent.getClientX.

Doc from org.w3c.dom.events.MouseEvent.getClientX.

The horizontal coordinate at which the event occurred relative to the DOM implementation's client area.

getClientXImplback to summary
pack-priv static native int getClientXImpl(long peer)
getClientYback to summary
public int getClientY()

Implements org.w3c.dom.events.MouseEvent.getClientY.

Doc from org.w3c.dom.events.MouseEvent.getClientY.

The vertical coordinate at which the event occurred relative to the DOM implementation's client area.

getClientYImplback to summary
pack-priv static native int getClientYImpl(long peer)
getCtrlKeyback to summary
public boolean getCtrlKey()

Implements org.w3c.dom.events.MouseEvent.getCtrlKey.

Doc from org.w3c.dom.events.MouseEvent.getCtrlKey.

Used to indicate whether the 'ctrl' key was depressed during the firing of the event.

getCtrlKeyImplback to summary
pack-priv static native boolean getCtrlKeyImpl(long peer)
getFromElementback to summary
public Node getFromElement()
getFromElementImplback to summary
pack-priv static native long getFromElementImpl(long peer)
getImplback to summary
pack-priv static MouseEvent getImpl(long peer)

Hides com.sun.webkit.dom.UIEventImpl.getImpl.

getMetaKeyback to summary
public boolean getMetaKey()

Implements org.w3c.dom.events.MouseEvent.getMetaKey.

Doc from org.w3c.dom.events.MouseEvent.getMetaKey.

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.

getMetaKeyImplback to summary
pack-priv static native boolean getMetaKeyImpl(long peer)
getOffsetXback to summary
public int getOffsetX()
getOffsetXImplback to summary
pack-priv static native int getOffsetXImpl(long peer)
getOffsetYback to summary
public int getOffsetY()
getOffsetYImplback to summary
pack-priv static native int getOffsetYImpl(long peer)
getRelatedTargetback to summary
public EventTarget getRelatedTarget()

Implements org.w3c.dom.events.MouseEvent.getRelatedTarget.

Doc from org.w3c.dom.events.MouseEvent.getRelatedTarget.

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.

getRelatedTargetImplback to summary
pack-priv static native long getRelatedTargetImpl(long peer)
getScreenXback to summary
public int getScreenX()

Implements org.w3c.dom.events.MouseEvent.getScreenX.

Doc from org.w3c.dom.events.MouseEvent.getScreenX.

The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system.

getScreenXImplback to summary
pack-priv static native int getScreenXImpl(long peer)
getScreenYback to summary
public int getScreenY()

Implements org.w3c.dom.events.MouseEvent.getScreenY.

Doc from org.w3c.dom.events.MouseEvent.getScreenY.

The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system.

getScreenYImplback to summary
pack-priv static native int getScreenYImpl(long peer)
getShiftKeyback to summary
public boolean getShiftKey()

Implements org.w3c.dom.events.MouseEvent.getShiftKey.

Doc from org.w3c.dom.events.MouseEvent.getShiftKey.

Used to indicate whether the 'shift' key was depressed during the firing of the event.

getShiftKeyImplback to summary
pack-priv static native boolean getShiftKeyImpl(long peer)
getToElementback to summary
public Node getToElement()
getToElementImplback to summary
pack-priv static native long getToElementImpl(long peer)
getXback to summary
public int getX()
getXImplback to summary
pack-priv static native int getXImpl(long peer)
getYback to summary
public int getY()
getYImplback to summary
pack-priv static native int getYImpl(long peer)
initMouseEventback to summary
public void initMouseEvent(String type, boolean canBubble, boolean cancelable, AbstractView view, int detail, int screenX, int screenY, int clientX, int clientY, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, short button, EventTarget relatedTarget)

Implements org.w3c.dom.events.MouseEvent.initMouseEvent.

Doc from org.w3c.dom.events.MouseEvent.initMouseEvent.

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
type:String

Specifies the event type.

canBubble:boolean

Specifies whether or not the event can bubble.

cancelable:boolean

Specifies whether or not the event's default action can be prevented.

view:AbstractView

Specifies the Event's AbstractView.

detail:int

Specifies the Event's mouse click count.

screenX:int

Specifies the Event's screen x coordinate

screenY:int

Specifies the Event's screen y coordinate

clientX:int

Specifies the Event's client x coordinate

clientY:int

Specifies the Event's client y coordinate

ctrlKey:boolean

Specifies whether or not control key was depressed during the Event.

altKey:boolean

Specifies whether or not alt key was depressed during the Event.

shiftKey:boolean

Specifies whether or not shift key was depressed during the Event.

metaKey:boolean

Specifies whether or not meta key was depressed during the Event.

button:short

Specifies the Event's mouse button.

relatedTarget:EventTarget

Specifies the Event's related EventTarget.

initMouseEventImplback to summary
pack-priv static native void initMouseEventImpl(long peer, String type, boolean canBubble, boolean cancelable, long view, int detail, int screenX, int screenY, int clientX, int clientY, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, short button, long relatedTarget)