abstract class Action extends AnyRef
An abstract action to be performed in reaction to user input.
Not every action component will honor every property of its action. An action itself can generally be configured so that certain properties should be ignored and instead taken from the component directly. In the end, it is up to a component which property it uses in which way.
- See also
javax.swing.Action
- Alphabetic
- By Inheritance
- Action
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Action(title0: String)
Abstract Value Members
- abstract def apply(): Unit
Concrete Value Members
-
def
accelerator: Option[KeyStroke]
For menus.
- def accelerator_=(k: Option[KeyStroke]): Unit
-
def
enabled: Boolean
For all components.
- def enabled_=(b: Boolean): Unit
-
def
icon: Icon
None if large icon and small icon are not equal.
- def icon_=(i: Icon): Unit
-
def
longDescription: String
Can be used for status bars, for example.
- def longDescription_=(t: String): Unit
-
def
mnemonic: Int
Default: java.awt.event.KeyEvent.VK_UNDEFINED, i.e., no mnemonic key.
Default: java.awt.event.KeyEvent.VK_UNDEFINED, i.e., no mnemonic key. For all buttons and thus menu items.
- def mnemonic_=(m: Int): Unit
- lazy val peer: javax.swing.Action
- def smallIcon: Icon
- def smallIcon_=(i: Icon): Unit
-
def
title: String
Title is not optional.
- def title_=(t: String): Unit
-
def
toolTip: String
For all components.
- def toolTip_=(t: String): Unit