|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
sims.ihm.MachineFilter
public class MachineFilter
Constructor Summary | |
---|---|
MachineFilter()
|
Method Summary | |
---|---|
boolean |
accept(java.io.File f)
Test if the file matches the filter criterias: if its extension is "reg" or "tur". |
java.lang.String |
getDescription()
Gives the String that will be printed on the dialog box when applying the filter. |
static java.lang.String |
getExtension(java.io.File f)
Build a substring of the filename corresponding to its extension (the word after the last occurence of '.'). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MachineFilter()
Method Detail |
---|
public boolean accept(java.io.File f)
accept
in class javax.swing.filechooser.FileFilter
f
- the file passing the filter.
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
public static java.lang.String getExtension(java.io.File f)
f
- the File we want to get the extension.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |