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

pack-priv Class UnixFileSystemView

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

extends FileSystemView
Class Inheritance

FileSystemView that handles some specific unix-isms.

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
createNewFolder(File containingDir)

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

Creates a new folder with a default folder name.

public boolean
isComputerNode(File dir)

Overrides javax.swing.filechooser.FileSystemView.isComputerNode.

Used by UI classes to decide whether to display a special icon for a computer node, e.g. "My Computer" or a network server.

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
isFileSystemRoot(File dir)

Overrides javax.swing.filechooser.FileSystemView.isFileSystemRoot.

Is dir the root of a tree in the file system, such as a drive or partition.

public boolean
isFloppyDrive(File dir)

Overrides javax.swing.filechooser.FileSystemView.isFloppyDrive.

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

Inherited from javax.swing.filechooser.FileSystemView:
createFileObjectcreateFileObjectcreateFileSystemRootgetChildgetChooserComboBoxFilesgetChooserShortcutPanelFilesgetDefaultDirectorygetFilesgetFileSystemViewgetHomeDirectorygetLinkLocationgetParentDirectorygetRootsgetShellFoldergetSystemDisplayNamegetSystemIcongetSystemIcongetSystemTypeDescriptionisFileSystemisHiddenFileisLinkisParentisRootisTraversable

Constructor Detail

UnixFileSystemViewback to summary
pack-priv UnixFileSystemView()

Method Detail

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

isComputerNodeback to summary
public boolean isComputerNode(File dir)

Overrides javax.swing.filechooser.FileSystemView.isComputerNode.

Doc from javax.swing.filechooser.FileSystemView.isComputerNode.

Used by UI classes to decide whether to display a special icon for a computer node, e.g. "My Computer" or a network server. The default implementation has no way of knowing, so always returns false.

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.

isFileSystemRootback to summary
public boolean isFileSystemRoot(File dir)

Overrides javax.swing.filechooser.FileSystemView.isFileSystemRoot.

Doc from javax.swing.filechooser.FileSystemView.isFileSystemRoot.

Is dir the root of a tree in the file system, such as a drive or partition. Example: Returns true for "C:\" on Windows 98.

isFloppyDriveback to summary
public boolean isFloppyDrive(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.