|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
jcreek.cke.command.CreekAction
Base action class which all other actions subclass. Provides some utility functions needed by nearly all of the actions in Creek.
Field Summary |
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 | |
CreekAction(java.lang.String name)
Creates a new CreekAction command with the given action command string. |
Method Summary | |
CreekDocument |
getDocument()
Returns the current creek document, if any. |
CreekModel |
getModel()
Returns the current creek model, if any. |
java.lang.String |
getString(java.lang.String key)
Retrieves a string resource from the app's resource bundle. |
ConceptView |
getView()
Returns the current concept view, if any. |
Visualizer |
getWindow(java.awt.event.ActionEvent e)
Finds the main window that contains the component that is the source of the given action event. |
void |
noCurrentDocument(java.awt.Frame win)
Displays a dialog indicating that there's no current document to perform the desired operation. |
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 |
Methods inherited from interface java.awt.event.ActionListener |
actionPerformed |
Constructor Detail |
public CreekAction(java.lang.String name)
name
- action command stringMethod Detail |
public java.lang.String getString(java.lang.String key)
key
- key of resource to retrieve
public Visualizer getWindow(java.awt.event.ActionEvent e)
e
- action event to find window
public void noCurrentDocument(java.awt.Frame win)
win
- frame to attach dialog topublic CreekDocument getDocument()
public CreekModel getModel()
public ConceptView getView()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |