Package ipsk.swing.filechooser
Class RestrictDirectoryFileSystemView
- java.lang.Object
-
- javax.swing.filechooser.FileSystemView
-
- ipsk.swing.filechooser.RestrictDirectoryFileSystemView
-
public class RestrictDirectoryFileSystemView extends javax.swing.filechooser.FileSystemView
- Author:
- klausj
-
-
Constructor Summary
Constructors Constructor Description RestrictDirectoryFileSystemView(java.io.File[] roots)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
createNewFolder(java.io.File arg0)
java.io.File
getDefaultDirectory()
java.io.File
getHomeDirectory()
java.io.File[]
getRoots()
boolean
isRoot(java.io.File file)
-
Methods inherited from class javax.swing.filechooser.FileSystemView
createFileObject, createFileObject, createFileSystemRoot, getChild, getChooserComboBoxFiles, getFiles, getFileSystemView, getLinkLocation, getParentDirectory, getSystemDisplayName, getSystemIcon, getSystemTypeDescription, isComputerNode, isDrive, isFileSystem, isFileSystemRoot, isFloppyDrive, isHiddenFile, isLink, isParent, isTraversable
-
-
-
-
Method Detail
-
createNewFolder
public java.io.File createNewFolder(java.io.File arg0) throws java.io.IOException
- Specified by:
createNewFolder
in classjavax.swing.filechooser.FileSystemView
- Throws:
java.io.IOException
-
getDefaultDirectory
public java.io.File getDefaultDirectory()
- Overrides:
getDefaultDirectory
in classjavax.swing.filechooser.FileSystemView
-
getHomeDirectory
public java.io.File getHomeDirectory()
- Overrides:
getHomeDirectory
in classjavax.swing.filechooser.FileSystemView
-
getRoots
public java.io.File[] getRoots()
- Overrides:
getRoots
in classjavax.swing.filechooser.FileSystemView
-
isRoot
public boolean isRoot(java.io.File file)
- Overrides:
isRoot
in classjavax.swing.filechooser.FileSystemView
-
-