FileSystemEvent Class

com.bea.ide.filesystem
FileSystemEvent Class

public class FileSystemEvent

    extends ChangeEvent

This class represents an event on a file or directory in the file system. The getSource() method will return a URI representing the file/folder that is the source of the event.


Hierarchy
Object
  EventObject
    ChangeEvent
      FileSystemEvent
All Implemented Interfaces

Serializable

Field Summary

public static final int
FILE_CHANGED
Signifies the file's content was changed, or the modification date was changed.
public static final int
FILE_DELETED
Signifies the file has been deleted from the system.
public static final int
FILE_NEW
Signifies the file is new.
public static final int
FILE_WRITABLE_CHANGED
Signifies the file's writable status was changed.
   
Fields from  java.util.EventObject
source
 

Constructor Summary

FileSystemEvent(URI target, int changeType, Object state, long ts)

 

Method Summary

public int
getChangeType()
Returns the change type this event represents.
public Object
getState()
public long
getTimestamp()
public String
toString()
 
Methods from  java.util.EventObject
getSource,
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Field Detail

FILE_CHANGED

public static final int FILE_CHANGED
Signifies the file's content was changed, or the modification date was changed.


FILE_DELETED

public static final int FILE_DELETED
Signifies the file has been deleted from the system.


FILE_NEW

public static final int FILE_NEW
Signifies the file is new.


FILE_WRITABLE_CHANGED

public static final int FILE_WRITABLE_CHANGED
Signifies the file's writable status was changed.

 

Constructor Detail

FileSystemEvent

public FileSystemEvent(URI target, 
                       int changeType, 
                       Object state, 
                       long ts)
 

Method Detail

getChangeType() Method

public int getChangeType()
Returns the change type this event represents. One of the FileSystemEvent constants.


getState() Method

public Object getState()

getTimestamp() Method

public long getTimestamp()

toString() Method

public String toString()
Overrides
EventObject.toString()