fr.ifremer.isisfish.ui.script.action
Class BackupAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by fr.ifremer.isisfish.ui.util.IsisAction
          extended by fr.ifremer.isisfish.ui.script.action.BackupAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

Deprecated. C'est pas evident de faire des Actions swing avec jaxx

public class BackupAction
extends IsisAction

Make a backup directory containing a set a specific files.

Version:
$Revision: 3124 $ Last update : $Date: 2010-11-29 19:14:09 +0100 (lun., 29 nov. 2010) $ By : $Author: chatellier $
Author:
bpoussin
See Also:
Serialized Form

Field Summary
protected  File dst
          Deprecated. Backup root directory.
protected  List<String> paths
          Deprecated. List of relative path of files to backup.
protected  File src
          Deprecated. Source root directory.
 
Fields inherited from class fr.ifremer.isisfish.ui.util.IsisAction
dialog, used
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
BackupAction(File src, File dst, List<String> paths)
          Deprecated. Constructor.
 
Method Summary
protected  void backup(File src, String path, String suffix)
          Deprecated. Copy a single file to destination directory.
protected  void perform(ActionEvent e)
          Deprecated. perform safelly action after IsisAction.prepare() was invoked This method is only called if used was true
protected  boolean prepare()
          Deprecated. Prepare data for action, and find out if there is really something to do here.
 
Methods inherited from class fr.ifremer.isisfish.ui.util.IsisAction
actionPerformed, finish, isUsed, needDispose
 
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
 

Field Detail

src

protected File src
Deprecated. 
Source root directory.


dst

protected File dst
Deprecated. 
Backup root directory.


paths

protected List<String> paths
Deprecated. 
List of relative path of files to backup.

Constructor Detail

BackupAction

public BackupAction(File src,
                    File dst,
                    List<String> paths)
Deprecated. 
Constructor.

Parameters:
src - source root directory
dst - backup root directory
paths - list of relative path of files to backup
Method Detail

prepare

protected boolean prepare()
Deprecated. 
Description copied from class: IsisAction
Prepare data for action, and find out if there is really something to do here.

Specified by:
prepare in class IsisAction
Returns:
true if there is something to do here, false otherwise

perform

protected void perform(ActionEvent e)
Deprecated. 
Description copied from class: IsisAction
perform safelly action after IsisAction.prepare() was invoked This method is only called if used was true

Specified by:
perform in class IsisAction
Parameters:
e - event source

backup

protected void backup(File src,
                      String path,
                      String suffix)
               throws IOException
Deprecated. 
Copy a single file to destination directory.

Parameters:
src - file to copy
path - path of file to copy
suffix - file suffix
Throws:
IOException - if copy fail


Copyright © 1999-2011 CodeLutin. All Rights Reserved.