public class FileManager extends Object
Drive
.
This class is used to implement PathChooserDialog
and also other
similar facilities.
Modifier and Type | Class and Description |
---|---|
static class |
FileManager.Op |
Modifier and Type | Field and Description |
---|---|
protected Component |
dialogParent |
protected KnownMIMETypes |
knownMIMETypes |
Constructor and Description |
---|
FileManager(Component dialogParent) |
Modifier and Type | Method and Description |
---|---|
String |
askNewDocumentName(Drive drive,
String parentPath,
String name) |
protected String |
askNewFileName(Drive drive,
String parentPath,
String name,
String prompt,
String title) |
void |
configureLockButton(AbstractButton button,
Drive drive,
FileInfo file) |
void |
configureUnlockButton(AbstractButton button,
Drive drive,
FileInfo file) |
protected boolean |
confirm(String question,
boolean[] yesToAll) |
String |
createFolder(Drive drive,
String parentPath) |
boolean |
delete(Drive drive,
String path) |
int |
delete(Drive drive,
String[] paths) |
boolean |
download(Drive drive,
FileInfo[] srcFiles,
File dstFile) |
boolean |
download(Drive drive,
FileInfo srcFile,
File dstFile) |
protected boolean |
exists(Drive drive,
String path) |
static IconResource |
getIcon(String id) |
KnownMIMETypes |
getKnownMIMETypes() |
static String |
getName(URI uri,
boolean[] hadTrailingSlash) |
static String |
getText(String id) |
protected void |
internalError(String reason) |
boolean |
lock(Drive drive,
FileInfo file) |
String |
rename(Drive drive,
String path) |
void |
setKnownMIMETypes(KnownMIMETypes knownMIMETypes) |
protected void |
showStatus(String msg) |
protected static String |
toLabel(Drive drive,
String path) |
URI[] |
transfer(FileManager.Op op,
URI[] srcFiles,
Drive drive,
String parentPath) |
boolean |
unlock(Drive drive,
FileInfo file) |
protected void |
waitCursor(boolean wait) |
protected Component dialogParent
protected KnownMIMETypes knownMIMETypes
public FileManager(Component dialogParent)
public void setKnownMIMETypes(KnownMIMETypes knownMIMETypes)
public KnownMIMETypes getKnownMIMETypes()
protected void waitCursor(boolean wait)
protected void showStatus(String msg)
protected String askNewFileName(Drive drive, String parentPath, String name, String prompt, String title)
protected void internalError(String reason)
protected boolean confirm(String question, boolean[] yesToAll)
public void configureLockButton(AbstractButton button, Drive drive, FileInfo file)
public void configureUnlockButton(AbstractButton button, Drive drive, FileInfo file)
public URI[] transfer(FileManager.Op op, URI[] srcFiles, Drive drive, String parentPath)
public static IconResource getIcon(String id)