org.openide.filesystems
Class FileAttributeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.openide.filesystems.FileEvent
              |
              +--org.openide.filesystems.FileAttributeEvent
All Implemented Interfaces:
Serializable

public class FileAttributeEvent
extends FileEvent

Event used to listen on file system attribute changes.

See Also:
Serialized Form

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

FileAttributeEvent

public FileAttributeEvent(FileObject src,
                          String name,
                          Object oldValue,
                          Object newValue)
Creates new FileAttributeEvent. The FileObject where the action occurred is assumed to be the same as the source object.
Parameters:
src - source file which sent this event
name - name of attribute
oldValue - old value of attribute
newValue - new value of attribute

FileAttributeEvent

public FileAttributeEvent(FileObject src,
                          FileObject file,
                          String name,
                          Object oldValue,
                          Object newValue)
Creates new FileAttributeEvent.
Parameters:
src - source file which sent this event
file - file object where the action occurred
name - name of attribute
oldValue - old value of attribute
newValue - new value of attribute

FileAttributeEvent

public FileAttributeEvent(FileObject src,
                          FileObject file,
                          String name,
                          Object oldValue,
                          Object newValue,
                          boolean expected)
Creates new FileAttributeEvent.
Parameters:
src - source file which sent this event
file - file object where the action occurred
name - name of attribute
oldValue - old value of attribute
newValue - new value of attribute
expected - sets flag whether the value was expected
Method Detail

getName

public String getName()
Gets the name of the attribute.
Returns:
Name of the attribute.

getOldValue

public Object getOldValue()
Gets the old value of the attribute.
Returns:
Old value of the attribute.

getNewValue

public Object getNewValue()
Gets the new value of the attribute.
Returns:
New value of the attribute.


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.