databionics.esom.util.actions
Class SaveFileAction

java.lang.Object
  extended by databionics.esom.util.actions.FileAction
      extended by databionics.esom.util.actions.SaveFileAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Direct Known Subclasses:
AbstractSaveAction, SaveBMFileAction, SaveImxFileAction, SaveLrnFileAction, SaveNamesFileAction, SavePicturesAction, SavePngFileAction, SaveUmxFileAction

public abstract class SaveFileAction
extends FileAction
implements java.awt.event.ActionListener

Show a dialog to save a file of the specific filetype. Actual saving is delegated to subclasses with abstract method save().


Field Summary
protected static org.apache.log4j.Logger log
          log4j logging
 
Fields inherited from class databionics.esom.util.actions.FileAction
myFileType
 
Constructor Summary
SaveFileAction(FileType type)
          Constructor with file tpye
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Ask for a filename by dialog
abstract  void save(java.lang.String filename)
          Really save the file in subclasses.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
log4j logging

Constructor Detail

SaveFileAction

public SaveFileAction(FileType type)
Constructor with file tpye

Parameters:
type - the specific FileType
Method Detail

save

public abstract void save(java.lang.String filename)
Really save the file in subclasses.


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Ask for a filename by dialog

Specified by:
actionPerformed in interface java.awt.event.ActionListener


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.