Action

abstract class Action(title0: String)

An abstract action to be performed in reaction to user input.

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

Companion
object
class Object
trait Matchable
class Any
object NoAction

Value members

Abstract methods

def apply(): Unit

Concrete methods

def accelerator: Option[KeyStroke]

For menus.

For menus.

def accelerator_=(k: Option[KeyStroke]): Unit
def enabled: Boolean

For all components.

For all components.

def enabled_=(b: Boolean): Unit
def icon: Icon

None if large icon and small icon are not equal.

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.

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. For all buttons and thus menu items.

Default: java.awt.event.KeyEvent.VK_UNDEFINED, i.e., no mnemonic key. For all buttons and thus menu items.

def mnemonic_=(m: Int): Unit
def smallIcon: Icon
def smallIcon_=(i: Icon): Unit
def text: String

Gets the NAME property.

Gets the NAME property.

def text_=(t: String): Unit

Sets the NAME property.

Sets the NAME property.

def title: String

An alias for text. This is kept for backwards compatibility.

An alias for text. This is kept for backwards compatibility.

See also
def title_=(t: String): Unit

An alias for text_=. This is kept for backwards compatibility.

An alias for text_=. This is kept for backwards compatibility.

def toolTip: String

For all components.

For all components.

def toolTip_=(t: String): Unit

Concrete fields

lazy val peer: Action