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

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

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

public class ImportAction
extends IsisActionWithBackup

Action for import zip content into isis script directory.

Version:
$Revision$ Last update : $Date$ By : $Author$
Author:
chatellier
See Also:
Serialized Form

Field Summary
protected  FileSelectionTableModel model
          Deprecated. Model to contains new files to add from import.
protected  FileSelectionTableModel modelWithBackup
          Deprecated. Model to contains files conflicted from import.
protected  File source
          Deprecated. Location of archive to import.
 
Fields inherited from class fr.ifremer.isisfish.ui.util.IsisActionWithBackup
root
 
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
ImportAction(JDialog dialog, File source, File root, FileSelectionTableModel modelNewItems, FileSelectionTableModel modelItems)
          Deprecated. Import action constructor.
 
Method Summary
protected  List<String> getFilesToBackup()
          Deprecated. obtain the list of relative path to IsisActionWithBackup.root directory needed to be backuped in #backupRoot directory
protected  void perform(ActionEvent e)
          Deprecated. Just perform a BackupAction.
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

model

protected FileSelectionTableModel model
Deprecated. 
Model to contains new files to add from import.


modelWithBackup

protected FileSelectionTableModel modelWithBackup
Deprecated. 
Model to contains files conflicted from import.


source

protected File source
Deprecated. 
Location of archive to import.

Constructor Detail

ImportAction

public ImportAction(JDialog dialog,
                    File source,
                    File root,
                    FileSelectionTableModel modelNewItems,
                    FileSelectionTableModel modelItems)
Deprecated. 
Import action constructor.

Parameters:
dialog - dialog ???
source - zip file
root - destination directory
modelNewItems - added files model (for selection)
modelItems - conflict files model (for selection)
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: IsisActionWithBackup
Just perform a BackupAction. Need to be overridden and called by super.perform(e)

Overrides:
perform in class IsisActionWithBackup
Parameters:
e - event source

getFilesToBackup

protected List<String> getFilesToBackup()
Deprecated. 
Description copied from class: IsisActionWithBackup
obtain the list of relative path to IsisActionWithBackup.root directory needed to be backuped in #backupRoot directory

Specified by:
getFilesToBackup in class IsisActionWithBackup
Returns:
the list of relative path to files to backup


Copyright © 1999-2012 CodeLutin. All Rights Reserved.