Class EventListenersContainer.TypeContainer
- java.lang.Object
-
- org.htmlunit.javascript.host.event.EventListenersContainer.TypeContainer
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- EventListenersContainer
private static class EventListenersContainer.TypeContainer extends java.lang.Object implements java.io.Serializable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<org.htmlunit.corejs.javascript.Scriptable>
atTargetListeners_
private java.util.List<org.htmlunit.corejs.javascript.Scriptable>
bubblingListeners_
private java.util.List<org.htmlunit.corejs.javascript.Scriptable>
capturingListeners_
static EventListenersContainer.TypeContainer
EMPTY
private static org.htmlunit.corejs.javascript.Scriptable
EVENT_HANDLER_PLACEHOLDER
private org.htmlunit.corejs.javascript.Function
handler_
-
Constructor Summary
Constructors Modifier Constructor Description (package private)
TypeContainer()
private
TypeContainer(java.util.List<org.htmlunit.corejs.javascript.Scriptable> capturingListeners, java.util.List<org.htmlunit.corejs.javascript.Scriptable> bubblingListeners, java.util.List<org.htmlunit.corejs.javascript.Scriptable> atTargetListeners, org.htmlunit.corejs.javascript.Function handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventListenersContainer.TypeContainer
addListener(org.htmlunit.corejs.javascript.Scriptable listener, boolean useCapture)
protected EventListenersContainer.TypeContainer
clone()
(package private) java.util.List<org.htmlunit.corejs.javascript.Scriptable>
getListeners(int eventPhase)
EventListenersContainer.TypeContainer
removeListener(org.htmlunit.corejs.javascript.Scriptable listener, boolean useCapture)
EventListenersContainer.TypeContainer
setPropertyHandler(org.htmlunit.corejs.javascript.Function propertyHandler)
private EventListenersContainer.TypeContainer
withPropertyHandler(org.htmlunit.corejs.javascript.Function propertyHandler)
-
-
-
Field Detail
-
EMPTY
public static final EventListenersContainer.TypeContainer EMPTY
-
EVENT_HANDLER_PLACEHOLDER
private static final org.htmlunit.corejs.javascript.Scriptable EVENT_HANDLER_PLACEHOLDER
-
capturingListeners_
private final java.util.List<org.htmlunit.corejs.javascript.Scriptable> capturingListeners_
-
bubblingListeners_
private final java.util.List<org.htmlunit.corejs.javascript.Scriptable> bubblingListeners_
-
atTargetListeners_
private final java.util.List<org.htmlunit.corejs.javascript.Scriptable> atTargetListeners_
-
handler_
private final org.htmlunit.corejs.javascript.Function handler_
-
-
Constructor Detail
-
TypeContainer
TypeContainer()
-
TypeContainer
private TypeContainer(java.util.List<org.htmlunit.corejs.javascript.Scriptable> capturingListeners, java.util.List<org.htmlunit.corejs.javascript.Scriptable> bubblingListeners, java.util.List<org.htmlunit.corejs.javascript.Scriptable> atTargetListeners, org.htmlunit.corejs.javascript.Function handler)
-
-
Method Detail
-
getListeners
java.util.List<org.htmlunit.corejs.javascript.Scriptable> getListeners(int eventPhase)
-
setPropertyHandler
public EventListenersContainer.TypeContainer setPropertyHandler(org.htmlunit.corejs.javascript.Function propertyHandler)
-
withPropertyHandler
private EventListenersContainer.TypeContainer withPropertyHandler(org.htmlunit.corejs.javascript.Function propertyHandler)
-
addListener
public EventListenersContainer.TypeContainer addListener(org.htmlunit.corejs.javascript.Scriptable listener, boolean useCapture)
-
removeListener
public EventListenersContainer.TypeContainer removeListener(org.htmlunit.corejs.javascript.Scriptable listener, boolean useCapture)
-
clone
protected EventListenersContainer.TypeContainer clone()
- Overrides:
clone
in classjava.lang.Object
-
-