edu.rice.cs.util.swing
Interface DisplayManager<T>

All Known Subinterfaces:
FileDisplayManager
All Known Implementing Classes:
DefaultFileDisplayManager

public interface DisplayManager<T>

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


Method Summary
 Icon getIcon(T f)
          Given a piece of data, decide which icon to use
 String getName(T f)
          Given a data, decide on which name to display for it
 

Method Detail

getIcon

Icon getIcon(T f)
Given a piece of data, decide which icon to use

Parameters:
f - The data to base the icon decision on
Returns:
The icon to display for the given data

getName

String getName(T f)
Given a data, decide on which name to display for it

Parameters:
f - The data to base the naming decison on
Returns:
The name to display for the data