public static final class FileEntry.Folder extends MultiDataObject.Entry
| Constructor and Description |
|---|
Folder(MultiDataObject obj,
FileObject fo)
Creates new FolderEntry
|
| Modifier and Type | Method and Description |
|---|---|
FileObject |
copy(FileObject f,
String suffix)
Creates new folder and copies attributes.
|
FileObject |
createFromTemplate(FileObject f,
String name)
Creates new folder and copies attributes, the template flag is cleared.
|
void |
delete()
Deletes folder associated with entry.
|
FileObject |
move(FileObject f,
String suffix)
Nearly the same like
(FileObject f, String suffix). |
FileObject |
rename(String name)
Renames folder.
|
copyRename, equals, getDataObject, getFile, hashCode, isImportant, isLocked, takeLock, writeReplacepublic Folder(MultiDataObject obj, FileObject fo)
public FileObject copy(FileObject f, String suffix) throws IOException
copy in class MultiDataObject.Entryf - the folder to create this entry insuffix - suffix appended to the new name to useFileObject or null if it cannot be copiedIOException - when the operation failspublic FileObject move(FileObject f, String suffix) throws IOException
(FileObject f, String suffix).move in class MultiDataObject.Entryf - the folder to move this entry tosuffix - suffix appended to the new name to useFileObject or null if it has been deletedIOException - when the operation failspublic FileObject createFromTemplate(FileObject f, String name) throws IOException
createFromTemplate in class MultiDataObject.Entryf - the folder to create this entry inname - the new name to useFileObject or null if it cannot be copiedIOException - when the operation failspublic FileObject rename(String name) throws IOException
rename in class MultiDataObject.Entryname - the new nameFileObject or null if it has been deletedIOException - when the operation failspublic void delete()
throws IOException
FileEntry.Folder(org.openide.loaders.MultiDataObject, org.openide.filesystems.FileObject) entry is deleted.delete in class MultiDataObject.EntryIOException - when the operation failsBuilt on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.