|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
gistoolkit.application.command.SimpleCommand
A simple command, meant to be subclassed. Creation date: (4/24/2001 1:54:36 PM)
Nested Class Summary |
Nested classes inherited from class javax.swing.AbstractAction |
|
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 | |
SimpleCommand()
Create a new simple command. |
|
SimpleCommand(GISEditor inEditor)
SimpleCommand constructor comment. |
|
SimpleCommand(java.lang.String inName,
javax.swing.Icon inIcon,
GISEditor inEditor)
SimpleCommand constructor comment. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent actionEvent)
Respond to action events from the action interface |
void |
execute()
Execute is called when the button is pressed. |
void |
executeAlternate(DrawModel inDrawModel)
Called when the alternate path in the draw model is executed. |
void |
executeDraw(DrawModel inDrawModel)
This method is called by the draw model when it has completed it's task. |
GISDisplay |
getGISDisplay()
Return the GISDisplay to modify. |
GISEditor |
getGISEditor()
Return the GISEditor associated with this command. |
protected static javax.swing.Icon |
getIcon(java.lang.String inName)
Retrieve an Icon from the Images Directory. |
void |
removeDraw(DrawModel inDrawModel)
called when the draw model has been removed |
void |
setGISDisplay(GISDisplay inGISDisplay)
Set the GISDisplay to reference for this command. |
void |
setGISEditor(GISEditor inEditor)
Set the GISEditor assocated with this command. |
void |
showError(java.lang.Exception e)
Show the error to the user |
void |
showInformation(java.lang.String inTitle,
java.lang.String inMessage)
Show the information message to the user |
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 |
Constructor Detail |
public SimpleCommand()
public SimpleCommand(GISEditor inEditor)
public SimpleCommand(java.lang.String inName, javax.swing.Icon inIcon, GISEditor inEditor)
Method Detail |
public void execute()
execute
in interface Command
public void executeDraw(DrawModel inDrawModel)
executeDraw
in interface Command
public void executeAlternate(DrawModel inDrawModel)
public GISDisplay getGISDisplay()
public void setGISDisplay(GISDisplay inGISDisplay)
setGISDisplay
in interface Command
public GISEditor getGISEditor()
public void removeDraw(DrawModel inDrawModel)
removeDraw
in interface Command
public void setGISEditor(GISEditor inEditor)
public void showInformation(java.lang.String inTitle, java.lang.String inMessage)
public void showError(java.lang.Exception e)
protected static javax.swing.Icon getIcon(java.lang.String inName)
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed
in interface java.awt.event.ActionListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |