|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.filechooser.FileFilter | +--org.enhydra.tool.common.ExtensionFilter
An implementation of FileFilter that filters out all files except for those matching a set of given extensions.
Constructor Summary | |
ExtensionFilter()
Creates an extension file filter without an extensions set. |
Method Summary | |
boolean |
accept(java.io.File f)
Return true if this file should be shown in a file chooser. |
void |
addExclusion(java.lang.String ex)
|
void |
addExtension(java.lang.String in)
Adds an an extension to the list of acceptable file types. |
java.lang.String |
getDescription()
Returns the human readable description of this filter. |
java.lang.String |
getDescriptionTitle()
Gets the portion of the description that does not include extensions. |
boolean |
isDirectoryValid()
|
boolean |
isExcludeOnly()
|
void |
setDescriptionTitle(java.lang.String d)
Sets the portion of the description that does not include extensions. |
void |
setDirectoryValid(boolean valid)
|
void |
setExcludeOnly(boolean b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExtensionFilter()
Method Detail |
public boolean accept(java.io.File f)
accept
in interface java.io.FileFilter
accept
in class javax.swing.filechooser.FileFilter
public void addExtension(java.lang.String in)
public void addExclusion(java.lang.String ex)
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
public void setDescriptionTitle(java.lang.String d)
public java.lang.String getDescriptionTitle()
public void setDirectoryValid(boolean valid)
public boolean isDirectoryValid()
public boolean isExcludeOnly()
public void setExcludeOnly(boolean b)
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |