EventDispatchChain

scalafx.event.EventDispatchChain
See theEventDispatchChain companion object
abstract class EventDispatchChain(val delegate: EventDispatchChain) extends SFXDelegate[EventDispatchChain]

Represents a chain of EventDispatcher objects, which can dispatch an Event. The event is dispatched by passing it from one EventDispatcher to the next in the chain until the end of chain is reached. Each EventDispatcher in the chain can influence the event path and the event itself. The chain is usually formed by following some parent - child hierarchy from the root to the event target and appending all EventDispatcher objects encountered to the chain.

Wraps a $JFX $URL0 $FC]].

Attributes

Companion
object
Graph
Supertypes
trait SFXDelegate[EventDispatchChain]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def append(eventDispatcher: EventDispatcher): EventDispatchChain

Appends the specified EventDispatcher to this chain. Returns a reference to the chain with the appended element.

Appends the specified 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);

Value parameters

eventDispatcher

the EventDispatcher to append to the chain

Attributes

Returns

the chain with the appended event dispatcher

See also
def dispatchEvent(event: Event): Event

Dispatches the specified event through this EventDispatchChain. 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 is null and no further processing should be done with that event.

Dispatches the specified event through this EventDispatchChain. 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 is null and no further processing should be done with that event.

Value parameters

event

the event to dispatch

Attributes

Returns

the processed event or null if the event had been fully handled / consumed

See also
def prepend(eventDispatcher: EventDispatcher): EventDispatchChain

Prepends the specified EventDispatcher to this chain. Returns a reference to the chain with the prepended element.

Prepends the specified 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);

Value parameters

eventDispatcher

the EventDispatcher to prepend to the chain

Attributes

Returns

the chain with the prepended event dispatcher

See also

Inherited methods

override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value parameters

ref

Object to be compared.

Attributes

Returns

if the other object is equals to this delegate or not.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def toString: String

Attributes

Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

Concrete fields

override val delegate: EventDispatchChain

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes