|
|||||||||||
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.Numb
Simple file entry variant. It does nearly nothing. When a file is copied, it does nothing. If it is moved or renamed it deletes the file.
Useful for representing useless files.
Constructor Summary | |
FileEntry.Numb(MultiDataObject obj,
FileObject fo)
Create a dummy entry. |
Method Summary | |
FileObject |
copy(FileObject f,
String suffix)
Does nothing. |
FileObject |
createFromTemplate(FileObject f,
String name)
Does nothing. |
void |
delete()
Removes file. |
boolean |
isImportant()
Is not important at all. |
FileObject |
move(FileObject f,
String suffix)
Removes file. |
FileObject |
rename(String name)
Removes file. |
Methods inherited from class org.openide.loaders.MultiDataObject.Entry |
equals, getDataObject, getFile, hashCode, isLocked, takeLock, writeReplace |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileEntry.Numb(MultiDataObject obj, FileObject fo)
obj
- the data object this entry belongs tofo
- the file object to create an entry forMethod Detail |
public boolean isImportant()
isImportant
in class MultiDataObject.Entry
public FileObject copy(FileObject f, String suffix)
copy
in class MultiDataObject.Entry
f
- ignoredsuffix
- ignored
null
public FileObject rename(String name) throws IOException
rename
in class MultiDataObject.Entry
name
- ignored
null
IOException
- in case of problempublic FileObject move(FileObject f, String suffix) throws IOException
move
in class MultiDataObject.Entry
f
- ignoredsuffix
- ignored
null
IOException
- in case of problempublic void delete() throws IOException
delete
in class MultiDataObject.Entry
IOException
- in case of problempublic FileObject createFromTemplate(FileObject f, String name)
createFromTemplate
in class MultiDataObject.Entry
f
- ignoredname
- ignored
null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |