Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

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 released events to a javafx node.

Examples

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



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