|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.openide.loaders.MultiDataObject.Entry
|
+--org.openide.loaders.FileEntry
Entry that works with plain files. Copies, moves, renames and deletes them without any modification.
| Inner Class Summary | |
static class |
FileEntry.Folder
Simple entry for handling folders, on copy, move and createFromTemplate it creates new empty folder and copies attributes of source folder. |
static class |
FileEntry.Format
Specialized entry that simplifies substitution when a file entry is created from template. |
static class |
FileEntry.Numb
Simple file entry variant. |
| Constructor Summary | |
FileEntry(MultiDataObject obj,
FileObject fo)
Creates new file entry initially attached to a given file object. |
|
| Method Summary | |
FileObject |
copy(FileObject f,
String suffix)
Called when the entry is to be copied. |
FileObject |
createFromTemplate(FileObject f,
String name)
Called when the entry is to be created from a template. |
void |
delete()
Called when the entry is to be deleted. |
FileObject |
move(FileObject f,
String suffix)
Called when the entry is to be moved. |
FileObject |
rename(String name)
Called when the entry is to be renamed. |
| 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(MultiDataObject obj,
FileObject fo)
obj - the data object this entry belongs tofo - the file object for the entry| Method Detail |
public FileObject copy(FileObject f,
String suffix)
throws IOException
MultiDataObject.EntryFileObject,
or do nothing (if it cannot be copied).copy in class MultiDataObject.Entryorg.openide.loaders.MultiDataObject.Entryf - the folder to create this entry inname - the new name to useFileObject or null if it cannot be copiedIOException - when the operation fails
public FileObject rename(String name)
throws IOException
MultiDataObject.EntryFileObject,
or delete it (if it cannot be renamed).rename in class MultiDataObject.Entryorg.openide.loaders.MultiDataObject.Entryname - the new nameFileObject or null if it has been deletedIOException - when the operation fails
public FileObject move(FileObject f,
String suffix)
throws IOException
MultiDataObject.EntryFileObject,
or delete it (if it cannot be moved).move in class MultiDataObject.Entryorg.openide.loaders.MultiDataObject.Entryf - the folder to move this entry tosuffix - the suffix to useFileObject or null if it has been deletedIOException - when the operation fails
public void delete()
throws IOException
MultiDataObject.Entrydelete in class MultiDataObject.Entryorg.openide.loaders.MultiDataObject.EntryIOException - when the operation fails
public FileObject createFromTemplate(FileObject f,
String name)
throws IOException
MultiDataObject.EntryFileObject,
or do nothing (if it cannot be copied).createFromTemplate in class MultiDataObject.Entryorg.openide.loaders.MultiDataObject.Entryf - the folder to create this entry inname - the new name to useFileObject or null if it cannot be copiedIOException - when the operation fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||