|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.common.tree.directory.FileSystemFilter
public class FileSystemFilter
A sloppy filter to be used for test purposes only. Will work with a FileSystemView and will filter based on the extensions of the files. The filter will return files matching the supplied extensions AND all directories. As a side effect, it will also return files with no extensions. But, hey, it's a testing tool. If you need a real filter, build your own.
| Constructor Summary | |
|---|---|
FileSystemFilter(FileSystemView fsv,
java.lang.String[] extensions,
java.lang.String description)
|
|
| Method Summary | |
|---|---|
boolean |
accept(TreeNode entry)
Determine whether the given TreeNode is accepted by this filter. |
java.lang.String |
getDescription()
Obtain a description for this filter. |
java.lang.String |
getExtension(int index)
|
int |
getExtensionCount()
|
static java.lang.String |
getFileNameExtension(java.lang.String s)
Return the extension portion of the file's name . |
void |
setDescription(java.lang.String s)
Obtain a description for this filter. |
void |
setTreeNodeEditor(TreeNodeEditor editor)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemFilter(FileSystemView fsv,
java.lang.String[] extensions,
java.lang.String description)
| Method Detail |
|---|
public static java.lang.String getFileNameExtension(java.lang.String s)
getExtension(int),
FileFilter#acceptpublic void setTreeNodeEditor(TreeNodeEditor editor)
public void setDescription(java.lang.String s)
public java.lang.String getDescription()
getDescription in interface TreeNodeFilterpublic boolean accept(TreeNode entry)
accept in interface TreeNodeFilterpublic java.lang.String getExtension(int index)
getExtension in interface DirectoryEntryFilterpublic int getExtensionCount()
getExtensionCount in interface DirectoryEntryFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||