|
Quaqua 5.4.1 2009-07-14 | ||||||||
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
public abstract class QuaquaFileSystemView
QuaquaFileSystemView is an enhanced FileSystemView, which provides additional information about a file system required for Aqua file choosers. QuaquaFileSystemView acts as a wrapper on platform specific file system views. The resulting view is an Aqua-style view on the file system.
Field Summary |
---|
Fields inherited from class ch.randelshofer.quaqua.filechooser.FileSystemViewFilter |
---|
target |
Constructor Summary | |
---|---|
QuaquaFileSystemView()
Creates a new instance. |
Method Summary | |
---|---|
javax.swing.filechooser.FileView |
createFileView(javax.swing.JFileChooser chooser)
Creates a system specific file view for the specified JFileChooser. |
abstract java.io.File |
getComputer()
Returns the file that represents this computer node. |
static QuaquaFileSystemView |
getQuaquaFileSystemView()
Returns a FileSystemView that can be cast into QuaquaFileSystemView. |
java.lang.String |
getSystemDisplayName(java.io.File f)
Name of a file, directory, or folder as it would be displayed in a system file browser. |
javax.swing.Icon |
getSystemIcon(java.io.File f)
Icon for a file, directory, or folder as it would be displayed in a system file browser. |
java.lang.String |
getSystemTypeDescription(java.io.File f)
Type description for a file, directory, or folder as it would be displayed in a system file browser. |
abstract java.io.File |
getSystemVolume()
Returns the file that represents the system (boot) volume of this computer. |
java.lang.Boolean |
isTraversable(java.io.File f)
Returns true if the file (directory) can be visited. |
static void |
setQuaquaFileSystemView(QuaquaFileSystemView newValue)
Sets the QuaquaFileSystemView. |
Methods inherited from class ch.randelshofer.quaqua.filechooser.FileSystemViewFilter |
---|
createFileObject, createFileObject, createNewFolder, getChild, getDefaultDirectory, getFiles, getHomeDirectory, getParentDirectory, getRoots, isComputerNode, isDrive, isFileSystem, isFileSystemRoot, isFloppyDrive, isHiddenFile, isParent, isRoot |
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 QuaquaFileSystemView()
Method Detail |
---|
public abstract java.io.File getComputer()
public abstract java.io.File getSystemVolume()
public javax.swing.filechooser.FileView createFileView(javax.swing.JFileChooser chooser)
public static QuaquaFileSystemView getQuaquaFileSystemView()
public static void setQuaquaFileSystemView(QuaquaFileSystemView newValue)
public javax.swing.Icon getSystemIcon(java.io.File f)
getSystemIcon
in class FileSystemViewFilter
f
- a File
object
JFileChooser.getIcon(java.io.File)
public java.lang.String getSystemTypeDescription(java.io.File f)
getSystemTypeDescription
in class FileSystemViewFilter
f
- a File
object
JFileChooser.getTypeDescription(java.io.File)
public java.lang.Boolean isTraversable(java.io.File f)
isTraversable
in class FileSystemViewFilter
f
- the File
true
if the file/directory can be traversed, otherwise false
JFileChooser.isTraversable(java.io.File)
,
FileView.isTraversable(java.io.File)
public java.lang.String getSystemDisplayName(java.io.File f)
getSystemDisplayName
in class FileSystemViewFilter
f
- a File
object
JFileChooser.getName(java.io.File)
|
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 |