scala.swing

class Action

[source: scala/swing/Action.scala]

abstract class Action(title0 : java.lang.String)
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
Direct Known Subclasses:
Action.NoAction

Value Summary
lazy val peer : javax.swing.Action
Method Summary
def accelerator : Option[javax.swing.KeyStroke]
For menus.
def accelerator_= (k : Option[javax.swing.KeyStroke]) : Unit
abstract def apply : Unit
def enabled : Boolean
For all components.
def enabled_= (b : Boolean) : Unit
def icon : javax.swing.Icon
None if large icon and small icon are not equal.
def icon_= (i : javax.swing.Icon) : Unit
def longDescription : java.lang.String
Can be used for status bars, for example.
def longDescription_= (t : java.lang.String) : Unit
def mnemonic : Int
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 : javax.swing.Icon
def smallIcon_= (i : javax.swing.Icon) : Unit
def title : java.lang.String
Title is not optional.
def title_= (t : java.lang.String) : Unit
def toolTip : java.lang.String
For all components.
def toolTip_= (t : java.lang.String) : Unit
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
lazy val peer : javax.swing.Action

Method Details
def title : java.lang.String
Title is not optional.

def title_=(t : java.lang.String) : Unit

def icon : javax.swing.Icon
None if large icon and small icon are not equal.

def icon_=(i : javax.swing.Icon) : Unit

def smallIcon : javax.swing.Icon

def smallIcon_=(i : javax.swing.Icon) : Unit

def toolTip : java.lang.String
For all components.

def toolTip_=(t : java.lang.String) : Unit

def longDescription : java.lang.String
Can be used for status bars, for example.

def longDescription_=(t : java.lang.String) : Unit

def mnemonic : Int
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 accelerator : Option[javax.swing.KeyStroke]
For menus.

def accelerator_=(k : Option[javax.swing.KeyStroke]) : Unit

def enabled : Boolean
For all components.

def enabled_=(b : Boolean) : Unit

abstract def apply : Unit