Event

scalafx.event.Event
See theEvent companion object
class Event(val delegate: Event) extends SFXDelegate[Event]

Wrapper class for Event.

Attributes

Companion
object
Graph
Supertypes
trait SFXDelegate[Event]
class Object
trait Matchable
class Any
Known subtypes
class ActionEvent
class DialogEvent
class EditEvent[T]
class ScrollToEvent[T]
class SortEvent[C]
class CellEditEvent[S, T]
class CellEditEvent[S, T]
class EditEvent[T]
class EditEvent[T]
class InputEvent
class DragEvent
class GestureEvent
class ScrollEvent
class SwipeEvent
class ZoomEvent
class KeyEvent
class MouseEvent
class RotateEvent
class TouchEvent
class WebEvent[T]
class WindowEvent
Show all

Members list

Value members

Constructors

def this(eventType: EventType[_ <: Event])

Construct a new Event with the specified event type.

Construct a new Event with the specified event type.

Value parameters

eventType

The event type

Attributes

def this(source: Any, target: EventTarget, eventType: EventType[_ <: Event])

Construct a new Event with the specified event source, target and type.

Construct a new Event with the specified event source, target and type.

Value parameters

eventType

The event type

source

the event source which sent the event

target

the event target to associate with the event

Attributes

Concrete methods

def consume(): Unit

Marks this Event as consumed. This stops its further propagation.

Marks this Event as consumed. This stops its further propagation.

Attributes

Indicates whether this Event has been consumed by any filter or handler.

Indicates whether this Event has been consumed by any filter or handler.

Attributes

def copyFor(newSource: AnyRef, newTarget: EventTarget): Event

Creates and returns a copy of this event with the specified event source and target.

Creates and returns a copy of this event with the specified event source and target.

Attributes

def eventType: EventType[_ <: Event]

Gets the event type of this event.

Gets the event type of this event.

Attributes

def source: Object

Returns the object on which the Event initially occurred.

Returns the object on which the Event initially occurred.

Attributes

def target: EventTarget

Returns the event target of this event.

Returns the event target of this event.

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: Event

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes