javax.swing.filechooser
Class FileSystemView.FileSystemRoot

java.lang.Object
  extended byjava.io.File
      extended byjavax.swing.filechooser.FileSystemView.FileSystemRoot
All Implemented Interfaces:
Comparable, Serializable
Enclosing class:
FileSystemView

static class FileSystemView.FileSystemRoot
extends File


Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
FileSystemView.FileSystemRoot(File f)
           
FileSystemView.FileSystemRoot(String s)
           
 
Method Summary
 String getName()
          Returns the name of the file or directory denoted by this abstract pathname.
 boolean isDirectory()
          Tests whether the file denoted by this abstract pathname is a directory.
 
Methods inherited from class java.io.File
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getParent, getParentFile, getPath, hashCode, isAbsolute, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileSystemView.FileSystemRoot

public FileSystemView.FileSystemRoot(File f)

FileSystemView.FileSystemRoot

public FileSystemView.FileSystemRoot(String s)
Method Detail

isDirectory

public boolean isDirectory()
Description copied from class: File
Tests whether the file denoted by this abstract pathname is a directory.

Overrides:
isDirectory in class File
Returns:
true if and only if the file denoted by this abstract pathname exists and is a directory; false otherwise

getName

public String getName()
Description copied from class: File
Returns the name of the file or directory denoted by this abstract pathname. This is just the last name in the pathname's name sequence. If the pathname's name sequence is empty, then the empty string is returned.

Overrides:
getName in class File
Returns:
The name of the file or directory denoted by this abstract pathname, or the empty string if this pathname's name sequence is empty