|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
fr.ifremer.isisfish.ui.util.IsisAction
fr.ifremer.isisfish.ui.script.action.BackupAction
public class BackupAction
Make a backup directory containing a set a specific files.
| Field Summary | |
|---|---|
protected java.io.File |
dst
Deprecated. Backup root directory. |
protected java.util.List<java.lang.String> |
paths
Deprecated. List of relative path of files to backup. |
protected java.io.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(java.io.File src,
java.io.File dst,
java.util.List<java.lang.String> paths)
Deprecated. Constructor. |
|
| Method Summary | |
|---|---|
protected void |
backup(java.io.File src,
java.lang.String path,
java.lang.String suffix)
Deprecated. Copy a single file to destination directory. |
protected void |
perform(java.awt.event.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 |
|---|
protected java.io.File src
protected java.io.File dst
protected java.util.List<java.lang.String> paths
| Constructor Detail |
|---|
public BackupAction(java.io.File src,
java.io.File dst,
java.util.List<java.lang.String> paths)
src - source root directorydst - backup root directorypaths - list of relative path of files to backup| Method Detail |
|---|
protected boolean prepare()
IsisAction
prepare in class IsisActiontrue if there is something to do here,
false otherwiseprotected void perform(java.awt.event.ActionEvent e)
IsisActionIsisAction.prepare() was invoked
This method is only called if used was true
perform in class IsisActione - event source
protected void backup(java.io.File src,
java.lang.String path,
java.lang.String suffix)
throws java.io.IOException
src - file to copypath - path of file to copysuffix - file suffix
java.io.IOException - if copy fail
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||