com.mucommander.file.util
Interface FileChangeListener
- All Superinterfaces:
- FileMonitorConstants
public interface FileChangeListener
- extends FileMonitorConstants
Interface to be implemented by classes that wish to be notified when changes are made to files monitored by
FileMonitor.
FileChangeListener instances must register themselves with FileMonitor using
FileMonitor.addFileChangeListener(FileChangeListener), in order for fileChanged(AbstractFile, int)
to be called whenever a file monitored by a FileMonitor has changed.
- Author:
- Maxence Bernard
- See Also:
FileMonitor
|
Method Summary |
void |
fileChanged(AbstractFile file,
int changedAttributes)
This method is called whenever a change in one or several attributes of the given file has changed. |
fileChanged
void fileChanged(AbstractFile file,
int changedAttributes)
- This method is called whenever a change in one or several attributes of the given file has changed. The
changedAttributes parameter may contain several attributes, use the binary AND operator with
FileMonitor constant attribute fields to read them.
- Parameters:
file - the AbstractFile for which an attribute change has been detectedchangedAttributes - a set of attributes that have changed, see FileMonitor constant fields for possible values
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard