|
|||||||||
| Home >> All >> org >> josql >> [ filters overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.josql.filters
Class JoSQLSwingFileFilter

java.lang.Objectjavax.swing.filechooser.FileFilter
org.josql.filters.JoSQLSwingFileFilter
- public class JoSQLSwingFileFilter
- extends javax.swing.filechooser.FileFilter
A javax.swing.filechooser.FileFilter that uses a JoSQL statement to provide the filtering.
The value returned by the accept(File) 55 method is determined by executing the
WHERE clause of a JoSQL statement on each File passed in. This just uses an instance of:
JoSQLFileFilter to do it's job, see that class for details of usage.
Last Modified By: $Author: barrygently $
Last Modified On: $Date: 2005/01/07 17:10:40 $
Current Revision: $Revision: 1.1 $
| Field Summary | |
private java.lang.String |
d
|
private JoSQLFileFilter |
ff
|
| Constructor Summary | |
JoSQLSwingFileFilter(org.josql.Query q)
Init this file filter with the query already built and parsed. |
|
JoSQLSwingFileFilter(java.lang.String q)
Init this file filter with the query. |
|
| Method Summary | |
boolean |
accept(java.io.File f)
Apply the WHERE clause of the statement to the java.io.File passed in. |
java.lang.String |
getDescription()
Return the description for the filter. |
JoSQLFileFilter |
getJoSQLFileFilter()
Get the file filter being used "under the hoodie" in the accept(File) 55 method. |
void |
setDescription(java.lang.String d)
Set the description that should be used. |
void |
setJoSQLFileFilter(JoSQLFileFilter ff)
Set the JoSQLFileFilter that should be used to handle the accept(File) 55 method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
ff
private JoSQLFileFilter ff
d
private java.lang.String d
| Constructor Detail |
JoSQLSwingFileFilter
public JoSQLSwingFileFilter(java.lang.String q) throws org.josql.QueryParseException
- Init this file filter with the query.
JoSQLSwingFileFilter
public JoSQLSwingFileFilter(org.josql.Query q) throws java.lang.IllegalStateException, org.josql.QueryParseException
- Init this file filter with the query already built and parsed.
| Method Detail |
setJoSQLFileFilter
public void setJoSQLFileFilter(JoSQLFileFilter ff)
- Set the JoSQLFileFilter that should be used to handle the
accept(File)55 method.
setDescription
public void setDescription(java.lang.String d)
- Set the description that should be used.
getDescription
public java.lang.String getDescription()
- Return the description for the filter.
getJoSQLFileFilter
public JoSQLFileFilter getJoSQLFileFilter()
- Get the file filter being used "under the hoodie" in the
accept(File)55 method. You should also check that file filter to see if an exception has occurred.
accept
public boolean accept(java.io.File f)
- Apply the WHERE clause of the statement to the java.io.File passed in.
This is just a wrapper call to:
JoSQLFileFilter.accept(File)55 .
|
|||||||||
| Home >> All >> org >> josql >> [ filters overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC