Whole document tree
javax.swing.filechooser
|
Constructor Summary | |
FileSystemView()
|
Method Summary | |
File |
createFileObject(File dir,
String filename)
Returns a File object constructed in dir from the given filename. |
File |
createFileObject(String path)
Returns a File object constructed from the given path string. |
abstract File |
createNewFolder(File containingDir)
creates a new folder with a default folder name. |
File[] |
getFiles(File dir,
boolean useFileHiding)
gets the list of shown (i.e. |
static FileSystemView |
getFileSystemView()
|
File |
getHomeDirectory()
|
File |
getParentDirectory(File dir)
Returns the parent directory of dir. |
abstract File[] |
getRoots()
Returns all root partitians on this system. |
abstract boolean |
isHiddenFile(File f)
Returns whether a file is hidden or not. |
abstract boolean |
isRoot(File f)
Determines if the given file is a root partition or drive. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileSystemView()
Method Detail |
public static FileSystemView getFileSystemView()
public abstract boolean isRoot(File f)
public abstract File createNewFolder(File containingDir) throws IOException
public abstract boolean isHiddenFile(File f)
public abstract File[] getRoots()
public File getHomeDirectory()
public File createFileObject(File dir, String filename)
public File createFileObject(String path)
public File[] getFiles(File dir, boolean useFileHiding)
public File getParentDirectory(File dir)
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.