|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.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.
| 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 Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
File root
File[] roots
| Constructor Detail |
|---|
public SingleRootFileSystemView(File root)
| Method Detail |
|---|
de public public File createNewFolder(File containingDir)
de public public File getDefaultDirectory()
de public public File getHomeDirectory()
de public public File[] getRoots()
Groovy Documentation