Package org.apache.batik.apps.svgbrowser
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: WindowsAltFileSystemView.java 1831635 2018-05-15 13:33:47Z ssteiner $
-
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.boolean
isHiddenFile
(File f) Returns whether a file is hidden or not.boolean
Returns true if the given file is a root.Methods inherited from class javax.swing.filechooser.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:
isRoot
in classFileSystemView
-
createNewFolder
creates a new folder with a default folder name.- Specified by:
createNewFolder
in 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:
isHiddenFile
in classFileSystemView
-
getRoots
Returns all root partitians on this system. On Windows, this will be the A: through Z: drives.- Overrides:
getRoots
in classFileSystemView
-