org.apache.commons.finder
Class FindEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.apache.commons.finder.FindEvent
All Implemented Interfaces:
java.io.Serializable

public class FindEvent
extends java.util.EventObject

Event upon which notification is made to a FindListener. It contains references to the Finder and the Directory in which the event occured. Depending on the particular occasion, it may also contain a set of files or a file.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FindEvent(Finder finder, java.lang.String type, java.io.File directory)
           
FindEvent(Finder finder, java.lang.String type, java.io.File directory, java.io.File file)
           
FindEvent(Finder finder, java.lang.String type, java.io.File directory, java.io.File[] files)
           
 
Method Summary
 java.io.File getDirectory()
           
 java.io.File getFile()
          File found.
 java.io.File[] getFiles()
          Files found in a directory.
 Finder getFinder()
           
 java.lang.String getType()
           
 java.lang.String 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

FindEvent

public FindEvent(Finder finder,
                 java.lang.String type,
                 java.io.File directory)

FindEvent

public FindEvent(Finder finder,
                 java.lang.String type,
                 java.io.File directory,
                 java.io.File file)

FindEvent

public FindEvent(Finder finder,
                 java.lang.String type,
                 java.io.File directory,
                 java.io.File[] files)
Method Detail

getDirectory

public java.io.File getDirectory()

getFinder

public Finder getFinder()

getFile

public java.io.File getFile()
File found.


getFiles

public java.io.File[] getFiles()
Files found in a directory.


getType

public java.lang.String getType()

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject


Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.