jcreek.cke.command
Class CloseModelAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byjcreek.cke.command.CreekAction
          extended byjcreek.cke.command.SaveModelAction
              extended byjcreek.cke.command.CloseModelAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable
Direct Known Subclasses:
ExitAction

public class CloseModelAction
extends SaveModelAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jcreek.cke.command.SaveModelAction
sd
 
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
CloseModelAction()
           
CloseModelAction(java.lang.String actionName)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Performs the save action.
protected  void closeDocuments(Visualizer win)
          Saves all the documents to disk.
protected  void finish()
           
 
Methods inherited from class jcreek.cke.command.SaveModelAction
askToSave, centerComponent, noCurrentKM, propertyChange, saveFile
 
Methods inherited from class jcreek.cke.command.CreekAction
getDocument, getModel, getString, getView, getWindow, noCurrentDocument
 
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

CloseModelAction

public CloseModelAction()

CloseModelAction

public CloseModelAction(java.lang.String actionName)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Performs the save action.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class SaveModelAction
Parameters:
event - action event

closeDocuments

protected void closeDocuments(Visualizer win)
Saves all the documents to disk. This are just temp files for a given session.The data will then be copied to the KnowledgeModel


finish

protected void finish()


Created at IDI, NTNU by the Artificial Intelligence and Learning group