Class ModelLoader.JmtFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
common.xml.ModelLoader.JmtFileFilter
- Enclosing class:
ModelLoader
Inner class used to create simple file filters with only extension check
- Author:
- Bertoli Marco Date: 15-feb-2006 Time: 15.36.51
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJmtFileFilter(String extensionList, String text) Creates a new file filter with specified semicolon separated list of extensions and specified description -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the given file is accepted by this filter.The description of this filter.String[]Gets the extensions of this filter
-
Field Details
-
SEP
- See Also:
-
-
Constructor Details
-
JmtFileFilter
Creates a new file filter with specified semicolon separated list of extensions and specified description- Parameters:
extensionList- semicolon separated list of extensions of this filter (for example ".jsimg;.jmodel")text- text description of this filter
-
-
Method Details
-
accept
Whether the given file is accepted by this filter.- Specified by:
acceptin classFileFilter
-
getExtensions
Gets the extensions of this filter- Returns:
- extensions of this filter
-
getDescription
The description of this filter.- Specified by:
getDescriptionin classFileFilter
-