|
TrueZIP 6.8.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.filechooser.FileSystemView
de.schlichtherle.io.swing.FilterFileSystemView
abstract class FilterFileSystemView
An abstract decorator which simply delegates to another instance of
FileSystemView.
Subclasses should override individual methods to implement specific
behaviour.
Note that this class does not override any methods in Object
- this should be done in subclasses.
| Field Summary | |
|---|---|
private FileSystemView |
delegate
The file system view to be decorated - never null. |
| Constructor Summary | |
|---|---|
protected |
FilterFileSystemView(FileSystemView delegate)
Creates a new decorating file system view. |
| Methods inherited from class javax.swing.filechooser.FileSystemView |
|---|
getFileSystemView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private FileSystemView delegate
null.
| Constructor Detail |
|---|
protected FilterFileSystemView(FileSystemView delegate)
delegate - The file view to be decorated - may be null.| Method Detail |
|---|
public FileSystemView getDelegate()
null.
public void setDelegate(FileSystemView delegate)
NullPointerException - If delegate is null.
IllegalArgumentException - If delegate is this
instance.public boolean isRoot(File f)
isRoot in class FileSystemViewpublic Boolean isTraversable(File f)
isTraversable in class FileSystemViewpublic String getSystemDisplayName(File f)
getSystemDisplayName in class FileSystemViewpublic String getSystemTypeDescription(File f)
getSystemTypeDescription in class FileSystemViewpublic Icon getSystemIcon(File f)
getSystemIcon in class FileSystemView
public boolean isParent(File folder,
File file)
isParent in class FileSystemView
public File getChild(File parent,
String fileName)
getChild in class FileSystemViewpublic boolean isFileSystem(File f)
isFileSystem in class FileSystemView
public File createNewFolder(File containingDir)
throws IOException
createNewFolder in class FileSystemViewIOExceptionpublic boolean isHiddenFile(File f)
isHiddenFile in class FileSystemViewpublic boolean isFileSystemRoot(File dir)
isFileSystemRoot in class FileSystemViewpublic boolean isDrive(File dir)
isDrive in class FileSystemViewpublic boolean isFloppyDrive(File dir)
isFloppyDrive in class FileSystemViewpublic boolean isComputerNode(File dir)
isComputerNode in class FileSystemViewpublic File[] getRoots()
getRoots in class FileSystemViewpublic File getHomeDirectory()
getHomeDirectory in class FileSystemViewpublic File getDefaultDirectory()
getDefaultDirectory in class FileSystemView
public File createFileObject(File dir,
String filename)
createFileObject in class FileSystemViewpublic File createFileObject(String path)
createFileObject in class FileSystemView
public File[] getFiles(File dir,
boolean useFileHiding)
getFiles in class FileSystemViewpublic File getParentDirectory(File dir)
getParentDirectory in class FileSystemViewprotected final File createFileSystemRoot(File f)
createFileSystemRootImpl(java.io.File).
createFileSystemRoot in class FileSystemViewpublic File createFileSystemRootImpl(File f)
File object for f with correct
behavior for a file system root directory.
If the delegate is an instance of this class, then this method
forwards the call to the delegate like all other methods in this class.
Otherwise, the super class implementation of the method
FileSystemView.createFileSystemRoot(java.io.File)
is called.
|
TrueZIP 6.8.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||