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
ConstructorsConstructorDescriptionEventImpl(InputEvent inputEvent) Constructor for EventImpl.Constructor for EventImpl. -
Method Summary
Modifier and TypeMethodDescriptionprotected BooleangetBoolVal(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 DoublegetDoubleVal(NativeObject obj, String key) protected LonggetLongVal(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.voidThe stopImmediatePropagation() method of the Event interface prevents other listeners of the same event from being called.voidThe stopPropagation() method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.protected StringgetStringVal(NativeObject obj, String key) doubleThe timeStamp read-only property of the Event interface returns the time (in milliseconds) at which the event was created.voidThe Event.initEvent() method is used to initialize the value of an event created using Document.createEvent().voidThe Event.initEvent() method is used to initialize the value of an event created using Document.createEvent().voidThe Event.initEvent() method is used to initialize the value of an event created using Document.createEvent().booleanvoidThe 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 voidvoidsetReturnValue(Object newValue) toString()Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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.
-
-
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:EventThe 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:
preventDefaultin interfaceEvent- See Also:
-
getDefaultPrevented
Description copied from interface:EventThe 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:
getDefaultPreventedin interfaceEvent- See Also:
-
getReturnValue
- Specified by:
getReturnValuein interfaceEvent
-
getSrcElement
Description copied from interface:EventInitially 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:
getSrcElementin interfaceEvent- See Also:
-
getTimeStamp
public double getTimeStamp()Description copied from interface:EventThe timeStamp read-only property of the Event interface returns the time (in milliseconds) at which the event was created.- Specified by:
getTimeStampin interfaceEvent- See Also:
-
getComposedPath
Description copied from interface:EventThe 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:
getComposedPathin interfaceEvent- See Also:
-
getStopImmediatePropagation
public void getStopImmediatePropagation()Description copied from interface:EventThe stopImmediatePropagation() method of the Event interface prevents other listeners of the same event from being called.- Specified by:
getStopImmediatePropagationin interfaceEvent- See Also:
-
getStopPropagation
public void getStopPropagation()Description copied from interface:EventThe 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:
getStopPropagationin interfaceEvent- See Also:
-
isPropogationStopped
public boolean isPropogationStopped() -
setReturnValue
-
getStringVal
-
getDoubleVal
-
getLongVal
-
getBoolVal
-
toString
-