|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractAction
kawigi.cmd.DefaultAction
kawigi.cmd.SnippetAction
public class SnippetAction
This class executes all snippet-related commands, including using a snippet, launching the snippet dialog and all the controls on the snippet dialog.
| Field Summary | |
|---|---|
protected static javax.swing.JDialog |
addSnippetDialog
The global reference to the "Add Snippet" dialog, if it has been created. |
protected CodePane |
context
The CodePane that this action should act on. |
| Fields inherited from class kawigi.cmd.DefaultAction |
|---|
cmdid, COLOR, enableSet, FONT, LARGE_ICON, SELECTED, SPINNER_MODEL, SPINNER_VALUE, TEXT, visible, VISIBLE, visibleSet |
| 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 | |
|---|---|
SnippetAction(ActID cmdid,
CodePane context)
Constructs a new SnippetAction for the given ActID to act on the given CodePane. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Executes this action. |
java.lang.Object |
getValue(java.lang.String key)
Overridden to return the right values for the TEXT property. |
boolean |
isEnabled()
Returns true if this command should be enabled. |
void |
putValue(java.lang.String key,
java.lang.Object value)
Overridden to properly save the TEXT property. |
| Methods inherited from class kawigi.cmd.DefaultAction |
|---|
equals, getID, isNeedTrackEnabled, isVisible, reportError, setVisible, UIRefresh |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CodePane context
protected static javax.swing.JDialog addSnippetDialog
| Constructor Detail |
|---|
public SnippetAction(ActID cmdid,
CodePane context)
| Method Detail |
|---|
public boolean isEnabled()
isEnabled in interface javax.swing.ActionisEnabled in class javax.swing.AbstractActionpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class DefaultActionpublic java.lang.Object getValue(java.lang.String key)
getValue in interface javax.swing.ActiongetValue in class javax.swing.AbstractAction
public void putValue(java.lang.String key,
java.lang.Object value)
putValue in interface javax.swing.ActionputValue in class javax.swing.AbstractAction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||