org.argouml.uml.ui
Class ActionSaveProject

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.argouml.uml.ui.ActionSaveProject
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable
Direct Known Subclasses:
ActionSaveProjectAs

public class ActionSaveProject
extends AbstractAction

Action that saves the project.

See Also:
ActionOpenProject, 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
  ActionSaveProject()
          The constructor.
protected ActionSaveProject(String name, Icon icon)
          The constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void setEnabled(boolean enabled)
          Set the enabled state of the save action.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionSaveProject

public ActionSaveProject()
The constructor.


ActionSaveProject

protected ActionSaveProject(String name,
                            Icon icon)
The constructor.

Parameters:
name - the name of the action.
icon - the icon to represent this action graphically.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

setEnabled

public void setEnabled(boolean enabled)
Set the enabled state of the save action. When we become enabled inform the user by highlighting the title bar with an asterisk.

Parameters:
enabled - new state for save command


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook