Class RestrictDirectoryFileSystemView


  • public class RestrictDirectoryFileSystemView
    extends javax.swing.filechooser.FileSystemView
    Author:
    klausj
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RestrictDirectoryFileSystemView

        public RestrictDirectoryFileSystemView​(java.io.File[] roots)
    • Method Detail

      • createNewFolder

        public java.io.File createNewFolder​(java.io.File arg0)
                                     throws java.io.IOException
        Specified by:
        createNewFolder in class javax.swing.filechooser.FileSystemView
        Throws:
        java.io.IOException
      • getDefaultDirectory

        public java.io.File getDefaultDirectory()
        Overrides:
        getDefaultDirectory in class javax.swing.filechooser.FileSystemView
      • getHomeDirectory

        public java.io.File getHomeDirectory()
        Overrides:
        getHomeDirectory in class javax.swing.filechooser.FileSystemView
      • getRoots

        public java.io.File[] getRoots()
        Overrides:
        getRoots in class javax.swing.filechooser.FileSystemView
      • isRoot

        public boolean isRoot​(java.io.File file)
        Overrides:
        isRoot in class javax.swing.filechooser.FileSystemView