Attributes
- Companion
- trait
- Graph
-
- Supertypes
- Self type
-
EventIncludes.type
Members list
Value members
Deprecated and Inherited methods
NOTE: use of handle
is deprecated in Scala 2.12 and newer, you can use standard Scala syntax:
NOTE: use of handle
is deprecated in Scala 2.12 and newer, you can use standard Scala syntax:
button.onAction = _ => {
println("Handling button action")
doSomething()
}
For Scala 2.11 and older, you can use handle
to create a simple event handler when information about event is not be used.
Enables following use:
button.onAction = handle {
println("Handling button action")
doSomething()
}
Type parameters
- J
-
JavaFX Event subclass.
Value parameters
- handler
-
code executed when event is handled.
Attributes
- Returns
-
JavaFX EventHandler which will wrap the input code
handler
. - Deprecated
- true
- Inherited from:
- EventIncludes
Implicits
Inherited implicits
Converts a closure to a JavaFX EventHandler. It is used when the event properties ''will be used''.
Converts a closure to a JavaFX EventHandler. It is used when the event properties ''will be used''.
Enables following use:
button.onAction = (e:ActionEvent) => {
println("Handling button action: " + e)
doSomething(e)
}
Type parameters
- J
-
JavaFX Event subclass.
Value parameters
- handler
-
Closure that that takes scalafx.event.Event as argument.
Attributes
- Returns
-
JavaFX EventHandler which handle method will call handler
- Inherited from:
- EventIncludes
Converts a closure to a JavaFX EventHandler. It is used when information about event is not be used.
Converts a closure to a JavaFX EventHandler. It is used when information about event is not be used.
Enables following use:
button.onAction = () => {
println("Handling button action")
doSomething()
}
Type parameters
- T
-
JavaFX Event subclass.
Value parameters
- handler
-
Closure that ''will not'' handle event.
Attributes
- Returns
-
JavaFX EventHandler which handle method will call handler
- Inherited from:
- EventIncludes
Converts a `javafx.event.ActionEvent` instance to its ScalaFX counterpart.
Converts a `javafx.event.ActionEvent` instance to its ScalaFX counterpart.
Value parameters
- ae
-
JavaFX ActionEvent
Attributes
- Returns
-
ScalaFX ActionEvent
- Inherited from:
- EventIncludes
Converts a `javafx.event.Event` instance to its ScalaFX counterpart.
Converts a `javafx.event.Event` instance to its ScalaFX counterpart.
Value parameters
- e
-
JavaFX Event
Attributes
- Returns
-
ScalaFX Event
- Inherited from:
- EventIncludes
Attributes
- Inherited from:
- EventIncludes
Attributes
- Inherited from:
- EventIncludes
Attributes
- Inherited from:
- EventIncludes
Converts a `javafx.event.EventType` instance to its ScalaFX counterpart.
Converts a `javafx.event.EventType` instance to its ScalaFX counterpart.
Type parameters
- T
-
Event Type
Value parameters
- e
-
JavaFX EventType
Attributes
- Returns
-
ScalaFX EventType
- Inherited from:
- EventIncludes
Converts a `javafx.event.WeakEventHandler` instance to its ScalaFX counterpart.
Converts a `javafx.event.WeakEventHandler` instance to its ScalaFX counterpart.
Type parameters
- T
-
Event Type
Value parameters
- weh
-
JavaFX WeakEventHandler
Attributes
- Returns
-
ScalaFX WeakEventHandler
- Since
-
8.0
- Inherited from:
- EventIncludes