Package org.loboevolution.html.js.events
Class EventImpl
java.lang.Object
org.loboevolution.js.AbstractScriptableDelegate
org.loboevolution.html.js.events.EventImpl
- All Implemented Interfaces:
Event
,ScriptableDelegate
- Direct Known Subclasses:
BlobEventImpl
,CloseEventImpl
,CustomEventImpl
,DeviceMotionEventImpl
,DeviceOrientationEventImpl
,ErrorEventImpl
,GamepadEventimpl
,HashChangeEventImpl
,MessageEventImpl
,MutationEventImpl
,PageTransitionEventImpl
,PopStateEventImpl
,ProgressEventImpl
,SubmitEventImpl
,TrackEventImpl
,TransitionEventImpl
,UIEventImpl
EventImpl class.
-
Field Summary
Fields inherited from interface org.loboevolution.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE, NONE
-
Constructor Summary
ConstructorDescriptionEventImpl
(InputEvent inputEvent) Constructor for EventImpl.Constructor for EventImpl. -
Method Summary
Modifier and TypeMethodDescriptionprotected Boolean
getBoolVal
(NativeObject obj, String key) The composedPath() method of the Event interface returns the event’s path which is an array of the objects on which listeners will be invoked.The defaultPrevented read-only property of the Event interface returns a Boolean indicating whether or not the call to Event.preventDefault() canceled the event.protected Double
getDoubleVal
(NativeObject obj, String key) protected Long
getLongVal
(NativeObject obj, String key) Initially implemented in Internet Explorer, Event.srcElement is a now-standard alias (defined in the DOM Standard but flagged as "historical") for the Event.target property.void
The stopImmediatePropagation() method of the Event interface prevents other listeners of the same event from being called.void
The stopPropagation() method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.protected String
getStringVal
(NativeObject obj, String key) double
The timeStamp read-only property of the Event interface returns the time (in milliseconds) at which the event was created.void
The Event.initEvent() method is used to initialize the value of an event created using Document.createEvent().void
The Event.initEvent() method is used to initialize the value of an event created using Document.createEvent().void
The Event.initEvent() method is used to initialize the value of an event created using Document.createEvent().boolean
void
The Event interface's preventDefault() method tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.protected void
void
setReturnValue
(Object newValue) toString()
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, getCurrentTarget, getEventPhase, getTarget, getTrusted, getType
-
Constructor Details
-
EventImpl
Constructor for EventImpl.
-
EventImpl
Constructor for EventImpl.
- Throws:
DOMException
-
-
Method Details
-
setParams
- Throws:
DOMException
-
initEvent
The Event.initEvent() method is used to initialize the value of an event created using Document.createEvent(). -
initEvent
The Event.initEvent() method is used to initialize the value of an event created using Document.createEvent(). -
initEvent
The Event.initEvent() method is used to initialize the value of an event created using Document.createEvent(). -
preventDefault
public void preventDefault()Description copied from interface:Event
The Event interface's preventDefault() method tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.- Specified by:
preventDefault
in interfaceEvent
- See Also:
-
getDefaultPrevented
Description copied from interface:Event
The defaultPrevented read-only property of the Event interface returns a Boolean indicating whether or not the call to Event.preventDefault() canceled the event.- Specified by:
getDefaultPrevented
in interfaceEvent
- See Also:
-
getReturnValue
- Specified by:
getReturnValue
in interfaceEvent
-
getSrcElement
Description copied from interface:Event
Initially implemented in Internet Explorer, Event.srcElement is a now-standard alias (defined in the DOM Standard but flagged as "historical") for the Event.target property. It's supported in all major browser engines, but only for compatibility reasons. Use Event.target instead.- Specified by:
getSrcElement
in interfaceEvent
- See Also:
-
getTimeStamp
public double getTimeStamp()Description copied from interface:Event
The timeStamp read-only property of the Event interface returns the time (in milliseconds) at which the event was created.- Specified by:
getTimeStamp
in interfaceEvent
- See Also:
-
getComposedPath
Description copied from interface:Event
The composedPath() method of the Event interface returns the event’s path which is an array of the objects on which listeners will be invoked. This does not include nodes in shadow trees if the shadow root was created with its ShadowRoot.mode closed.- Specified by:
getComposedPath
in interfaceEvent
- See Also:
-
getStopImmediatePropagation
public void getStopImmediatePropagation()Description copied from interface:Event
The stopImmediatePropagation() method of the Event interface prevents other listeners of the same event from being called.- Specified by:
getStopImmediatePropagation
in interfaceEvent
- See Also:
-
getStopPropagation
public void getStopPropagation()Description copied from interface:Event
The stopPropagation() method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases. It does not, however, prevent any default behaviors from occurring; for instance, clicks on links are still processed. If you want to stop those behaviors, see the preventDefault() method.- Specified by:
getStopPropagation
in interfaceEvent
- See Also:
-
isPropogationStopped
public boolean isPropogationStopped() -
setReturnValue
-
getStringVal
-
getDoubleVal
-
getLongVal
-
getBoolVal
-
toString
-