|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.filechooser.FileFilter | +--EDU.utwente.CoCompose.util.DirFileFilter
FileFilter for filtering directories and files.
Constructor Summary | |
DirFileFilter(java.lang.String endsWith)
Constructs a DirFileFileFilter. |
Method Summary | |
boolean |
accept(java.io.File f)
Whether the given file is accepted by this filter. |
boolean |
getAcceptDirs()
Gets the acceptDirs attribute. |
boolean |
getAcceptFiles()
Gets the acceptFiles attribute. |
java.lang.String |
getDescription()
The description of this filter. |
java.lang.String |
getEndsWith()
Gets the file extension to check on. |
void |
setAcceptDirs(boolean acceptDirs)
Sets the acceptDirs attribute. |
void |
setAcceptFiles(boolean acceptFiles)
Sets the acceptFiles attribute. |
void |
setEndsWith(java.lang.String endsWith)
Sets the file extension to check on. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DirFileFilter(java.lang.String endsWith)
endsWith
- The file extension including dot (e.g. ".xml").Method Detail |
public boolean getAcceptDirs()
public void setAcceptDirs(boolean acceptDirs)
acceptDirs
- Whether to accept directories.public boolean getAcceptFiles()
public void setAcceptFiles(boolean acceptFiles)
acceptFiles
- Whether to accept XML files.public java.lang.String getEndsWith()
public void setEndsWith(java.lang.String endsWith)
endsWith
- The file extension including dot (e.g. ".xml").public boolean accept(java.io.File f)
accept
in interface java.io.FileFilter
accept
in class javax.swing.filechooser.FileFilter
f
- The file/path to check.public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |