public interface FileChangeListener extends EventListener
FileObject
s. Can be attached to any FileObject
.
When attached to a file it listens for file changes (due to saving from inside NetBeans) and for deletes and renames.
When attached to a folder it listens for all actions taken on this folder. These include any modifications of data files or folders, and creation of new data files or folders.
Modifier and Type | Method and Description |
---|---|
void |
fileAttributeChanged(FileAttributeEvent fe)
Fired when a file attribute is changed.
|
void |
fileChanged(FileEvent fe)
Fired when a file is changed.
|
void |
fileDataCreated(FileEvent fe)
Fired when a new file is created.
|
void |
fileDeleted(FileEvent fe)
Fired when a file is deleted.
|
void |
fileFolderCreated(FileEvent fe)
Fired when a new folder is created.
|
void |
fileRenamed(FileRenameEvent fe)
Fired when a file is renamed.
|
void fileFolderCreated(FileEvent fe)
fe
- the event describing context where action has taken placevoid fileDataCreated(FileEvent fe)
fe
- the event describing context where action has taken placevoid fileChanged(FileEvent fe)
fe
- the event describing context where action has taken placevoid fileDeleted(FileEvent fe)
fe
- the event describing context where action has taken placevoid fileRenamed(FileRenameEvent fe)
fe
- the event describing context where action has taken place
and the original name and extension.void fileAttributeChanged(FileAttributeEvent fe)
fe
- the event describing context where action has taken place,
the name of attribute and the old and new values.