APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.filechooser

pack-priv Class WindowsFileSystemView

Located in compilation unit of javax.swing.filechooser.FileSystemView.

extends FileSystemView
Class Inheritance

FileSystemView that handles some specific windows concepts.

Field Summary

Inherited from javax.swing.filechooser.FileSystemView:
genericFileSystemViewunixFileSystemViewwindowsFileSystemView

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public File
createFileObject(String path)

Overrides javax.swing.filechooser.FileSystemView.createFileObject.

Returns a File object constructed from the given path string.

protected File
createFileSystemRoot(File f)

Overrides javax.swing.filechooser.FileSystemView.createFileSystemRoot.

Creates a new File object for f with correct behavior for a file system root directory.

public File
createNewFolder(File containingDir)

Implements abstract javax.swing.filechooser.FileSystemView.createNewFolder.

Creates a new folder with a default folder name.

public File
getChild(File parent, String fileName)

Overrides javax.swing.filechooser.FileSystemView.getChild.

Returns a File object which is normally constructed with new File(parent, fileName) except when the parent and child are both special folders, in which case the File is a wrapper containing a ShellFolder object.

public File

Returns:

the Desktop folder.
getHomeDirectory
()

Overrides javax.swing.filechooser.FileSystemView.getHomeDirectory.

Returns the home directory.

public String
getSystemTypeDescription(File f)

Overrides javax.swing.filechooser.FileSystemView.getSystemTypeDescription.

Type description for a file, directory, or folder as it would be displayed in a system file browser.

public boolean
isDrive(File dir)

Overrides javax.swing.filechooser.FileSystemView.isDrive.

Used by UI classes to decide whether to display a special icon for drives or partitions, e.g. a "hard disk" icon.

public boolean
isFloppyDrive(final File dir)

Overrides javax.swing.filechooser.FileSystemView.isFloppyDrive.

Used by UI classes to decide whether to display a special icon for a floppy disk.

public Boolean
isTraversable(File f)

Overrides javax.swing.filechooser.FileSystemView.isTraversable.

Returns true if the file (directory) can be visited.

Inherited from javax.swing.filechooser.FileSystemView:
createFileObjectgetChooserComboBoxFilesgetChooserShortcutPanelFilesgetDefaultDirectorygetFilesgetFileSystemViewgetLinkLocationgetParentDirectorygetRootsgetShellFoldergetSystemDisplayNamegetSystemIcongetSystemIconisComputerNodeisFileSystemisFileSystemRootisHiddenFileisLinkisParentisRoot

Constructor Detail

WindowsFileSystemViewback to summary
pack-priv WindowsFileSystemView()

Method Detail

createFileObjectback to summary
public File createFileObject(String path)

Overrides javax.swing.filechooser.FileSystemView.createFileObject.

Returns a File object constructed from the given path string.

createFileSystemRootback to summary
protected File createFileSystemRoot(File f)

Overrides javax.swing.filechooser.FileSystemView.createFileSystemRoot.

Doc from javax.swing.filechooser.FileSystemView.createFileSystemRoot.

Creates a new File object for f with correct behavior for a file system root directory.

createNewFolderback to summary
public File createNewFolder(File containingDir) throws IOException

Implements abstract javax.swing.filechooser.FileSystemView.createNewFolder.

Creates a new folder with a default folder name.

Exceptions
IOException:

Doc from javax.swing.filechooser.FileSystemView.createNewFolder.

if new folder could not be created

getChildback to summary
public File getChild(File parent, String fileName)

Overrides javax.swing.filechooser.FileSystemView.getChild.

Doc from javax.swing.filechooser.FileSystemView.getChild.

Returns a File object which is normally constructed with new File(parent, fileName) except when the parent and child are both special folders, in which case the File is a wrapper containing a ShellFolder object.

getHomeDirectoryback to summary
public File getHomeDirectory()

Overrides javax.swing.filechooser.FileSystemView.getHomeDirectory.

Doc from javax.swing.filechooser.FileSystemView.getHomeDirectory.

Returns the home directory.

Returns:File

the Desktop folder.

getSystemTypeDescriptionback to summary
public String getSystemTypeDescription(File f)

Overrides javax.swing.filechooser.FileSystemView.getSystemTypeDescription.

Type description for a file, directory, or folder as it would be displayed in a system file browser. Example from Windows: the "Desktop" folder is described as "Desktop". The Windows implementation gets information from the ShellFolder class.

isDriveback to summary
public boolean isDrive(File dir)

Overrides javax.swing.filechooser.FileSystemView.isDrive.

Doc from javax.swing.filechooser.FileSystemView.isDrive.

Used by UI classes to decide whether to display a special icon for drives or partitions, e.g. a "hard disk" icon. The default implementation has no way of knowing, so always returns false.

isFloppyDriveback to summary
public boolean isFloppyDrive(final File dir)

Overrides javax.swing.filechooser.FileSystemView.isFloppyDrive.

Doc from javax.swing.filechooser.FileSystemView.isFloppyDrive.

Used by UI classes to decide whether to display a special icon for a floppy disk. Implies isDrive(dir). The default implementation has no way of knowing, so always returns false.

isTraversableback to summary
public Boolean isTraversable(File f)

Overrides javax.swing.filechooser.FileSystemView.isTraversable.

Doc from javax.swing.filechooser.FileSystemView.isTraversable.

Returns true if the file (directory) can be visited. Returns false if the directory cannot be traversed.