Groovy Documentation

com.wordpress.tipsforjava.swing
[Java] Class SingleRootFileSystemView

java.lang.Object
  javax.swing.filechooser.FileSystemView
      com.wordpress.tipsforjava.swing.SingleRootFileSystemView

public class SingleRootFileSystemView
extends FileSystemView

A FileSystemView class that limits the file selections to a single root. When used with the JFileChooser component the user will only be able to traverse the directories contained within the specified root fill. The "Look In" combo box will only display the specified root. The "Up One Level" button will be disable when at the root.

Authors:
Rob Camick
Darryl Burke


Field Summary
File root

File[] roots

 
Constructor Summary
SingleRootFileSystemView(File root)

 
Method Summary
File createNewFolder(File containingDir)

File getDefaultDirectory()

File getHomeDirectory()

File[] getRoots()

 
Methods inherited from class FileSystemView
isRoot, getChild, getFiles, getFileSystemView, isTraversable, getSystemDisplayName, getSystemTypeDescription, getSystemIcon, isParent, isFileSystem, createNewFolder, isHiddenFile, isFileSystemRoot, isDrive, isFloppyDrive, isComputerNode, getRoots, getHomeDirectory, getDefaultDirectory, createFileObject, createFileObject, getParentDirectory, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

root

File root


roots

File[] roots


 
Constructor Detail

SingleRootFileSystemView

public SingleRootFileSystemView(File root)


 
Method Detail

createNewFolder

de
	public
public File createNewFolder(File containingDir)


getDefaultDirectory

de
	public
public File getDefaultDirectory()


getHomeDirectory

de
	public
public File getHomeDirectory()


getRoots

de
	public
public File[] getRoots()


 

Groovy Documentation