|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
com.jaxfront.swing.ui.editor.XSDFilter
public class XSDFilter
A FileFilter, once implemented, can be set on a File to keep unwanted files from appearing in the directory listing. As the name suggest this class would list only xsd-files. For example:
File file = new File(); File[] files = file.lastFile(new XSDFilter());Note that this class can also be used for open dialog or save dialog
FileFilter
Constructor Summary | |
---|---|
XSDFilter()
Creates an instance of XSDFilter |
Method Summary | |
---|---|
boolean |
accept(java.io.File f)
Returns Whether the given file is accepted by this filter. |
java.lang.String |
getDescription()
The description of this filter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSDFilter()
Method Detail |
---|
public boolean accept(java.io.File f)
accept
in interface java.io.FileFilter
accept
in class javax.swing.filechooser.FileFilter
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
FileView.getName(java.io.File)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |