public class ActionDataImpl extends Object implements ActionData
A straight forward implementation of the ActionData
interface.
This class defines member variables for all the get and set methods defined
by the ActionData
interface. The access methods operate directly
on these fields.
Implementation note: This class is not thread-safe.
Constructor and Description |
---|
ActionDataImpl() |
Modifier and Type | Method and Description |
---|---|
Accelerator |
getAccelerator()
Returns the accelerator.
|
Object |
getIcon()
Returns the icon for the represented action.
|
int |
getMnemonicKey()
Returns the mnemonic key.
|
String |
getName()
Returns the name of this action.
|
Object |
getTask()
Returns the task of this action.
|
String |
getText()
Returns the text of this action.
|
String |
getToolTip()
Returns the tool tip of this action.
|
void |
setAccelerator(Accelerator accelerator)
Sets the accelerator.
|
void |
setActionData(ActionData c)
Initializes this object from the specified
ActionData object. |
void |
setIcon(Object icon)
Sets the icon for the represented action.
|
void |
setMnemonicKey(int mnemonicKey)
Sets the mnemonic key.
|
void |
setName(String name)
Sets the name of this action.
|
void |
setTask(Object t)
Allows setting the task of this action.
|
void |
setText(String text)
Sets the text of this action.
|
void |
setToolTip(String toolTip)
Sets the tool tip text of this action.
|
public Object getIcon()
getIcon
in interface ActionData
public void setIcon(Object icon)
icon
- the iconpublic int getMnemonicKey()
getMnemonicKey
in interface ActionData
public void setMnemonicKey(int mnemonicKey)
mnemonicKey
- the key codepublic Accelerator getAccelerator()
getAccelerator
in interface ActionData
public void setAccelerator(Accelerator accelerator)
accelerator
- the acceleratorpublic String getName()
getName
in interface ActionData
public void setName(String name)
name
- the action namepublic Object getTask()
getTask
in interface ActionData
public void setTask(Object t)
t
- the taskpublic String getText()
getText
in interface ActionData
public void setText(String text)
text
- the textpublic String getToolTip()
getToolTip
in interface ActionData
public void setToolTip(String toolTip)
toolTip
- the tool tip textpublic void setActionData(ActionData c)
ActionData
object. The
properties are copied from this object. Note: This is not a typical
property set method because there is no corresponding getActionData()
method. However, using this name simplifies bean
declarations for this class in builder scripts.c
- the source object (must not be null)IllegalArgumentException
- if the ActionData
object is
nullCopyright © 2016 The JGUIraffe Team. All rights reserved.