API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.filechooser. FileSystemView View Source
Author(s)
Jeff Dinkins
Since
Version
1.49 04/07/06
Serial
Hierarchy
 Object
      FileSystemView
Implements
Subclasses
Description
publicabstract abstract class FileSystemView
  FileSystemView is JFileChooser's gateway to the file system.
See also:   
Constructors
public FileSystemView ()
Methods
Hide/Show inherited methods
public File createFileObject (File dir, String filename)
Returns a File object constructed in dir from the given filename.
public File createFileObject (String path)
Returns a File object constructed from the given path string.
protected File createFileSystemRoot (File f)
  Creates a new File object for f with correct behavior for a file system root directory.
publicabstract File createNewFolder (File containingDir) throws IOException
Creates a new folder with a default folder name.
public File getChild (File parent, String fileName)
 
public File getDefaultDirectory ()
  Return the user's default starting directory for the file chooser.
public File getFiles (File dir, boolean useFileHiding)
  Gets the list of shown (i.e.
publicstatic FileSystemView getFileSystemView ()
public File getHomeDirectory ()
public File getParentDirectory (File dir)
  Returns the parent directory of dir.
public File getRoots ()
  Returns all root partitions on this system.
pack-private sun.awt.shell.ShellFolder getShellFolder (File f)
public String getSystemDisplayName (File f)
  Name of a file, directory, or folder as it would be displayed in a system file browser.
public Icon getSystemIcon (File f)
  Icon for a file, directory, or folder as it would be displayed in a system file browser.
public String getSystemTypeDescription (File f)
  Type description for a file, directory, or folder as it would be displayed in a system file browser.
public boolean isComputerNode (File dir)
  Used by UI classes to decide whether to display a special icon for a computer node, e.g.
public boolean isDrive (File dir)
  Used by UI classes to decide whether to display a special icon for drives or partitions, e.g.
public boolean isFileSystem (File f)
  Checks if f represents a real directory or file as opposed to a special folder such as "Desktop".
public boolean isFileSystemRoot (File dir)
  Is dir the root of a tree in the file system, such as a drive or partition.
public boolean isFloppyDrive (File dir)
  Used by UI classes to decide whether to display a special icon for a floppy disk.
public boolean isHiddenFile (File f)
Returns whether a file is hidden or not.
public boolean isParent (File folder, File file)
  On Windows, a file can appear in multiple folders, other than its parent directory in the filesystem.
public boolean isRoot (File f)
  Determines if the given file is a root in the navigatable tree(s).
public Boolean isTraversable (File f)
  Returns true if the file (directory) can be visited.
Fields
Hide/Show inherited fields
pack-privatestatic FileSystemView genericFileSystemView
pack-privatestatic FileSystemView unixFileSystemView
pack-privatestatic boolean useSystemExtensionsHiding
pack-privatestatic FileSystemView windowsFileSystemView
Nested Classes
  FileSystemView.FileSystemRoot
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar