org.argouml.ui.cmd
Class ActionExit

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.argouml.ui.cmd.ActionExit
All Implemented Interfaces:
Action, ActionListener, Cloneable, CommandLineInterface, EventListener, Serializable

public class ActionExit
extends AbstractAction
implements CommandLineInterface

Action to exit ArgoUML. If the project is dirty, then ask the user if he wants to save first.

See Also:
Serialized Form

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
ActionExit()
          The constructor.
 
Method Summary
 void actionPerformed(ActionEvent ae)
          Asks the ProjectBrowser to exit.
 boolean doCommand(String argument)
          Execute this action from the command line.
 
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

ActionExit

public ActionExit()
The constructor.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent ae)
Asks the ProjectBrowser to exit.

Specified by:
actionPerformed in interface ActionListener
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

doCommand

public boolean doCommand(String argument)
Execute this action from the command line.

Specified by:
doCommand in interface CommandLineInterface
Parameters:
argument - is not used.
Returns:
true if it is OK.
See Also:
CommandLineInterface.doCommand(java.lang.String)


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook