Action

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.

An Action defines the text, icon and keyCombination (AKA keyboard shortcut). Actions are grouped using the Actions class.

Constructors

Link copied to clipboard
constructor(name: String, text: String, keyCombination: KeyCombination? = null, tooltip: String? = null)

Properties

Link copied to clipboard

Additional key combinations which are not displayed in tooltips, nor in menu items.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The text that will appear in buttons / menu items

Link copied to clipboard

For monochrome icons, which must be tinted with the fontColor.

Link copied to clipboard

Functions

Link copied to clipboard
fun add(vararg keyCombinations: KeyCombination)
Link copied to clipboard
fun matches(event: KeyEvent): Boolean
Link copied to clipboard
open override fun toString(): String