net.metanotion.io.gui
Class FileSystemViewAdapter

java.lang.Object
  extended by javax.swing.filechooser.FileSystemView
      extended by net.metanotion.io.gui.FileSystemViewAdapter

public final class FileSystemViewAdapter
extends FileSystemView

Extension of FileSystemView to make a net.metanotion.io.FileSystem work with a Swing File Chooser


Constructor Summary
FileSystemViewAdapter(FileSystem fs)
           
 
Method Summary
 File createNewFolder(File containingDir)
           
 File getDefaultDirectory()
           
 File getHomeDirectory()
           
 File[] getRoots()
           
 
Methods inherited from class javax.swing.filechooser.FileSystemView
createFileObject, createFileObject, createFileSystemRoot, getChild, getFiles, getFileSystemView, getParentDirectory, getSystemDisplayName, getSystemIcon, getSystemTypeDescription, isComputerNode, isDrive, isFileSystem, isFileSystemRoot, isFloppyDrive, isHiddenFile, isParent, isRoot, isTraversable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemViewAdapter

public FileSystemViewAdapter(FileSystem fs)
Method Detail

getRoots

public File[] getRoots()
Overrides:
getRoots in class FileSystemView

createNewFolder

public File createNewFolder(File containingDir)
Specified by:
createNewFolder in class FileSystemView

getDefaultDirectory

public File getDefaultDirectory()
Overrides:
getDefaultDirectory in class FileSystemView

getHomeDirectory

public File getHomeDirectory()
Overrides:
getHomeDirectory in class FileSystemView