KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openide > filesystems > FileChangeAdapter


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 package org.openide.filesystems;
20
21
22 /** Adapter for changes in <code>FileObject</code>s. Can be attached to any {@link FileObject}.
23 *
24 * @see FileChangeListener
25 *
26 * @author Jaroslav Tulach, Petr Hamernik
27 * @version 0.15 December 14, 1997
28 */

29 public class FileChangeAdapter extends Object JavaDoc implements FileChangeListener {
30     /** Fired when a new folder is created. This action can only be
31     * listened to in folders containing the created folder up to the root of
32     * filesystem.
33     *
34     * @param fe the event describing context where action has taken place
35     */

36     public void fileFolderCreated(FileEvent fe) {
37     }
38
39     /** Fired when a new file is created. This action can only be
40     * listened in folders containing the created file up to the root of
41     * filesystem.
42     *
43     * @param fe the event describing context where action has taken place
44     */

45     public void fileDataCreated(FileEvent fe) {
46     }
47
48     /** Fired when a file is changed.
49     * @param fe the event describing context where action has taken place
50     */

51     public void fileChanged(FileEvent fe) {
52     }
53
54     /** Fired when a file is deleted.
55     * @param fe the event describing context where action has taken place
56     */

57     public void fileDeleted(FileEvent fe) {
58     }
59
60     /** Fired when a file is renamed.
61     * @param fe the event describing context where action has taken place
62     * and the original name and extension.
63     */

64     public void fileRenamed(FileRenameEvent fe) {
65     }
66
67     /** Fired when a file attribute is changed.
68     * @param fe the event describing context where action has taken place,
69     * the name of attribute and the old and new values.
70     */

71     public void fileAttributeChanged(FileAttributeEvent fe) {
72     }
73 }
74
Popular Tags