Top Inners Fields Constructors Methods
com.sun.webkit.dom

public Class EventImpl

extends Object
implements Event
Class Inheritance
All Implemented Interfaces
org.w3c.dom.events.Event
Known Direct Subclasses
com.sun.webkit.dom.MutationEventImpl, com.sun.webkit.dom.UIEventImpl
Imports
com.sun.webkit.Disposer, .DisposerRecord, org.w3c.dom.events.Event, .EventTarget

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
private final long
public static final int
private static final int
private static final int
private static final int
private static final int
private static final int

Constructor Summary

AccessConstructor and Description
pack-priv
EventImpl(long peer)

Method Summary

Modifier and TypeMethod and Description
pack-priv static Event
create(long peer)

private static native void
dispose(long peer)

public boolean
equals(Object
the reference object with which to compare.
that
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public boolean
getBubbles()

Implements org.w3c.dom.events.Event.getBubbles.

Used to indicate whether or not an event is a bubbling event.

pack-priv static native boolean
getBubblesImpl(long peer)

public boolean
getCancelable()

Implements org.w3c.dom.events.Event.getCancelable.

Used to indicate whether or not an event can have its default action prevented.

pack-priv static native boolean
getCancelableImpl(long peer)

public boolean
pack-priv static native boolean
private static native int
getCPPTypeImpl(long peer)

public EventTarget
getCurrentTarget()

Implements org.w3c.dom.events.Event.getCurrentTarget.

Used to indicate the EventTarget whose EventListeners are currently being processed.

pack-priv static native long
public boolean
pack-priv static native boolean
public short
getEventPhase()

Implements org.w3c.dom.events.Event.getEventPhase.

Used to indicate which phase of event flow is currently being evaluated.

pack-priv static native short
getEventPhaseImpl(long peer)

pack-priv static Event
getImpl(long peer)

public boolean
pack-priv static native boolean
getIsTrustedImpl(long peer)

pack-priv long
pack-priv static long
public boolean
pack-priv static native boolean
getReturnValueImpl(long peer)

public EventTarget
pack-priv static native long
getSrcElementImpl(long peer)

public EventTarget
getTarget()

Implements org.w3c.dom.events.Event.getTarget.

Used to indicate the EventTarget to which the event was originally dispatched.

pack-priv static native long
getTargetImpl(long peer)

public long
getTimeStamp()

Implements org.w3c.dom.events.Event.getTimeStamp.

Used to specify the time (in milliseconds relative to the epoch) at which the event was created.

pack-priv static native long
getTimeStampImpl(long peer)

public String
getType()

Implements org.w3c.dom.events.Event.getType.

The name of the event (case-insensitive).

pack-priv static native String
getTypeImpl(long peer)

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public void
initEvent(String
Specifies the event type. This type may be any event type currently defined in this specification or a new event type.. The string must be an XML name. Any new event type must not begin with any upper, lower, or mixed case version of the string "DOM". This prefix is reserved for future DOM event sets. It is also strongly recommended that third parties adding their own events use their own prefix to avoid confusion and lessen the probability of conflicts with other new events.
eventTypeArg
,
boolean
Specifies whether or not the event can bubble.
canBubbleArg
,
boolean
Specifies whether or not the event's default action can be prevented.
cancelableArg
)

Implements org.w3c.dom.events.Event.initEvent.

The initEvent method is used to initialize the value of an Event created through the DocumentEvent interface.

pack-priv static native void
initEventImpl(long peer, String eventTypeArg, boolean canBubbleArg, boolean cancelableArg)

public void
preventDefault()

Implements org.w3c.dom.events.Event.preventDefault.

If an event is cancelable, the preventDefault method is used to signify that the event is to be canceled, meaning any default action normally taken by the implementation as a result of the event will not occur.

pack-priv static native void
preventDefaultImpl(long peer)

public void
setCancelBubble(boolean value)

pack-priv static native void
setCancelBubbleImpl(long peer, boolean value)

public void
setReturnValue(boolean value)

pack-priv static native void
setReturnValueImpl(long peer, boolean value)

public void
pack-priv static native void
public void
stopPropagation()

Implements org.w3c.dom.events.Event.stopPropagation.

The stopPropagation method is used prevent further propagation of an event during event flow.

pack-priv static native void
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

AT_TARGETback to summary
public static final int AT_TARGET

Hides org.w3c.dom.events.Event.AT_TARGET.

BLURback to summary
public static final int BLUR
BUBBLING_PHASEback to summary
public static final int BUBBLING_PHASE

Hides org.w3c.dom.events.Event.BUBBLING_PHASE.

CAPTURING_PHASEback to summary
public static final int CAPTURING_PHASE

Hides org.w3c.dom.events.Event.CAPTURING_PHASE.

CHANGEback to summary
public static final int CHANGE
CLICKback to summary
public static final int CLICK
DBLCLICKback to summary
public static final int DBLCLICK
DRAGDROPback to summary
public static final int DRAGDROP
FOCUSback to summary
public static final int FOCUS
KEYDOWNback to summary
public static final int KEYDOWN
KEYPRESSback to summary
public static final int KEYPRESS
KEYUPback to summary
public static final int KEYUP
MOUSEDOWNback to summary
public static final int MOUSEDOWN
MOUSEDRAGback to summary
public static final int MOUSEDRAG
MOUSEMOVEback to summary
public static final int MOUSEMOVE
MOUSEOUTback to summary
public static final int MOUSEOUT
MOUSEOVERback to summary
public static final int MOUSEOVER
MOUSEUPback to summary
public static final int MOUSEUP
NONEback to summary
public static final int NONE
peerback to summary
private final long peer
SELECTback to summary
public static final int SELECT
TYPE_KeyboardEventback to summary
private static final int TYPE_KeyboardEvent
TYPE_MouseEventback to summary
private static final int TYPE_MouseEvent
TYPE_MutationEventback to summary
private static final int TYPE_MutationEvent
TYPE_UIEventback to summary
private static final int TYPE_UIEvent
TYPE_WheelEventback to summary
private static final int TYPE_WheelEvent

Constructor Detail

EventImplback to summary
pack-priv EventImpl(long peer)

Method Detail

createback to summary
pack-priv static Event create(long peer)
disposeback to summary
private static native void dispose(long peer)
equalsback to summary
public boolean equals(Object that)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
that:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getBubblesback to summary
public boolean getBubbles()

Implements org.w3c.dom.events.Event.getBubbles.

Doc from org.w3c.dom.events.Event.getBubbles.

Used to indicate whether or not an event is a bubbling event. If the event can bubble the value is true, else the value is false.

getBubblesImplback to summary
pack-priv static native boolean getBubblesImpl(long peer)
getCancelableback to summary
public boolean getCancelable()

Implements org.w3c.dom.events.Event.getCancelable.

Doc from org.w3c.dom.events.Event.getCancelable.

Used to indicate whether or not an event can have its default action prevented. If the default action can be prevented the value is true, else the value is false.

getCancelableImplback to summary
pack-priv static native boolean getCancelableImpl(long peer)
getCancelBubbleback to summary
public boolean getCancelBubble()
getCancelBubbleImplback to summary
pack-priv static native boolean getCancelBubbleImpl(long peer)
getCPPTypeImplback to summary
private static native int getCPPTypeImpl(long peer)
getCurrentTargetback to summary
public EventTarget getCurrentTarget()

Implements org.w3c.dom.events.Event.getCurrentTarget.

Doc from org.w3c.dom.events.Event.getCurrentTarget.

Used to indicate the EventTarget whose EventListeners are currently being processed. This is particularly useful during capturing and bubbling.

getCurrentTargetImplback to summary
pack-priv static native long getCurrentTargetImpl(long peer)
getDefaultPreventedback to summary
public boolean getDefaultPrevented()
getDefaultPreventedImplback to summary
pack-priv static native boolean getDefaultPreventedImpl(long peer)
getEventPhaseback to summary
public short getEventPhase()

Implements org.w3c.dom.events.Event.getEventPhase.

Doc from org.w3c.dom.events.Event.getEventPhase.

Used to indicate which phase of event flow is currently being evaluated.

getEventPhaseImplback to summary
pack-priv static native short getEventPhaseImpl(long peer)
getImplback to summary
pack-priv static Event getImpl(long peer)
getIsTrustedback to summary
public boolean getIsTrusted()
getIsTrustedImplback to summary
pack-priv static native boolean getIsTrustedImpl(long peer)
getPeerback to summary
pack-priv long getPeer()
getPeerback to summary
pack-priv static long getPeer(Event arg)
getReturnValueback to summary
public boolean getReturnValue()
getReturnValueImplback to summary
pack-priv static native boolean getReturnValueImpl(long peer)
getSrcElementback to summary
public EventTarget getSrcElement()
getSrcElementImplback to summary
pack-priv static native long getSrcElementImpl(long peer)
getTargetback to summary
public EventTarget getTarget()

Implements org.w3c.dom.events.Event.getTarget.

Doc from org.w3c.dom.events.Event.getTarget.

Used to indicate the EventTarget to which the event was originally dispatched.

getTargetImplback to summary
pack-priv static native long getTargetImpl(long peer)
getTimeStampback to summary
public long getTimeStamp()

Implements org.w3c.dom.events.Event.getTimeStamp.

Doc from org.w3c.dom.events.Event.getTimeStamp.

Used to specify the time (in milliseconds relative to the epoch) at which the event was created. Due to the fact that some systems may not provide this information the value of timeStamp may be not available for all events. When not available, a value of 0 will be returned. Examples of epoch time are the time of the system start or 0:0:0 UTC 1st January 1970.

getTimeStampImplback to summary
pack-priv static native long getTimeStampImpl(long peer)
getTypeback to summary
public String getType()

Implements org.w3c.dom.events.Event.getType.

Doc from org.w3c.dom.events.Event.getType.

The name of the event (case-insensitive). The name must be an XML name.

getTypeImplback to summary
pack-priv static native String getTypeImpl(long peer)
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object

Annotations
@Override
initEventback to summary
public void initEvent(String eventTypeArg, boolean canBubbleArg, boolean cancelableArg)

Implements org.w3c.dom.events.Event.initEvent.

Doc from org.w3c.dom.events.Event.initEvent.

The initEvent method is used to initialize the value of an Event created through the DocumentEvent interface. This method may only be called before the Event 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. If called from a subclass of Event interface only the values specified in the initEvent method are modified, all other attributes are left unchanged.

Parameters
eventTypeArg:String

Specifies the event type. This type may be any event type currently defined in this specification or a new event type.. The string must be an XML name. Any new event type must not begin with any upper, lower, or mixed case version of the string "DOM". This prefix is reserved for future DOM event sets. It is also strongly recommended that third parties adding their own events use their own prefix to avoid confusion and lessen the probability of conflicts with other new events.

canBubbleArg:boolean

Specifies whether or not the event can bubble.

cancelableArg:boolean

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

initEventImplback to summary
pack-priv static native void initEventImpl(long peer, String eventTypeArg, boolean canBubbleArg, boolean cancelableArg)
preventDefaultback to summary
public void preventDefault()

Implements org.w3c.dom.events.Event.preventDefault.

Doc from org.w3c.dom.events.Event.preventDefault.

If an event is cancelable, the preventDefault method is used to signify that the event is to be canceled, meaning any default action normally taken by the implementation as a result of the event will not occur. If, during any stage of event flow, the preventDefault method is called the event is canceled. Any default action associated with the event will not occur. Calling this method for a non-cancelable event has no effect. Once preventDefault has been called it will remain in effect throughout the remainder of the event's propagation. This method may be used during any stage of event flow.

preventDefaultImplback to summary
pack-priv static native void preventDefaultImpl(long peer)
setCancelBubbleback to summary
public void setCancelBubble(boolean value)
setCancelBubbleImplback to summary
pack-priv static native void setCancelBubbleImpl(long peer, boolean value)
setReturnValueback to summary
public void setReturnValue(boolean value)
setReturnValueImplback to summary
pack-priv static native void setReturnValueImpl(long peer, boolean value)
stopImmediatePropagationback to summary
public void stopImmediatePropagation()
stopImmediatePropagationImplback to summary
pack-priv static native void stopImmediatePropagationImpl(long peer)
stopPropagationback to summary
public void stopPropagation()

Implements org.w3c.dom.events.Event.stopPropagation.

Doc from org.w3c.dom.events.Event.stopPropagation.

The stopPropagation method is used prevent further propagation of an event during event flow. If this method is called by any EventListener the event will cease propagating through the tree. The event will complete dispatch to all listeners on the current EventTarget before event flow stops. This method may be used during any stage of event flow.

stopPropagationImplback to summary
pack-priv static native void stopPropagationImpl(long peer)
com.sun.webkit.dom back to summary

private Class EventImpl.SelfDisposer

extends Object
implements DisposerRecord
Class Inheritance
All Implemented Interfaces
com.sun.webkit.DisposerRecord

Field Summary

Modifier and TypeField and Description
private final long

Constructor Summary

AccessConstructor and Description
pack-priv
SelfDisposer(final long peer)

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

peerback to summary
private final long peer

Constructor Detail

SelfDisposerback to summary
pack-priv SelfDisposer(final long peer)

Method Detail

disposeback to summary
public void dispose()

Implements com.sun.webkit.DisposerRecord.dispose.