Class FileChangeAdapter
java.lang.Object
org.openide.filesystems.FileChangeAdapter
- All Implemented Interfaces:
EventListener
,FileChangeListener
Adapter for changes in
FileObject
s. Can be attached to any FileObject
.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Fired when a file attribute is changed.void
fileChanged
(FileEvent fe) Fired when a file is changed.void
Fired when a new file is created.void
fileDeleted
(FileEvent fe) Fired when a file is deleted.void
Fired when a new folder is created.void
Fired when a file is renamed.
-
Constructor Details
-
FileChangeAdapter
public FileChangeAdapter()
-
-
Method Details
-
fileFolderCreated
Fired when a new folder is created. This action can only be listened to in folders containing the created folder up to the root of filesystem.- Specified by:
fileFolderCreated
in interfaceFileChangeListener
- Parameters:
fe
- the event describing context where action has taken place
-
fileDataCreated
Fired when a new file is created. This action can only be listened in folders containing the created file up to the root of filesystem.- Specified by:
fileDataCreated
in interfaceFileChangeListener
- Parameters:
fe
- the event describing context where action has taken place
-
fileChanged
Fired when a file is changed.- Specified by:
fileChanged
in interfaceFileChangeListener
- Parameters:
fe
- the event describing context where action has taken place
-
fileDeleted
Fired when a file is deleted.- Specified by:
fileDeleted
in interfaceFileChangeListener
- Parameters:
fe
- the event describing context where action has taken place
-
fileRenamed
Fired when a file is renamed.- Specified by:
fileRenamed
in interfaceFileChangeListener
- Parameters:
fe
- the event describing context where action has taken place and the original name and extension.
-
fileAttributeChanged
Fired when a file attribute is changed.- Specified by:
fileAttributeChanged
in interfaceFileChangeListener
- Parameters:
fe
- the event describing context where action has taken place, the name of attribute and the old and new values.
-