ToggleAction
class ToggleAction(definition: Command, val selectedProperty: BooleanProperty, val lambda: (ActionEvent) -> Unit?) : Action
A ToggleAction is a Action with an extra selectedProperty. Used with ToggleButton and ToggleMenuItem, where their selectedProperty
is bound bidirectionally to this one.