filelistenerevent.java

来自「jConfig,JAVA读取XML的开源项目」· Java 代码 · 共 47 行

JAVA
47
字号
/*
 * $Id: FileListenerEvent.java,v 1.2 2003/04/16 20:27:25 terrydye Exp $
 *
 * FileListenerEvent.java
 *
 * Created on 26. Juni 2002, 12:01
 */

package org.jconfig.event;

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;

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

    /**
     * Return the File that triggered this event.
     */
    public File getFile() {
        return this.file;
    }
}

/**
 * $Log: FileListenerEvent.java,v $
 * Revision 1.2  2003/04/16 20:27:25  terrydye
 * merge from private cvs repository
 *
 * Revision 1.1  2002/06/26 16:12:43  Terry.Dye
 * Created
 *
 */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?