com.instantbank.lettertemplate.editor.applet
Class TemplateEditor.EditorStuff.OpenComponentAction
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--com.instantbank.lettertemplate.editor.applet.TemplateEditor.EditorStuff.OpenComponentAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- Enclosing class:
- TemplateEditor.EditorStuff
- class TemplateEditor.EditorStuff.OpenComponentAction
- extends javax.swing.AbstractAction
Action bound to the btnOpen
button. It Allows to choose an existing component to replace the current
one. The provided Gui is a standard JOptionPane dialog.
- Author:
- InstantBank (Rodrigo Lopez)
- See Also:
- Serialized Form
Inner classes inherited from class javax.swing.AbstractAction |
javax.swing.AbstractAction.ArrayTable |
Field Summary |
(package private) java.lang.String[] |
compNames
Names of the components that can be opened. |
private CodeDescription[] |
components
[code,name] array of the components that can be opened. |
Fields inherited from class javax.swing.AbstractAction |
arrayTable, changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Allows to choose an existing component to replace the current one. |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, readObject, removePropertyChangeListener, setEnabled, writeObject |
Methods inherited from class java.lang.Object |
, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
components
private CodeDescription[] components
- [code,name] array of the components that can be opened.
compNames
java.lang.String[] compNames
- Names of the components that can be opened.
TemplateEditor.EditorStuff.OpenComponentAction
TemplateEditor.EditorStuff.OpenComponentAction(java.lang.String s,
javax.swing.ImageIcon i)
- OpenComponentAction Constructor.
- Parameters:
s
- Tip to be shown when browsing over the btnOpen
button.i
- Image inside the button.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Allows to choose an existing component to replace the current one.
The provided Gui is a standard JOptionPane dialog.
- Overrides:
actionPerformed
in class javax.swing.AbstractAction
- Parameters:
e
- Description of the Parameter