ToggleCommand

class ToggleCommand(definition: Action, val selectedProperty: BooleanProperty, lambda: (ActionEvent) -> Unit?) : Command

A ToggleCommand is a Command with an extra selectedProperty. Used with ToggleButton and ToggleMenuItem, where their selectedProperty is bound bidirectionally to this one.

Constructors

Link copied to clipboard
constructor(definition: Action, selectedProperty: BooleanProperty, lambda: (ActionEvent) -> Unit?)

Properties

Link copied to clipboard