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

pack-priv final Class EventListenerImpl

extends Object
implements EventListener
Class Inheritance
All Implemented Interfaces
org.w3c.dom.events.EventListener
Imports
com.sun.webkit.Disposer, .DisposerRecord, java.lang.ref.WeakReference, java.util.HashMap, .Map, .WeakHashMap, org.w3c.dom.events.Event, .EventListener

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final Map<EventListener, Long>
private final EventListener
private final long
private static final Map<Long, WeakReference<EventListener>>

Constructor Summary

AccessConstructor and Description
private
EventListenerImpl(EventListener eventListener, long jsPeer)

Method Summary

Modifier and TypeMethod and Description
private static void
dispose(long peer)

private void
fwkHandleEvent(long eventPeer)

private static EventListener
getELfromPeer(long peer)

pack-priv static EventListener
getImpl(long peer)

pack-priv static long
getPeer(EventListener eventListener)

public void
handleEvent(Event
The Event contains contextual information about the event. It also contains the stopPropagation and preventDefault methods which are used in determining the event's flow and default action.
evt
)

Implements org.w3c.dom.events.EventListener.handleEvent.

This method is called whenever an event occurs of the type for which the EventListener interface was registered.

private native long
private static native void
twkDispatchEvent(long eventListenerPeer, long eventPeer)

private static native void
twkDisposeJSPeer(long peer)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EL2peerback to summary
private static final Map<EventListener, Long> EL2peer
eventListenerback to summary
private final EventListener eventListener
jsPeerback to summary
private final long jsPeer
peer2ELback to summary
private static final Map<Long, WeakReference<EventListener>> peer2EL

Constructor Detail

EventListenerImplback to summary
private EventListenerImpl(EventListener eventListener, long jsPeer)

Method Detail

disposeback to summary
private static void dispose(long peer)
fwkHandleEventback to summary
private void fwkHandleEvent(long eventPeer)
getELfromPeerback to summary
private static EventListener getELfromPeer(long peer)
getImplback to summary
pack-priv static EventListener getImpl(long peer)
getPeerback to summary
pack-priv static long getPeer(EventListener eventListener)
handleEventback to summary
public void handleEvent(Event evt)

Implements org.w3c.dom.events.EventListener.handleEvent.

Doc from org.w3c.dom.events.EventListener.handleEvent.

This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Parameters
evt:Event

The Event contains contextual information about the event. It also contains the stopPropagation and preventDefault methods which are used in determining the event's flow and default action.

twkCreatePeerback to summary
private native long twkCreatePeer()
twkDispatchEventback to summary
private static native void twkDispatchEvent(long eventListenerPeer, long eventPeer)
twkDisposeJSPeerback to summary
private static native void twkDisposeJSPeer(long peer)
com.sun.webkit.dom back to summary

private final Class EventListenerImpl.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
private
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
private SelfDisposer(final long peer)

Method Detail

disposeback to summary
public void dispose()

Implements com.sun.webkit.DisposerRecord.dispose.