Top Fields Constructors Methods
com.sun.javafx.event

public Class CompositeEventTargetImpl

extends Object
implements CompositeEventTarget
Class Inheritance
All Implemented Interfaces
com.sun.javafx.event.CompositeEventTarget, javafx.event.EventTarget
Imports
java.util.Arrays, .Collections, .HashSet, .Set, javafx.event.EventDispatchChain, .EventTarget

Field Summary

Modifier and TypeField and Description
private final Set<EventTarget>

Constructor Summary

AccessConstructor and Description
public
CompositeEventTargetImpl(final EventTarget... eventTargets)

Method Summary

Modifier and TypeMethod and Description
public EventDispatchChain
buildEventDispatchChain(final EventDispatchChain
the initial chain to build from
tail
)

Implements javafx.event.EventTarget.buildEventDispatchChain.

Construct an event dispatch chain for this target.

public boolean
public Set<EventTarget>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

eventTargetsback to summary
private final Set<EventTarget> eventTargets

Constructor Detail

CompositeEventTargetImplback to summary
public CompositeEventTargetImpl(final EventTarget... eventTargets)

Method Detail

buildEventDispatchChainback to summary
public EventDispatchChain buildEventDispatchChain(final EventDispatchChain tail)

Implements javafx.event.EventTarget.buildEventDispatchChain.

Doc from javafx.event.EventTarget.buildEventDispatchChain.

Construct an event dispatch chain for this target. The event dispatch chain contains event dispatchers which might be interested in processing of events targeted at this EventTarget. This event target is not automatically added to the chain, so if it wants to process events, it needs to add an EventDispatcher for itself to the chain.

In the case the event target is part of some hierarchy, the chain for it is usually built from event dispatchers collected from the root of the hierarchy to the event target.

The event dispatch chain is constructed by modifications to the provided initial event dispatch chain. The returned chain should have the initial chain at its end so the dispatchers should be prepended to the initial chain.

The caller shouldn't assume that the initial chain remains unchanged nor that the returned value will reference a different chain.

Parameters
tail:EventDispatchChain

the initial chain to build from

Returns:EventDispatchChain

the resulting event dispatch chain for this target

Annotations
@Override
containsTargetback to summary
public boolean containsTarget(EventTarget target)

Implements com.sun.javafx.event.CompositeEventTarget.containsTarget.

Annotations
@Override
getTargetsback to summary
public Set<EventTarget> getTargets()

Implements com.sun.javafx.event.CompositeEventTarget.getTargets.

Annotations
@Override