|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.util.swing.DefaultFileDisplayManager
public class DefaultFileDisplayManager
This FileDisplayManager uses the same icons and naming schemes as the JFileChooser offered by swing.
Constructor Summary | |
---|---|
DefaultFileDisplayManager()
|
Method Summary | |
---|---|
Icon |
getIcon(File f)
Given a file, decide which icon to use |
String |
getName(File f)
Given a file, decide on which name to display for it |
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()
Updates the UI to reflect any changes in the fs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFileDisplayManager()
Method Detail |
---|
public Icon getIcon(File f)
getIcon
in interface DisplayManager<File>
f
- The file to base the icon decision on
public String getName(File f)
getName
in interface DisplayManager<File>
f
- The file to base the naming decison on
public FileDisplay makeFileDisplay(File f)
makeFileDisplay
in interface FileDisplayManager
f
- the file to display using the display manager
public FileDisplay makeFileDisplay(File parent, String child)
makeFileDisplay
in interface FileDisplayManager
parent
- the parent of the file to display using the display managerchild
- the name of the child such that new File(parent, child)
is the file to be displayed.
public FileDisplay makeNewFolderDisplay(File parent)
makeNewFolderDisplay
in interface FileDisplayManager
parent
- the parent folder of the new folder
public void update()
update
in interface FileDisplayManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |