Package-level declarations

Types

Link copied to clipboard
class Action(val name: String, text: String, keyCombination: KeyCombination? = null, var tooltip: String? = null)

Action defines an action that the user can make, such a saving the current document. It does NOT define HOW that action is performed, that is the job of Command.

Link copied to clipboard
abstract class Actions

GUI applications can get messy, the classes in this package help reduce the messiness when defining Buttons, ToggleButtons, PropertyRadioButtons, Menus, MenuItems, SubMenus, ToggleMenuItem. It also simplifies keyboard shortcuts.

Link copied to clipboard
open class Command(val action: Action, val lambda: (ActionEvent) -> Unit?)

A Command defines what should happen when a GUI element is pressed, without being associated with a particular node.

Link copied to clipboard
open class Commands(val icons: NamedImages?)

A group of many Commands.

Link copied to clipboard
class PropertyRadioCommand<V, P : Property<V>>(val property: P, definition: Action, val value: V, lambda: (ActionEvent) -> Unit?) : Command
Link copied to clipboard
class PropertyToggleCommand<V, P : Property<V?>>(val property: P, definition: Action, val value: V, lambda: (ActionEvent) -> Unit?) : Command
Link copied to clipboard
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.