public interface ActionData
Definition of an interface for describing properties of an action.
This interface is used in communication between a concrete implementation of
the
interface and tag handler classes
for defining action objects. The properties defined by this interface are
supported by the generic action classes.
ActionManager
The here specified properties are typical for GUI controls that represent actions, e.g. a textual description, an icon, and a tool tip text.
Modifier and Type | Method and Description |
---|---|
Accelerator |
getAccelerator()
Returns the
Accelerator associated with this action. |
Object |
getIcon()
Returns an icon for the represented action.
|
int |
getMnemonicKey()
Returns the mnemonic for the represented action.
|
String |
getName()
Returns the name of the represented action.
|
Object |
getTask()
Returns the task object for the represented action.
|
String |
getText()
Returns a text for this action.
|
String |
getToolTip()
Returns the tool tip text for the represented action.
|
String getName()
String getText()
String getToolTip()
int getMnemonicKey()
Accelerator getAccelerator()
Accelerator
associated with this action. Through
an accelerator the action can be associated with a specific key
combination. By typing this key combination the action will be triggered.
An example for an accelerator is the well-known key combination CONTROL+C
for copying the current selection into the clipboard.Accelerator
for this action; can be null,
then the action is not associated with an
Accelerator
Object getIcon()
Object getTask()
Runnable
or an ActionTask
object.Copyright © 2016 The JGUIraffe Team. All rights reserved.