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

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Action
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Action(title0: String)

Abstract Value Members

  1. abstract def apply(): Unit

Concrete Value Members

  1. def accelerator: Option[KeyStroke]

    For menus.

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

    For all components.

  4. def enabled_=(b: Boolean): Unit
  5. def icon: Icon

    None if large icon and small icon are not equal.

  6. def icon_=(i: Icon): Unit
  7. def longDescription: String

    Can be used for status bars, for example.

  8. def longDescription_=(t: String): Unit
  9. 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.

  10. def mnemonic_=(m: Int): Unit
  11. lazy val peer: javax.swing.Action
  12. def smallIcon: Icon
  13. def smallIcon_=(i: Icon): Unit
  14. def title: String

    Title is not optional.

  15. def title_=(t: String): Unit
  16. def toolTip: String

    For all components.

  17. def toolTip_=(t: String): Unit