public interface EventDispatchTree extends EventDispatchChain
Modifier and Type | Method and Description |
---|---|
EventDispatchTree |
append(EventDispatcher eventDispatcher)
Appends the specified
EventDispatcher to this chain. |
EventDispatchTree |
createTree() |
EventDispatchTree |
mergeTree(EventDispatchTree tree) |
EventDispatchTree |
prepend(EventDispatcher eventDispatcher)
Prepends the specified
EventDispatcher to this chain. |
dispatchEvent
EventDispatchTree createTree()
EventDispatchTree mergeTree(EventDispatchTree tree)
EventDispatchTree append(EventDispatcher eventDispatcher)
EventDispatchChain
EventDispatcher
to this chain. Returns a
reference to the chain with the appended element.
The caller shouldn't assume that this EventDispatchChain
remains
unchanged nor that the returned value will reference a different chain
after the call. All this depends on the EventDispatchChain
implementation.
So the call should be always done in the following form:
chain = chain.append(eventDispatcher);
append
in interface EventDispatchChain
eventDispatcher
- the EventDispatcher
to append to the
chainEventDispatchTree prepend(EventDispatcher eventDispatcher)
EventDispatchChain
EventDispatcher
to this chain. Returns a
reference to the chain with the prepended element.
The caller shouldn't assume that this EventDispatchChain
remains
unchanged nor that the returned value will reference a different chain
after the call. All this depends on the EventDispatchChain
implementation.
So the call should be always done in the following form:
chain = chain.prepend(eventDispatcher);
prepend
in interface EventDispatchChain
eventDispatcher
- the EventDispatcher
to prepend to the
chainCopyright © 2020. All rights reserved.