|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.uifextras.fileaccess.ExtFileSystemView
public final class ExtFileSystemView
An extended version of the Swing FileSystemView
class.
It is implemented as a singleton, that reinitializes itself each time
the look&feel changes.
TODO: Remove the LookChangeListener from unused instances.
FileSystemView
Method Summary | |
---|---|
File |
getCurrentDirectory()
Returns the current directory. |
String |
getDirectoryName(File directory)
Returns the system's display name for the specified directory. |
File[] |
getFiles(File file,
boolean useFileHiding)
Returns the File s that are shown as childs of
the specified File . |
Icon |
getIcon(File file,
boolean isSelected)
Looks up and returns an icon for the given file and selection state. |
static ExtFileSystemView |
getInstance()
Lazily creates and returns the sole instance. |
Icon |
getLeafIcon(File file)
Fetches and returns a leaf icon for the given file. |
File[] |
getRoots()
Looks up and returns an array of filesystem roots. |
boolean |
isFileSystem(File file)
Checks and returns whether the given file is backed up by the file system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ExtFileSystemView getInstance()
public File getCurrentDirectory()
public String getDirectoryName(File directory)
directory
- the directory File to be checked
public File[] getFiles(File file, boolean useFileHiding)
File
s that are shown as childs of
the specified File
. A child is either contained
in the file system, or a ShellFolder
child.
file
- the parent fileuseFileHiding
- true honors the hidden file state
public Icon getIcon(File file, boolean isSelected)
file
- the associated fileisSelected
- true if we're looking for an icon in selected state
getLeafIcon(File)
public Icon getLeafIcon(File file)
file
- the leaf file to lookup the icon for
getIcon(File, boolean)
public File[] getRoots()
public boolean isFileSystem(File file)
file
- the file to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |