|
org.openide.loaders 5.9.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.loaders.MultiDataObject.Entry org.openide.loaders.FileEntry.Folder
public static final class FileEntry.Folder
Simple entry for handling folders, on copy, move and createFromTemplate it creates new empty folder and copies attributes of source folder. Operation on children should be performed explicitly by DataObject using this entry.
Constructor Summary | |
---|---|
FileEntry.Folder(MultiDataObject obj,
FileObject fo)
Creates new FolderEntry |
Method Summary | |
---|---|
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. |
Methods inherited from class org.openide.loaders.MultiDataObject.Entry |
---|
equals, getDataObject, getFile, hashCode, isImportant, isLocked, takeLock, writeReplace |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileEntry.Folder(MultiDataObject obj, FileObject fo)
Method Detail |
---|
public FileObject copy(FileObject f, String suffix) throws IOException
copy
in class MultiDataObject.Entry
f
- the folder to create this entry insuffix
- suffix appended to the new name to use
FileObject
or null
if it cannot be copied
IOException
- when the operation failspublic FileObject move(FileObject f, String suffix) throws IOException
(FileObject f, String suffix)
.
move
in class MultiDataObject.Entry
f
- the folder to move this entry tosuffix
- suffix appended to the new name to use
FileObject
or null
if it has been deleted
IOException
- when the operation failspublic FileObject createFromTemplate(FileObject f, String name) throws IOException
createFromTemplate
in class MultiDataObject.Entry
f
- the folder to create this entry inname
- the new name to use
FileObject
or null
if it cannot be copied
IOException
- when the operation failspublic FileObject rename(String name) throws IOException
rename
in class MultiDataObject.Entry
name
- the new name
FileObject
or null
if it has been deleted
IOException
- 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.Entry
IOException
- when the operation fails
|
org.openide.loaders 5.9.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |