|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.job.FileJob
com.mucommander.job.MkdirJob
public class MkdirJob
This FileJob creates a new file or directory.
| Field Summary |
|---|
| Fields inherited from class com.mucommander.job.FileJob |
|---|
APPEND_ACTION, APPEND_TEXT, baseSourceFolder, CANCEL_ACTION, CANCEL_TEXT, currentFile, currentFileIndex, currentFilename, files, FINISHED, INTERRUPTED, mainFrame, nbFiles, NOT_STARTED, PAUSED, progressDialog, RETRY_ACTION, RETRY_TEXT, RUNNING, SKIP_ACTION, SKIP_TEXT |
| Constructor Summary | |
|---|---|
MkdirJob(ProgressDialog progressDialog,
MainFrame mainFrame,
FileSet fileSet)
Creates a new MkdirJob which operates in 'mkdir' mode. |
|
MkdirJob(ProgressDialog progressDialog,
MainFrame mainFrame,
FileSet fileSet,
long allocateSpace)
Creates a new MkdirJob which operates in 'mkfile' mode. |
|
| Method Summary | |
|---|---|
java.lang.String |
getStatusString()
Returns a String describing what the job is currently doing. |
protected boolean |
hasFolderChanged(AbstractFile folder)
Folders only needs to be refreshed if it is the destination folder |
protected boolean |
processFile(AbstractFile file,
java.lang.Object recurseParams)
Creates the new directory in the destination folder. |
| Methods inherited from class com.mucommander.job.FileJob |
|---|
addFileJobListener, getCurrentFileIndex, getCurrentFilename, getEffectiveJobTime, getEndDate, getNbFiles, getPausedTime, getPauseStartDate, getStartDate, getState, getTotalPercentDone, interrupt, jobCompleted, jobPaused, jobResumed, jobStarted, jobStopped, nextFile, refreshTables, removeFileJobListener, run, selectFileWhenFinished, setAutoUnmark, setPaused, setState, showErrorDialog, showErrorDialog, start, waitForUserResponse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MkdirJob(ProgressDialog progressDialog,
MainFrame mainFrame,
FileSet fileSet)
public MkdirJob(ProgressDialog progressDialog,
MainFrame mainFrame,
FileSet fileSet,
long allocateSpace)
allocateSpace - number of bytes to allocate to the file, -1 for none (use AbstractFile#mkfile())| Method Detail |
|---|
protected boolean processFile(AbstractFile file,
java.lang.Object recurseParams)
processFile in class FileJobfile - the file or folder to processrecurseParams - array of parameters which can be used when calling this method recursively, contains null when called by FileJob.run()
true if the operation was sucessfulprotected boolean hasFolderChanged(AbstractFile folder)
hasFolderChanged in class FileJobfolder - the folder to test
public java.lang.String getStatusString()
FileJob
getStatusString in class FileJob
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard