|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
anecho.util.SimpleFilter
public class SimpleFilter
SimpleFilter is a class used to create simple file filters for use with a JFileChooser
| Constructor Summary | |
|---|---|
SimpleFilter()
|
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File checkFile)
This method determines if a file or directory should be shown by the filter. |
void |
acceptDirs(boolean accept)
Returns a boolean value |
java.lang.String |
getDescription()
Returns the human-readable description of this filter. |
void |
setDescription(java.lang.String desc)
Set the human-readable description for this filter. |
void |
setFilters(java.lang.String[] filts)
This method sets the different filters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleFilter()
| Method Detail |
|---|
public boolean accept(java.io.File checkFile)
accept in class javax.swing.filechooser.FileFiltercheckFile - The file to be checked
true - this file or directory should be shown
false - this file or directory should not be shownpublic java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilterpublic void setDescription(java.lang.String desc)
desc - Description of the filter.public void setFilters(java.lang.String[] filts)
filts - An array of strings representing the filters (eg. .jpg, .tif, .tiff, .html).public void acceptDirs(boolean accept)
accept - true - accept directories
false - do not accept directories
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||