Package com.sun.javafx.event
Class EventDispatchTreeImpl
java.lang.Object
com.sun.javafx.event.EventDispatchTreeImpl
- All Implemented Interfaces:
EventDispatchTree,EventDispatchChain
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(EventDispatcher eventDispatcher) Appends the specifiedEventDispatcherto this chain.dispatchEvent(Event event) Dispatches the specified event through thisEventDispatchChain.mergeTree(EventDispatchTree tree) prepend(EventDispatcher eventDispatcher) Prepends the specifiedEventDispatcherto this chain.voidreset()toString()
-
Constructor Details
-
EventDispatchTreeImpl
public EventDispatchTreeImpl()
-
-
Method Details
-
reset
public void reset() -
createTree
- Specified by:
createTreein interfaceEventDispatchTree
-
mergeTree
- Specified by:
mergeTreein interfaceEventDispatchTree
-
append
Description copied from interface:EventDispatchChainAppends the specifiedEventDispatcherto this chain. Returns a reference to the chain with the appended element.The caller shouldn't assume that this
EventDispatchChainremains unchanged nor that the returned value will reference a different chain after the call. All this depends on theEventDispatchChainimplementation.So the call should be always done in the following form:
chain = chain.append(eventDispatcher);- Specified by:
appendin interfaceEventDispatchChain- Specified by:
appendin interfaceEventDispatchTree- Parameters:
eventDispatcher- theEventDispatcherto append to the chain- Returns:
- the chain with the appended event dispatcher
-
prepend
Description copied from interface:EventDispatchChainPrepends the specifiedEventDispatcherto this chain. Returns a reference to the chain with the prepended element.The caller shouldn't assume that this
EventDispatchChainremains unchanged nor that the returned value will reference a different chain after the call. All this depends on theEventDispatchChainimplementation.So the call should be always done in the following form:
chain = chain.prepend(eventDispatcher);- Specified by:
prependin interfaceEventDispatchChain- Specified by:
prependin interfaceEventDispatchTree- Parameters:
eventDispatcher- theEventDispatcherto prepend to the chain- Returns:
- the chain with the prepended event dispatcher
-
dispatchEvent
Description copied from interface:EventDispatchChainDispatches the specified event through thisEventDispatchChain. The return value represents the event after processing done by the chain. If further processing is to be done after the call the event referenced by the return value should be used instead of the original event. In the case the event is fully handled / consumed in the chain the returned value isnulland no further processing should be done with that event.- Specified by:
dispatchEventin interfaceEventDispatchChain- Parameters:
event- the event to dispatch- Returns:
- the processed event or
nullif the event had been fully handled / consumed
-
toString
-