com.l2fprod.common.demo
Class FakeFileSystemView
java.lang.Object
javax.swing.filechooser.FileSystemView
com.l2fprod.common.demo.FakeFileSystemView
public class FakeFileSystemView
- extends javax.swing.filechooser.FileSystemView
A File System view which permits to show the DirectoryChooser even
in Java Web Start. It circumvents all security exceptions.
Methods inherited from class javax.swing.filechooser.FileSystemView |
getFileSystemView |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FakeFileSystemView
public FakeFileSystemView()
createNewFolder
public java.io.File createNewFolder(java.io.File containingDir)
- Specified by:
createNewFolder
in class javax.swing.filechooser.FileSystemView
createFileObject
public java.io.File createFileObject(java.io.File dir,
java.lang.String filename)
- Overrides:
createFileObject
in class javax.swing.filechooser.FileSystemView
createFileObject
public java.io.File createFileObject(java.lang.String path)
- Overrides:
createFileObject
in class javax.swing.filechooser.FileSystemView
createFileSystemRoot
protected java.io.File createFileSystemRoot(java.io.File f)
- Overrides:
createFileSystemRoot
in class javax.swing.filechooser.FileSystemView
getChild
public java.io.File getChild(java.io.File parent,
java.lang.String fileName)
- Overrides:
getChild
in class javax.swing.filechooser.FileSystemView
getDefaultDirectory
public java.io.File getDefaultDirectory()
- Overrides:
getDefaultDirectory
in class javax.swing.filechooser.FileSystemView
getFiles
public java.io.File[] getFiles(java.io.File dir,
boolean useFileHiding)
- Overrides:
getFiles
in class javax.swing.filechooser.FileSystemView
getHomeDirectory
public java.io.File getHomeDirectory()
- Overrides:
getHomeDirectory
in class javax.swing.filechooser.FileSystemView
getParentDirectory
public java.io.File getParentDirectory(java.io.File dir)
- Overrides:
getParentDirectory
in class javax.swing.filechooser.FileSystemView
getRoots
public java.io.File[] getRoots()
- Overrides:
getRoots
in class javax.swing.filechooser.FileSystemView
getSystemDisplayName
public java.lang.String getSystemDisplayName(java.io.File f)
- Overrides:
getSystemDisplayName
in class javax.swing.filechooser.FileSystemView
getSystemIcon
public javax.swing.Icon getSystemIcon(java.io.File f)
- Overrides:
getSystemIcon
in class javax.swing.filechooser.FileSystemView
getSystemTypeDescription
public java.lang.String getSystemTypeDescription(java.io.File f)
- Overrides:
getSystemTypeDescription
in class javax.swing.filechooser.FileSystemView
isComputerNode
public boolean isComputerNode(java.io.File dir)
- Overrides:
isComputerNode
in class javax.swing.filechooser.FileSystemView
isDrive
public boolean isDrive(java.io.File dir)
- Overrides:
isDrive
in class javax.swing.filechooser.FileSystemView
isFileSystem
public boolean isFileSystem(java.io.File f)
- Overrides:
isFileSystem
in class javax.swing.filechooser.FileSystemView
isFileSystemRoot
public boolean isFileSystemRoot(java.io.File dir)
- Overrides:
isFileSystemRoot
in class javax.swing.filechooser.FileSystemView
isFloppyDrive
public boolean isFloppyDrive(java.io.File dir)
- Overrides:
isFloppyDrive
in class javax.swing.filechooser.FileSystemView
isHiddenFile
public boolean isHiddenFile(java.io.File f)
- Overrides:
isHiddenFile
in class javax.swing.filechooser.FileSystemView
isParent
public boolean isParent(java.io.File folder,
java.io.File file)
- Overrides:
isParent
in class javax.swing.filechooser.FileSystemView
isRoot
public boolean isRoot(java.io.File f)
- Overrides:
isRoot
in class javax.swing.filechooser.FileSystemView
isTraversable
public java.lang.Boolean isTraversable(java.io.File f)
- Overrides:
isTraversable
in class javax.swing.filechooser.FileSystemView