Generated Object

javafx.event.EventHandler

Attributes

onEvent either a Groovy closure or a javafx.event.EventHandler<MouseEvent>, see javafx.event.EventHandler and javafx.scene.input.MouseEvent. The closure takes a MouseEvent object as its argument.

Content

None

Usage

Used to pass mouse entered events to a javafx node.

Examples

circle ( centerX: 50, centerY: 50, radius: 25,
                fill: rgb(0,0,255), onMouseEntered: {println 'mouse clicked event'})



circle (centerX: 100, centerY: 50, radius: 25, fill: red) {
    onMouseEntered(onEvent: { println 'mouse clicked event'})
}