KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jzonic > jlo > events > FileListenerEvent


1 package org.jzonic.jlo.events;
2
3 import java.io.File JavaDoc;
4 /**
5  * The <code>FileListenerEvent</code> is the event that is delivered to
6  * anyone who who implements the DirectoryListener interface. It is a simple
7  * class to provide access to the File object when the File object changes.
8  *
9  * @author Terry R. Dye
10  */

11 public class FileListenerEvent {
12
13     private File JavaDoc file;
14     private String JavaDoc configurationName;
15     /**
16      * Creates a new instance of FileListenerEvent
17      */

18     public FileListenerEvent(File JavaDoc file,String JavaDoc configurationName) {
19         this.file = file;
20         this.configurationName = configurationName;
21     }
22
23     /**
24      * Return the File that triggered this event.
25      */

26     public File JavaDoc getFile() {
27         return this.file;
28     }
29     
30     /** Getter for property configurationName.
31      * @return Value of property configurationName.
32      *
33      */

34     public String JavaDoc getConfigurationName() {
35         return configurationName;
36     }
37     
38     /** Setter for property configurationName.
39      * @param configurationName New value of property configurationName.
40      *
41      */

42     public void setConfigurationName(String JavaDoc configurationName) {
43         this.configurationName = configurationName;
44     }
45     
46 }
47
48
Popular Tags