gui
Class DatabaseSystemView

java.lang.Object
  extended by javax.swing.filechooser.FileSystemView
      extended by gui.DatabaseSystemView

public class DatabaseSystemView
extends javax.swing.filechooser.FileSystemView


Constructor Summary
DatabaseSystemView(java.io.File root)
          Extends the FileSystemView (disables navigation through directories)
 
Method Summary
 java.io.File createNewFolder(java.io.File containingDir)
          Enables the possibility for creating a new folder
 java.io.File getDefaultDirectory()
           
 java.io.File getHomeDirectory()
           
 java.io.File getParentDirectory(java.io.File dir)
          Returns the parent directory
 java.io.File[] getRoots()
           
 
Methods inherited from class javax.swing.filechooser.FileSystemView
createFileObject, createFileObject, getChild, getFiles, getFileSystemView, getSystemDisplayName, getSystemIcon, getSystemTypeDescription, isComputerNode, isDrive, isFileSystem, isFileSystemRoot, isFloppyDrive, isHiddenFile, isParent, isRoot, isTraversable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseSystemView

public DatabaseSystemView(java.io.File root)
Extends the FileSystemView (disables navigation through directories)

Parameters:
root - File
Method Detail

getParentDirectory

public java.io.File getParentDirectory(java.io.File dir)
Returns the parent directory

Overrides:
getParentDirectory in class javax.swing.filechooser.FileSystemView
Parameters:
dir - File
Returns:
Returns the file

createNewFolder

public java.io.File createNewFolder(java.io.File containingDir)
Enables the possibility for creating a new folder

Specified by:
createNewFolder in class javax.swing.filechooser.FileSystemView
Parameters:
containingDir - File
Returns:
File

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