WeakEventHandler

class WeakEventHandler[T <: Event](val delegate: WeakEventHandler[T]) extends SFXDelegate[WeakEventHandler[T]]

Wraps JavaFX WeakEventHandler.

Wraps JavaFX WeakEventHandler.

Type Params
T

JavaFX Event subclass

Value Params
delegate

JavaFX WeakEventHandler to be wrapped

Constructor

Creates a new ScalaFX WeakEventHandler from a JavaFX WeakEventHandler.

Since

8.0

Companion
object
trait SFXDelegate[WeakEventHandler[T]]
class Object
trait Matchable
class Any

Value members

Constructors

def this(eventHandler: T => Unit)

Creates a new instance of WeakEventHandler.

Creates a new instance of WeakEventHandler.

Value Params
eventHandler

The original event handler to which to forward event notifications

Concrete methods

def handle(event: T): Unit

Forwards event notification to the associated event handler.

Forwards event notification to the associated event handler.

Value Params
event

The event to be handled

def wasGarbageCollected: Boolean

Indicates whether the associated event handler has been garbage collected.

Indicates whether the associated event handler has been garbage collected.

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 Params
ref

Object to be compared.

Returns

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

Definition Classes
Inherited from
SFXDelegate
override def hashCode: Int
Returns

The delegate hashcode

Definition Classes
Inherited from
SFXDelegate
override def toString: String
Returns

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

Definition Classes
Inherited from
SFXDelegate

Concrete fields

override val delegate: WeakEventHandler[T]