|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
monitor.XmlFileFilter
public class XmlFileFilter
A FileFilter for the JFileChoosers: accepts xml file (.xml) only
Constructor Summary | |
---|---|
XmlFileFilter()
|
Method Summary | |
---|---|
boolean |
accept(java.io.File f)
Says whether a given file is allowed. |
java.lang.String |
getDescription()
Gets the description for the text files |
java.lang.String |
getExtension(java.io.File f)
Returns the extension of a given file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlFileFilter()
Method Detail |
---|
public boolean accept(java.io.File f)
accept
in class javax.swing.filechooser.FileFilter
f
- the file
true
if the file is allowedpublic java.lang.String getExtension(java.io.File f)
f
- the file
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |