Methods Summary |
---|
public boolean | getAltKey()Refer to the KeyboardEvent.altKey attribute.
|
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. 0 indicates the normal button of the
mouse (in general on the left or the one button on Macintosh mice,
used to activate a button or select text). 2 indicates
the contextual property (in general on the right, used to display a
context menu) button of the mouse if present. 1
indicates the extra (in general in the middle and often combined with
the mouse wheel) button. Some mice may provide or simulate more
buttons, and values higher than 2 can be used to
represent such buttons.
|
public int | getClientX()The horizontal coordinate at which the event occurred relative to the
viewport associated with the event.
|
public int | getClientY()The vertical coordinate at which the event occurred relative to the
viewport associated with the event.
|
public boolean | getCtrlKey()Refer to the KeyboardEvent.ctrlKey attribute.
|
public boolean | getMetaKey()Refer to the KeyboardEvent.metaKey attribute.
|
public org.w3c.dom.events.EventTarget | getRelatedTarget()Used to identify a secondary EventTarget related to a UI
event, depending on the type of 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()Refer to the KeyboardEvent.shiftKey attribute.
|
public void | initMouseEvent(java.lang.String typeArg, boolean canBubbleArg, boolean cancelableArg, org.w3c.dom.views.AbstractView viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, short buttonArg, org.w3c.dom.events.EventTarget relatedTargetArg)Initializes attributes of a MouseEvent object. This
method has the same behavior as UIEvent.initUIEvent() .
|