edu.rice.cs.util.swing
Interface FileDisplayManager

All Superinterfaces:
DisplayManager<File>
All Known Implementing Classes:
DefaultFileDisplayManager

public interface FileDisplayManager
extends DisplayManager<File>

FileIconManagers choose the icons to use when displaying file using their icons in lists or trees.


Method Summary
 FileDisplay makeFileDisplay(File f)
          Creates a file display that displays a file as this manager specifies
 FileDisplay makeFileDisplay(File parent, String child)
          Creates a file display that displays a file as this manager specifies
 FileDisplay makeNewFolderDisplay(File parent)
          Creates a FileDisplay representing a new untitled folder that is yet to be created.
 void update()
          Notifies manager that the file system has changed.
 
Methods inherited from interface edu.rice.cs.util.swing.DisplayManager
getIcon, getName
 

Method Detail

makeFileDisplay

FileDisplay makeFileDisplay(File f)
Creates a file display that displays a file as this manager specifies

Parameters:
f - the file to display using the display manager
Returns:
the file display object used to display a file's name

makeFileDisplay

FileDisplay makeFileDisplay(File parent,
                            String child)
Creates a file display that displays a file as this manager specifies

Parameters:
parent - the parent of the file to display using the display manager
child - the name of the child such that new File(parent, child) is the file to be displayed.
Returns:
the file display object used to display a file's name

makeNewFolderDisplay

FileDisplay makeNewFolderDisplay(File parent)
Creates a FileDisplay representing a new untitled folder that is yet to be created.

Parameters:
parent - the parent location to place this new folder
Returns:
the new file display

update

void update()
Notifies manager that the file system has changed. May affect the way the manager chooses icons for the files.