com.teamdev.filewatch
Class FileEvent.Added

java.lang.Object
  extended by java.util.EventObject
      extended by com.teamdev.filewatch.FileEvent
          extended by com.teamdev.filewatch.FileEvent.Added
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
FileEvent

public static class FileEvent.Added
extends FileEvent

The event for a new file.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.teamdev.filewatch.FileEvent
FileEvent.Added, FileEvent.Changed, FileEvent.Deleted, FileEvent.Moved, FileEvent.Renamed
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FileEvent.Added(FileWatcher source, java.io.File file)
           
 
Method Summary
protected  void dispatch(FileEventsListener listener)
          Implementing events should call an appropriate method of the listener passing itself as a parameter of the corresponding listener's method.
 
Methods inherited from class com.teamdev.filewatch.FileEvent
getEventId, getFile, getNativeKind, setEventId, 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

FileEvent.Added

public FileEvent.Added(FileWatcher source,
                       java.io.File file)
Method Detail

dispatch

protected void dispatch(FileEventsListener listener)
Description copied from class: FileEvent
Implementing events should call an appropriate method of the listener passing itself as a parameter of the corresponding listener's method.

Specified by:
dispatch in class FileEvent
Parameters:
listener - a listener to notify.