javax.swing.filechooser

Class FileSystemView


public abstract class FileSystemView
extends Object

DOCUMENT ME!

Method Summary

File
createFileObject(File dir, String filename)
DOCUMENT ME!
File
createFileObject(String path)
DOCUMENT ME!
protected File
createFileSystemRoot(File f)
DOCUMENT ME!
File
createNewFolder(File containingDir)
DOCUMENT ME!
File
getChild(File parent, String fileName)
DOCUMENT ME!
File
getDefaultDirectory()
DOCUMENT ME!
static FileSystemView
getFileSystemView()
DOCUMENT ME!
File[]
getFiles(File dir, boolean useFileHiding)
DOCUMENT ME!
File
getHomeDirectory()
DOCUMENT ME!
File
getParentDirectory(File f)
DOCUMENT ME!
File[]
getRoots()
DOCUMENT ME!
String
getSystemDisplayName(File f)
DOCUMENT ME!
Icon
getSystemIcon(File f)
DOCUMENT ME!
String
getSystemTypeDescription(File f)
DOCUMENT ME!
boolean
isComputerNode(File dir)
DOCUMENT ME!
boolean
isDrive(File dir)
DOCUMENT ME!
boolean
isFileSystem(File f)
DOCUMENT ME!
boolean
isFileSystemRoot(File dir)
DOCUMENT ME!
boolean
isFloppyDrive(File dir)
DOCUMENT ME!
boolean
isHiddenFile(File f)
DOCUMENT ME!
boolean
isParent(File folder, File file)
DOCUMENT ME!
boolean
isRoot(File f)
DOCUMENT ME!
Boolean
isTraversable(File f)
DOCUMENT ME!

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

createFileObject

public File createFileObject(File dir,
                             String filename)
DOCUMENT ME!

Parameters:
dir - DOCUMENT ME!
filename - DOCUMENT ME!

Returns:
DOCUMENT ME!


createFileObject

public File createFileObject(String path)
DOCUMENT ME!

Parameters:
path - DOCUMENT ME!

Returns:
DOCUMENT ME!


createFileSystemRoot

protected File createFileSystemRoot(File f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!

Returns:
DOCUMENT ME!


createNewFolder

public File createNewFolder(File containingDir)
            throws IOException
DOCUMENT ME!

Parameters:
containingDir - DOCUMENT ME!

Returns:
DOCUMENT ME!

Throws:
IOException - DOCUMENT ME!


getChild

public File getChild(File parent,
                     String fileName)
DOCUMENT ME!

Parameters:
parent - DOCUMENT ME!
fileName - DOCUMENT ME!

Returns:
DOCUMENT ME!


getDefaultDirectory

public File getDefaultDirectory()
DOCUMENT ME!

Returns:
DOCUMENT ME!


getFileSystemView

public static FileSystemView getFileSystemView()
DOCUMENT ME!

Returns:
DOCUMENT ME!


getFiles

public File[] getFiles(File dir,
                       boolean useFileHiding)
DOCUMENT ME!

Parameters:
dir - DOCUMENT ME!
useFileHiding - DOCUMENT ME!

Returns:
DOCUMENT ME!


getHomeDirectory

public File getHomeDirectory()
DOCUMENT ME!

Returns:
DOCUMENT ME!


getParentDirectory

public File getParentDirectory(File f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!

Returns:
DOCUMENT ME!


getRoots

public File[] getRoots()
DOCUMENT ME!

Returns:
DOCUMENT ME!


getSystemDisplayName

public String getSystemDisplayName(File f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!

Returns:
DOCUMENT ME!


getSystemIcon

public Icon getSystemIcon(File f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!

Returns:
DOCUMENT ME!


getSystemTypeDescription

public String getSystemTypeDescription(File f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!

Returns:
DOCUMENT ME!


isComputerNode

public boolean isComputerNode(File dir)
DOCUMENT ME!

Parameters:
dir - DOCUMENT ME!

Returns:
DOCUMENT ME!


isDrive

public boolean isDrive(File dir)
DOCUMENT ME!

Parameters:
dir - DOCUMENT ME!

Returns:
DOCUMENT ME!


isFileSystem

public boolean isFileSystem(File f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!

Returns:
DOCUMENT ME!


isFileSystemRoot

public boolean isFileSystemRoot(File dir)
DOCUMENT ME!

Parameters:
dir - DOCUMENT ME!

Returns:
DOCUMENT ME!


isFloppyDrive

public boolean isFloppyDrive(File dir)
DOCUMENT ME!

Parameters:
dir - DOCUMENT ME!

Returns:
DOCUMENT ME!


isHiddenFile

public boolean isHiddenFile(File f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!

Returns:
DOCUMENT ME!


isParent

public boolean isParent(File folder,
                        File file)
DOCUMENT ME!

Parameters:
folder - DOCUMENT ME!
file - DOCUMENT ME!

Returns:
DOCUMENT ME!


isRoot

public boolean isRoot(File f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!

Returns:
DOCUMENT ME!


isTraversable

public Boolean isTraversable(File f)
DOCUMENT ME!

Parameters:
f - DOCUMENT ME!

Returns:
DOCUMENT ME!


FileSystemView.java -- Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.