public class TaxonomyCatalogFileSystemView
extends javax.swing.filechooser.FileSystemView
Constructor and Description |
---|
TaxonomyCatalogFileSystemView(TaxonomyPackageURIResolver.TaxonomyPackage tp)
Instantiates a new taxonomy catalog file system view.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
createFileObject(java.io.File dir,
java.lang.String filename)
Creates the file object.
|
java.io.File |
createNewFolder(java.io.File containingDir)
Creates the new folder.
|
java.io.File |
getChild(java.io.File dir,
java.lang.String filename)
Gets the child.
|
java.io.File |
getDefaultDirectory()
Gets the default directory.
|
java.io.File[] |
getFiles(java.io.File dir,
boolean useFileHiding)
Gets the files.
|
java.io.File |
getHomeDirectory()
Gets the home directory.
|
java.io.File |
getParentDirectory(java.io.File dir)
Gets the parent directory.
|
java.io.File[] |
getRoots()
Gets the roots.
|
java.lang.String |
getSystemDisplayName(java.io.File f)
Gets the system display name.
|
boolean |
isFileSystem(java.io.File f)
Checks if is file system.
|
boolean |
isFileSystemRoot(java.io.File dir)
Checks if is file system root.
|
boolean |
isFloppyDrive(java.io.File dir)
Checks if is floppy drive.
|
boolean |
isRoot(java.io.File f)
Checks if is root.
|
java.lang.Boolean |
isTraversable(java.io.File f)
Checks if is traversable.
|
public TaxonomyCatalogFileSystemView(TaxonomyPackageURIResolver.TaxonomyPackage tp)
tp
- the tppublic java.io.File createNewFolder(java.io.File containingDir) throws java.io.IOException
createNewFolder
in class javax.swing.filechooser.FileSystemView
containingDir
- the containing dirjava.io.IOException
- Signals that an I/O exception has occurred.public java.io.File[] getRoots()
getRoots
in class javax.swing.filechooser.FileSystemView
public java.io.File getHomeDirectory()
getHomeDirectory
in class javax.swing.filechooser.FileSystemView
public java.io.File getDefaultDirectory()
getDefaultDirectory
in class javax.swing.filechooser.FileSystemView
public boolean isFileSystem(java.io.File f)
isFileSystem
in class javax.swing.filechooser.FileSystemView
f
- the fpublic boolean isFileSystemRoot(java.io.File dir)
isFileSystemRoot
in class javax.swing.filechooser.FileSystemView
dir
- the dirpublic boolean isFloppyDrive(java.io.File dir)
isFloppyDrive
in class javax.swing.filechooser.FileSystemView
dir
- the dirpublic boolean isRoot(java.io.File f)
isRoot
in class javax.swing.filechooser.FileSystemView
f
- the fpublic java.io.File createFileObject(java.io.File dir, java.lang.String filename)
createFileObject
in class javax.swing.filechooser.FileSystemView
dir
- the dirfilename
- the filenamepublic java.io.File getChild(java.io.File dir, java.lang.String filename)
getChild
in class javax.swing.filechooser.FileSystemView
dir
- the dirfilename
- the filenamepublic java.lang.String getSystemDisplayName(java.io.File f)
getSystemDisplayName
in class javax.swing.filechooser.FileSystemView
f
- the fpublic java.io.File getParentDirectory(java.io.File dir)
getParentDirectory
in class javax.swing.filechooser.FileSystemView
dir
- the dirpublic java.io.File[] getFiles(java.io.File dir, boolean useFileHiding)
getFiles
in class javax.swing.filechooser.FileSystemView
dir
- the diruseFileHiding
- the use file hidingpublic java.lang.Boolean isTraversable(java.io.File f)
isTraversable
in class javax.swing.filechooser.FileSystemView
f
- the fCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa