|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject org.openide.filesystems.FileEvent org.openide.filesystems.FileAttributeEvent
Event used to listen on filesystem attribute changes.
Field Summary |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
FileAttributeEvent(FileObject src,
FileObject file,
String name,
Object oldValue,
Object newValue)
Creates new FileAttributeEvent . |
|
FileAttributeEvent(FileObject src,
FileObject file,
String name,
Object oldValue,
Object newValue,
boolean expected)
Creates new FileAttributeEvent . |
|
FileAttributeEvent(FileObject src,
String name,
Object oldValue,
Object newValue)
Creates new FileAttributeEvent . |
Method Summary | |
String |
getName()
Gets the name of the attribute. |
Object |
getNewValue()
Gets the new value of the attribute. |
Object |
getOldValue()
Gets the old value of the attribute. |
Methods inherited from class org.openide.filesystems.FileEvent |
firedFrom, getFile, getTime, isExpected, toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FileAttributeEvent(FileObject src, String name, Object oldValue, Object newValue)
FileAttributeEvent
. The FileObject
where the action occurred
is assumed to be the same as the source object.
src
- source file which sent this eventname
- name of attribute, or null
(since 1.33 only) if any attributes may have changedoldValue
- old value of attribute, or null
if the name isnewValue
- new value of attribute, or null
if the name ispublic FileAttributeEvent(FileObject src, FileObject file, String name, Object oldValue, Object newValue)
FileAttributeEvent
.
src
- source file which sent this eventfile
- file object where the action occurredname
- name of attribute, or null
(since 1.33 only) if any attributes may have changedoldValue
- old value of attribute, or null
if the name isnewValue
- new value of attribute, or null
if the name ispublic FileAttributeEvent(FileObject src, FileObject file, String name, Object oldValue, Object newValue, boolean expected)
FileAttributeEvent
.
src
- source file which sent this eventfile
- file object where the action occurredname
- name of attribute, or null
(since 1.33 only) if any attributes may have changedoldValue
- old value of attribute, or null
if the name isnewValue
- new value of attribute, or null
if the name isexpected
- sets flag whether the value was expectedMethod Detail |
public String getName()
null
(since 1.33 only) if an unknown attribute changedpublic Object getOldValue()
null
if the name ispublic Object getNewValue()
null
if the name is
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |