gistoolkit.application.command
Class DeleteCommand

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bygistoolkit.application.command.SimpleCommand
          extended bygistoolkit.application.command.DeleteCommand
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, Command, java.util.EventListener, java.io.Serializable

public class DeleteCommand
extends SimpleCommand

Command to delete items from the display, currently only works for polygons and multi polygons. Creation date: (4/24/2001 2:17:21 PM)

See Also:
Serialized Form

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
DeleteCommand()
          SelectCommand constructor comment.
DeleteCommand(GISEditor inEditor)
          Construct a simple command with this editor.
 
Method Summary
 void execute()
          Sets the draw model in the display.
 void executeDraw(DrawModel inDrawModel)
          If there is a record selected, then delete it.
 
Methods inherited from class gistoolkit.application.command.SimpleCommand
actionPerformed, executeAlternate, getGISDisplay, getGISEditor, getIcon, removeDraw, setGISDisplay, setGISEditor, showError, showInformation
 
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

DeleteCommand

public DeleteCommand()
SelectCommand constructor comment.


DeleteCommand

public DeleteCommand(GISEditor inEditor)
Construct a simple command with this editor.

Method Detail

execute

public void execute()
Sets the draw model in the display.

Specified by:
execute in interface Command
Overrides:
execute in class SimpleCommand

executeDraw

public void executeDraw(DrawModel inDrawModel)
If there is a record selected, then delete it.

Specified by:
executeDraw in interface Command
Overrides:
executeDraw in class SimpleCommand