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

Field Summary
 
Fields inherited from interface com.mucommander.file.util.FileMonitorConstants
ALL_ATTRIBUTES, DATE_ATTRIBUTE, DEFAULT_ATTRIBUTES, DEFAULT_POLL_PERIOD, EXISTS_ATTRIBUTE, IS_DIRECTORY_ATTRIBUTE, PERMISSIONS_ATTRIBUTE, SIZE_ATTRIBUTE
 
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.
 

Method Detail

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 detected
changedAttributes - 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