|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.filechooser.FileSystemView
com.sun.xfilechooser.XFileSystemView
public abstract class XFileSystemView
XFileSystemView class allows the XFileChooser to provide XFile object data to the FileSystemView of the JFileChooser. This class overrides the FileSystemView provided by JFileChooser. Whenever an XFileChooser constructor is called the FileSystemView that is set would be the XFileSystemView.
| Constructor Summary | |
|---|---|
XFileSystemView()
|
|
| Method Summary | |
|---|---|
java.io.File |
createFileObject(java.io.File dir,
java.lang.String filename)
Creates a File object constructed from File obj and filename |
java.io.File |
createFileObject(java.lang.String path)
Creates a file object constructed from give pathname |
java.io.File[] |
getFiles(java.io.File dir,
boolean useFileHiding)
Returns the list of files in a directory |
static javax.swing.filechooser.FileSystemView |
getFileSystemView()
Depending on type of operating system (e.g. |
java.io.File |
getHomeDirectory()
Returns the user's home directory |
java.io.File |
getParentDirectory(java.io.File dir)
Returns the parent directory of specified directory/file object |
boolean |
isRoot(java.io.File f)
Returns true if the given file object is root. |
| Methods inherited from class javax.swing.filechooser.FileSystemView |
|---|
createFileSystemRoot, createNewFolder, getChild, getDefaultDirectory, getRoots, getSystemDisplayName, getSystemIcon, getSystemTypeDescription, isComputerNode, isDrive, isFileSystem, isFileSystemRoot, isFloppyDrive, isHiddenFile, isParent, isTraversable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XFileSystemView()
| Method Detail |
|---|
public static javax.swing.filechooser.FileSystemView getFileSystemView()
public java.io.File createFileObject(java.io.File dir,
java.lang.String filename)
createFileObject in class javax.swing.filechooser.FileSystemViewdir - file object of directoryfilename - name of file in directory
public java.io.File createFileObject(java.lang.String path)
createFileObject in class javax.swing.filechooser.FileSystemView
public java.io.File[] getFiles(java.io.File dir,
boolean useFileHiding)
getFiles in class javax.swing.filechooser.FileSystemViewdir - directoryuseFileHiding - flag to indicate to either show files hidden or not.
public java.io.File getHomeDirectory()
getHomeDirectory in class javax.swing.filechooser.FileSystemViewpublic java.io.File getParentDirectory(java.io.File dir)
getParentDirectory in class javax.swing.filechooser.FileSystemViewdir - directory
public boolean isRoot(java.io.File f)
isRoot in class javax.swing.filechooser.FileSystemViewf - file object to check if root
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||