|
20080913, rgf | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
org.oorexx.misc.RgfFilter
| Constructor Summary | |
RgfFilter(java.lang.String description)
Constructor which accepts the description for this filter. |
|
| Method Summary | |
boolean |
accept(java.io.File f)
Method which gets invoked by javax.swing.JFrame to test the file for inclusion in the file list. |
boolean |
accept(java.io.File dir,
java.lang.String fname)
Method which gets invoked by java.awt.FileDialog to test the file for inclusion in the file list. |
void |
addExtension(java.lang.String extension)
Allows to define the extension for files that should be included. |
java.lang.String |
getDescription()
Returns the present description for the filter. |
boolean |
isIgnoreCase()
Returns the present setting. |
void |
setDescription(java.lang.String description)
Allows setting the description for the filter. |
void |
setIgnoreCase(boolean b)
Allows setting the boolean value that controls whether the test for an existing file extension should be carried out case-insensitve (the default) or not. |
void |
setPattern(java.lang.String pattern)
Set a regular expression pattern (available starting with Java 1.4). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RgfFilter(java.lang.String description)
description - | Method Detail |
public void setPattern(java.lang.String pattern)
addExtension(String extension)), it is invalidated after invocation of this method, ie. it
will not get used anymore.
pattern - regular expression pattern (java.util.regex.Pattern, since Java 1.4)public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - public boolean accept(java.io.File f)
f - the file object to test
public boolean accept(java.io.File dir,
java.lang.String fname)
accept in interface java.io.FilenameFilterdir - the directory of the filefname - the file's name
public void addExtension(java.lang.String extension)
(String pattern)), it is invalidated after invocation of this method, ie. it
will not get used anymore.
extension - the file extension without any wild cardspublic void setIgnoreCase(boolean b)
b - if true, then ignore case in comparisonspublic boolean isIgnoreCase()
|
20080913, rgf | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||