|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
ru.biosoft.graphics.editor.InsertAction
The InsertAction class extends functionality of AbstractAction.
| Field Summary | |
protected static org.apache.log4j.Category |
log
|
static java.lang.String |
TYPE
Type of element to be created and inserted during this action processing. |
| Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
InsertAction()
Dummy constructor. |
|
InsertAction(java.lang.Class type,
javax.swing.Icon icon)
Creates InsertAction for the specified type. |
|
InsertAction(java.lang.Class type,
java.lang.String name,
java.lang.String shortDesc,
java.lang.String longDesc,
int mnemonic,
java.lang.String imageFile,
java.awt.event.ActionListener listener)
Defines an Action object with the specified
type of element to be inserted, and action name, long/short description string,
mnemonic key, icon and action listener. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
Overridden method for translation action events to the all listeners |
void |
addActionListener(java.awt.event.ActionListener l)
Adds the specified action listener to receive action event . |
protected void |
fireActionPerformed(java.awt.event.ActionEvent evt)
|
static javax.swing.Icon |
getIcon(java.lang.String imageFile)
Initialise icon from the specified image file. |
void |
removeActionListeners(java.lang.Class clazz)
|
| Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static org.apache.log4j.Category log
public static final java.lang.String TYPE
| Constructor Detail |
public InsertAction()
public InsertAction(java.lang.Class type,
java.lang.String name,
java.lang.String shortDesc,
java.lang.String longDesc,
int mnemonic,
java.lang.String imageFile,
java.awt.event.ActionListener listener)
Action object with the specified
type of element to be inserted, and action name, long/short description string,
mnemonic key, icon and action listener.
type - type of element to be created and inserted when this action is processedname - name of actionshortDesc - shortDesc short description of actionlongDesc - longDesc long description of actionmnemonic - mnemonic hot keyimageFile - image for icon on button or menu itemslistener - listener listener of action
public InsertAction(java.lang.Class type,
javax.swing.Icon icon)
type - type of element to be created and inserted during the action processing.icon - - iacon for this action| Method Detail |
public static javax.swing.Icon getIcon(java.lang.String imageFile)
public void actionPerformed(java.awt.event.ActionEvent evt)
evt - ActionEventprotected void fireActionPerformed(java.awt.event.ActionEvent evt)
public void addActionListener(java.awt.event.ActionListener l)
public void removeActionListeners(java.lang.Class clazz)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||