|
||||||||||
| 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, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, 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)
|
JMenuItem |
createMenuItem()
|
AbstractButton |
createToolboxItem()
|
Icon |
getIcon()
|
void |
setAcceleratorKey(KeyStroke key)
Set the accelerator key for this action. |
void |
setIcon(Icon icon)
|
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 action
public AbstractJrAction(String name,
Component parentComp)
name - the name of the actionparentComp - the parent component| Method 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 keystrokepublic JMenuItem createMenuItem()
public AbstractButton createToolboxItem()
public void setIcon(Icon icon)
public Icon getIcon()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||