gistoolkit.application.command
Class OpenConfigurationCommand

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

public class OpenConfigurationCommand
extends SimpleCommand

Reads the configuration information from disk, and sets up the user interface with the information found there.

Version:
Author:
ithaqua
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
OpenConfigurationCommand()
          Creates new OpenConfigurationCommand
OpenConfigurationCommand(GISEditor inEditor)
          Construct a simple command with this editor.
 
Method Summary
 void execute()
          Execute is called when the button is pressed.
 
Methods inherited from class gistoolkit.application.command.SimpleCommand
actionPerformed, executeAlternate, executeDraw, 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

OpenConfigurationCommand

public OpenConfigurationCommand()
Creates new OpenConfigurationCommand


OpenConfigurationCommand

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

Method Detail

execute

public void execute()
Description copied from class: SimpleCommand
Execute is called when the button is pressed. When the button is pressed, this method is executed. Typically, it will change the state of the application by setting a draw model, or updating the selected objects or something. If it sets a draw model, it will usually set itself as the target of the drawmodel, so executeDraw will be called when the drawmodel has completed it's task.

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