|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
de.jreality.ui.viewerapp.actions.AbstractJrAction
public abstract class AbstractJrAction
Abstract class for actions used in jReality applications.
Field Summary |
---|
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
AbstractJrAction(String name)
Default constructor. |
|
AbstractJrAction(String name,
Component parentComp)
Constructor for actions which need a parent component e.g. |
Method Summary | |
---|---|
abstract void |
actionPerformed(ActionEvent e)
|
void |
setAcceleratorKey(KeyStroke key)
Set the accelerator key for this action. |
void |
setName(String name)
Set the action's name. |
void |
setShortDescription(String desc)
Set the action's short description. |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractJrAction(String name)
name
- the name of the actionpublic AbstractJrAction(String name, Component parentComp)
name
- the name of the actionparentComp
- the parent componentMethod Detail |
---|
public abstract void actionPerformed(ActionEvent e)
public void setName(String name)
name
- the name of this actionpublic void setShortDescription(String desc)
name
- the short description of this actionpublic void setAcceleratorKey(KeyStroke key)
key
- the accelerator keystroke
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |