WeakEventHandler

scalafx.event.WeakEventHandler
See theWeakEventHandler companion object
class WeakEventHandler[T <: Event](val delegate: WeakEventHandler[T]) extends SFXDelegate[WeakEventHandler[T]]

Wraps JavaFX WeakEventHandler.

Type parameters

T

JavaFX Event subclass

Value parameters

delegate

JavaFX WeakEventHandler to be wrapped

Attributes

Constructor

Creates a new ScalaFX WeakEventHandler from a JavaFX WeakEventHandler.

Since

8.0

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

Members list

Value members

Constructors

def this(eventHandler: T => Unit)

Creates a new instance of WeakEventHandler.

Creates a new instance of WeakEventHandler.

Value parameters

eventHandler

The original event handler to which to forward event notifications

Attributes

Concrete methods

def handle(event: T): Unit

Forwards event notification to the associated event handler.

Forwards event notification to the associated event handler.

Value parameters

event

The event to be handled

Attributes

Indicates whether the associated event handler has been garbage collected.

Indicates whether the associated event handler has been garbage collected.

Attributes

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: WeakEventHandler[T]

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes