|
Quaqua 7.4.2 2011-07-05 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileSystemView
ch.randelshofer.quaqua.filechooser.FileSystemViewFilter
ch.randelshofer.quaqua.filechooser.QuaquaFileSystemView
ch.randelshofer.quaqua.leopard.filechooser.OSXLeopardFileSystemView
public class OSXLeopardFileSystemView
OSXLeopardFileSystemView.
Field Summary |
---|
Fields inherited from class ch.randelshofer.quaqua.filechooser.FileSystemViewFilter |
---|
target |
Constructor Summary | |
---|---|
OSXLeopardFileSystemView()
|
Method Summary | |
---|---|
java.io.File |
getChild(java.io.File parent,
java.lang.String fileName)
|
java.io.File |
getComputer()
Returns the file that represents this computer node. |
java.io.File |
getDefaultDirectory()
Return the user's default starting directory for the file chooser. |
java.io.File |
getHomeDirectory()
|
java.io.File |
getParentDirectory(java.io.File dir)
Returns the parent directory of dir. |
java.io.File[] |
getRoots()
Returns all root partitians on this system. |
java.io.File |
getSystemVolume()
Returns the file that represents the system (boot) volume of this computer. |
boolean |
isFileSystemRoot(java.io.File dir)
Is dir the root of a tree in the file system, such as a drive or partition. |
boolean |
isHiddenFile(java.io.File f)
Returns whether a file is hidden or not. |
boolean |
isParent(java.io.File folder,
java.io.File file)
On Windows, a file can appear in multiple folders, other than its parent directory in the filesystem. |
boolean |
isRoot(java.io.File aFile)
Determines if the given file is a root partition or drive. |
Methods inherited from class ch.randelshofer.quaqua.filechooser.QuaquaFileSystemView |
---|
createFileView, getQuaquaFileSystemView, getSystemDisplayName, getSystemIcon, getSystemTypeDescription, isTraversable, setQuaquaFileSystemView |
Methods inherited from class ch.randelshofer.quaqua.filechooser.FileSystemViewFilter |
---|
createFileObject, createFileObject, createNewFolder, getFiles, isComputerNode, isDrive, isFileSystem, isFloppyDrive |
Methods inherited from class javax.swing.filechooser.FileSystemView |
---|
createFileSystemRoot, getFileSystemView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OSXLeopardFileSystemView()
Method Detail |
---|
public java.io.File getSystemVolume()
QuaquaFileSystemView
getSystemVolume
in class QuaquaFileSystemView
public java.io.File getComputer()
QuaquaFileSystemView
getComputer
in class QuaquaFileSystemView
public java.io.File getParentDirectory(java.io.File dir)
getParentDirectory
in class FileSystemViewFilter
dir
- the File
being queried
dir
, or
null
if dir
is null
public java.io.File[] getRoots()
getRoots
in class FileSystemViewFilter
public boolean isHiddenFile(java.io.File f)
isHiddenFile
in class FileSystemViewFilter
public boolean isRoot(java.io.File aFile)
isRoot
in class FileSystemViewFilter
aFile
- a File
object representing a directory
true
if f
is a root in the navigatable tree.FileSystemViewFilter.isFileSystemRoot(java.io.File)
public boolean isParent(java.io.File folder, java.io.File file)
isParent
in class FileSystemViewFilter
folder
- a File
object repesenting a directory or special folderfile
- a File
object
true
if folder
is a directory or special folder and contains file
.public java.io.File getChild(java.io.File parent, java.lang.String fileName)
getChild
in class FileSystemViewFilter
parent
- a File
object repesenting a directory or special folderfileName
- a name of a file or folder which exists in parent
new
File(parent, fileName)
except when parent and child are both
special folders, in which case the File
is a wrapper containing
a ShellFolder
object.public boolean isFileSystemRoot(java.io.File dir)
isFileSystemRoot
in class FileSystemViewFilter
dir
- a File
object representing a directory
true
if f
is a root of a filesystemisRoot(java.io.File)
public java.io.File getHomeDirectory()
getHomeDirectory
in class FileSystemViewFilter
public java.io.File getDefaultDirectory()
getDefaultDirectory
in class FileSystemViewFilter
File
object representing the default
starting folder
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |