AbstractWorkbenchAction

abstract class AbstractWorkbenchAction(val workbench: AvailWorkbench, name: String, shortcut: KeyboardShortcut? = null, rootPane: JRootPane = workbench.rootPane) : AbstractAction

An abstraction for all the workbench's actions.

Parameters

workbench

The owning AvailWorkbench.

name

The action's name.

shortcut

The KeyboardShortcut used to invoke the action or null if there is no shortcut for this AbstractWorkbenchAction.

rootPane

The JRootPane for the

Inheritors

Constructors

Link copied to clipboard
constructor(workbench: AvailWorkbench, name: String, shortcut: KeyboardShortcut? = null, rootPane: JRootPane = workbench.rootPane)

Construct a new AbstractWorkbenchAction.

Properties

Link copied to clipboard
open var checkEnabled: () -> Boolean

The lambda that indicates whether or not this should be enabled.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun accept(p0: Any): Boolean
Link copied to clipboard
abstract fun actionPerformed(p0: ActionEvent)
Link copied to clipboard
Link copied to clipboard
open fun getKeys(): Array<Any>
Link copied to clipboard
open override fun getValue(p0: String): Any
Link copied to clipboard
open override fun isEnabled(): Boolean
Link copied to clipboard
fun name(): String
Link copied to clipboard
open override fun putValue(p0: String, p1: Any)
Link copied to clipboard
Link copied to clipboard
open override fun setEnabled(p0: Boolean)
Link copied to clipboard
abstract fun updateIsEnabled(busy: Boolean)

Update isEnabled to reflect whether or not this AbstractWorkbenchAction should be be enabled at the time of calling this function.