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
 
 
| 
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. | 
 
 
 
 
 
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 eventname - name of attributeoldValue - old value of attributenewValue - 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 eventfile - file object where the action occurredname - name of attributeoldValue - old value of attributenewValue - 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 eventfile - file object where the action occurredname - name of attributeoldValue - old value of attributenewValue - new value of attributeexpected - sets flag whether the value was expected
 
 
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.