|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.filechooser.FileSystemView
FileSystemView is JFileChooser's gateway to the file system. Since the JDK1.1 File api doesn't allow access to such information as root partitians, file type information, or hidden file bits, this class is designed to intuit as much OS specific file system information as possible. FileSystemView will eventually delegate its responsibilities to io File classes when JDK1.X provides more direct access to file system information. Java Licenses may want to provide a different implemenation of FileSystemView to better handle a given operation system. PENDING(jeff) - need to provide a specification for how Mac/OS2/BeOS/etc file systems can modify FileSystemView to handle their particular type of file system.
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 Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |