Class WindowsAltFileSystemView
java.lang.Object
javax.swing.filechooser.FileSystemView
org.apache.batik.apps.svgbrowser.WindowsAltFileSystemView
Work around FileSystemView implementation bug on the Windows
platform. See:
Using JFileChooser in WebStart-deployed application
- Version:
- $Id$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNewFolder(File containingDir) creates a new folder with a default folder name.File[]getRoots()Returns all root partitians on this system.booleanisHiddenFile(File f) Returns whether a file is hidden or not.booleanReturns true if the given file is a root.Methods inherited from class FileSystemView
createFileObject, createFileObject, createFileSystemRoot, getChild, getChooserComboBoxFiles, getChooserShortcutPanelFiles, getDefaultDirectory, getFiles, getFileSystemView, getHomeDirectory, getLinkLocation, getParentDirectory, getSystemDisplayName, getSystemIcon, getSystemIcon, getSystemTypeDescription, isComputerNode, isDrive, isFileSystem, isFileSystemRoot, isFloppyDrive, isLink, isParent, isTraversable
-
Field Details
-
EXCEPTION_CONTAINING_DIR_NULL
- See Also:
-
EXCEPTION_DIRECTORY_ALREADY_EXISTS
- See Also:
-
NEW_FOLDER_NAME
- See Also:
-
FLOPPY_DRIVE
- See Also:
-
-
Constructor Details
-
WindowsAltFileSystemView
WindowsAltFileSystemView()
-
-
Method Details
-
isRoot
Returns true if the given file is a root.- Overrides:
isRootin classFileSystemView
-
createNewFolder
creates a new folder with a default folder name.- Specified by:
createNewFolderin classFileSystemView- Throws:
IOException
-
isHiddenFile
Returns whether a file is hidden or not. On Windows there is currently no way to get this information from io.File, therefore always return false.- Overrides:
isHiddenFilein classFileSystemView
-
getRoots
Returns all root partitians on this system. On Windows, this will be the A: through Z: drives.- Overrides:
getRootsin classFileSystemView
-