FileListenerEvent.java :  » Development » jLo » org » jzonic » jlo » events » Java Open Source

Java Open Source » Development » jLo 
jLo » org » jzonic » jlo » events » FileListenerEvent.java
package org.jzonic.jlo.events;

import java.io.File;
/**
 * The <code>FileListenerEvent</code> is the event that is delivered to
 * anyone who who implements the DirectoryListener interface. It is a simple
 * class to provide access to the File object when the File object changes.
 *
 * @author  Terry R. Dye
 */
public class FileListenerEvent {

    private File file;
    private String configurationName;
    /**
     * Creates a new instance of FileListenerEvent
     */
    public FileListenerEvent(File file,String configurationName) {
        this.file = file;
        this.configurationName = configurationName;
    }

    /**
     * Return the File that triggered this event.
     */
    public File getFile() {
        return this.file;
    }
    
    /** Getter for property configurationName.
     * @return Value of property configurationName.
     *
     */
    public String getConfigurationName() {
        return configurationName;
    }
    
    /** Setter for property configurationName.
     * @param configurationName New value of property configurationName.
     *
     */
    public void setConfigurationName(String configurationName) {
        this.configurationName = configurationName;
    }
    
}

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.