public class BackupAction extends IsisAction
| Modifier and Type | Field and Description |
|---|---|
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.
|
dialog, usedchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
BackupAction(File src,
File dst,
List<String> paths)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
actionPerformed, finish, isUsed, needDisposeaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledprotected File src
protected File dst
protected boolean prepare()
IsisActionprepare in class IsisActiontrue if there is something to do here,
false otherwiseprotected void perform(ActionEvent e)
IsisActionIsisAction.prepare() was invoked
This method is only called if used was trueperform in class IsisActione - event sourceprotected void backup(File src, String path, String suffix) throws IOException
src - file to copypath - path of file to copysuffix - file suffixIOException - if copy failCopyright © 1999–2014 CodeLutin. All rights reserved.