|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
edu.cmu.cs.sb.drem.DREMGui_ImageFilter
public class DREMGui_ImageFilter
Class used to specify the file filtering in the file chooser menu. This class is used by DREMGui_SaveDREM
Constructor Summary | |
---|---|
DREMGui_ImageFilter()
|
Method Summary | |
---|---|
boolean |
accept(java.io.File f)
Returns true iff f is not null and a directory or has a non-null extension in validExt |
void |
addExtension(java.lang.String szext)
Adds szext into validExt |
java.lang.String |
getDescription()
Returns szdesc |
static java.lang.String |
getExtension(java.io.File f)
Returns the extension of the file |
void |
setDescription(java.lang.String szdesc)
Sets the value of szdesc |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DREMGui_ImageFilter()
Method Detail |
---|
public static java.lang.String getExtension(java.io.File f)
public boolean accept(java.io.File f)
accept
in class javax.swing.filechooser.FileFilter
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
public void setDescription(java.lang.String szdesc)
public void addExtension(java.lang.String szext)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |