|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
SDFilter
This class is used to filter files. It just approve files with the extension .sd (sequence diagrams).
Field Summary | |
private boolean |
directory
|
Constructor Summary | |
SDFilter()
|
Method Summary | |
boolean |
accept(java.io.File f)
This method is used to filter files. |
java.lang.String |
getDescription()
This method returns the description of this filter. |
static java.lang.String |
getExtension(java.io.File f)
This method is used to get the extension from the name of a file. |
void |
setDirectorySearch(boolean b)
This methods sets wether or not directorys should be shown for the user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private boolean directory
Constructor Detail |
public SDFilter()
Method Detail |
public boolean accept(java.io.File f)
f
- The file to be filtered
public java.lang.String getDescription()
public static java.lang.String getExtension(java.io.File f)
f
- The file to get the extension from
public void setDirectorySearch(boolean b)
b
- True if directories should be shown,
and false otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |