databionics.esom.util.actions
Class LoadFileAction

java.lang.Object
  extended by databionics.esom.util.actions.FileAction
      extended by databionics.esom.util.actions.LoadFileAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Direct Known Subclasses:
AbstractLoadAction, LoadBMFileAction, LoadImxFileAction, LoadLrnFileAction, LoadNamesFileAction, LoadPicturesAction, LoadUmxFileAction, LoadWtsFileAction

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

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


Field Summary
protected static org.apache.log4j.Logger log
          log4j logging
 
Fields inherited from class databionics.esom.util.actions.FileAction
myFileType
 
Constructor Summary
LoadFileAction(FileType type)
          Constructor with file tpye
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Ask for a filename by dialog
abstract  void load(java.lang.String filename)
          Really load 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

LoadFileAction

public LoadFileAction(FileType type)
Constructor with file tpye

Parameters:
type - the specific FileType
Method Detail

load

public abstract void load(java.lang.String filename)
Really load 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.