Package org.loboevolution.html.js.events
Class MouseEventImpl
java.lang.Object
org.loboevolution.js.AbstractScriptableDelegate
org.loboevolution.html.js.events.EventImpl
org.loboevolution.html.js.events.UIEventImpl
org.loboevolution.html.js.events.MouseEventImpl
- All Implemented Interfaces:
Event
,MouseEvent
,UIEvent
,ScriptableDelegate
- Direct Known Subclasses:
DragEventImpl
,PointerEventImpl
,WheelEventImpl
MouseEventImpl class.
-
Field Summary
Fields inherited from interface org.loboevolution.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE, NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe MouseEvent.button read-only property indicates which button was pressed on the mouse to trigger the event.getModifierState
(String key) The MouseEvent.getModifierState() method returns the current state of the specified modifier key: true if the modifier is active (i.e., the modifier key is pressed or locked), otherwise, false.getWhich()
void
initMouseEvent
(String type) The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).void
initMouseEvent
(String type, Boolean bubbles) The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).void
initMouseEvent
(String type, Boolean bubbles, Boolean cancelable) The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).void
initMouseEvent
(String type, Boolean bubbles, Boolean cancelable, Window view) The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).void
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).void
initMouseEvent
(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX) The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).void
initMouseEvent
(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY) The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).void
initMouseEvent
(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX) The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).void
initMouseEvent
(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX, Integer clientY) The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).void
initMouseEvent
(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX, Integer clientY, Boolean ctrlKey) The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).void
initMouseEvent
(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX, Integer clientY, Boolean ctrlKey, Boolean altKey) The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).void
initMouseEvent
(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX, Integer clientY, Boolean ctrlKey, Boolean altKey, Boolean shiftKey) The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).void
initMouseEvent
(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX, Integer clientY, Boolean ctrlKey, Boolean altKey, Boolean shiftKey, Boolean metaKey) The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).void
initMouseEvent
(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX, Integer clientY, Boolean ctrlKey, Boolean altKey, Boolean shiftKey, Boolean metaKey, Integer button) The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).void
initMouseEvent
(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX, Integer clientY, Boolean ctrlKey, Boolean altKey, Boolean shiftKey, Boolean metaKey, Integer button, EventTarget relatedTarget) The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).The MouseEvent.relatedTarget read-only property is the secondary target for the mouse event, if there is one.toString()
Methods inherited from class org.loboevolution.html.js.events.UIEventImpl
initUIEvent, initUIEvent, initUIEvent, initUIEvent, initUIEvent, setUIEventParams
Methods inherited from class org.loboevolution.html.js.events.EventImpl
getBoolVal, getComposedPath, getDefaultPrevented, getDoubleVal, getLongVal, getReturnValue, getSrcElement, getStopImmediatePropagation, getStopPropagation, getStringVal, getTimeStamp, initEvent, initEvent, initEvent, isPropogationStopped, preventDefault, setParams, setReturnValue
Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.loboevolution.events.Event
getBubbles, getCancelable, getComposed, getComposedPath, getCurrentTarget, getDefaultPrevented, getEventPhase, getReturnValue, getSrcElement, getStopImmediatePropagation, getStopPropagation, getTarget, getTimeStamp, getTrusted, getType, initEvent, initEvent, initEvent, preventDefault
Methods inherited from interface org.loboevolution.events.MouseEvent
getAltKey, getButtons, getClientX, getClientY, getCtrlKey, getMetaKey, getMovementX, getMovementY, getOffsetX, getOffsetY, getPageX, getPageY, getScreenX, getScreenY, getShiftKey, getX, getY
Methods inherited from interface org.loboevolution.events.UIEvent
getDetail, getView, initUIEvent, initUIEvent, initUIEvent, initUIEvent, initUIEvent
-
Constructor Details
-
MouseEventImpl
-
MouseEventImpl
-
-
Method Details
-
initMouseEvent
public void initMouseEvent(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX, Integer clientY, Boolean ctrlKey, Boolean altKey, Boolean shiftKey, Boolean metaKey, Integer button, EventTarget relatedTarget) Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
initMouseEvent
public void initMouseEvent(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX, Integer clientY, Boolean ctrlKey, Boolean altKey, Boolean shiftKey, Boolean metaKey, Integer button) Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
initMouseEvent
public void initMouseEvent(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX, Integer clientY, Boolean ctrlKey, Boolean altKey, Boolean shiftKey, Boolean metaKey) Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
initMouseEvent
public void initMouseEvent(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX, Integer clientY, Boolean ctrlKey, Boolean altKey, Boolean shiftKey) Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
initMouseEvent
public void initMouseEvent(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX, Integer clientY, Boolean ctrlKey, Boolean altKey) Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
initMouseEvent
public void initMouseEvent(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX, Integer clientY, Boolean ctrlKey) Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
initMouseEvent
public void initMouseEvent(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX, Integer clientY) Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
initMouseEvent
public void initMouseEvent(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY, Integer clientX) Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
initMouseEvent
public void initMouseEvent(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX, Integer screenY) Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
initMouseEvent
public void initMouseEvent(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail, Integer screenX) Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
initMouseEvent
public void initMouseEvent(String type, Boolean bubbles, Boolean cancelable, Window view, Integer detail) Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
initMouseEvent
Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
initMouseEvent
Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
initMouseEvent
Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
initMouseEvent
Description copied from interface:MouseEvent
The MouseEvent.initMouseEvent() method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).- Specified by:
initMouseEvent
in interfaceMouseEvent
- See Also:
-
getModifierState
Description copied from interface:MouseEvent
The MouseEvent.getModifierState() method returns the current state of the specified modifier key: true if the modifier is active (i.e., the modifier key is pressed or locked), otherwise, false.- Specified by:
getModifierState
in interfaceMouseEvent
- See Also:
-
getWhich
-
getButton
Description copied from interface:MouseEvent
The MouseEvent.button read-only property indicates which button was pressed on the mouse to trigger the event.- Specified by:
getButton
in interfaceMouseEvent
- See Also:
-
toString
- Overrides:
toString
in classUIEventImpl
-