Class DefaultFileFilter.EditorFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.editor.DefaultFileFilter.EditorFileFilter
- Enclosing class:
- DefaultFileFilter
Utility file filter to accept editor files, namely .xml and .xml.gz extensions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEditorFileFilter(String description) Constructs a new editor file filter using the specified description. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the file is a directory or has a .xml or .xml.gz extension.Returns the description.
-
Field Details
-
desc
Description of the File format
-
-
Constructor Details
-
EditorFileFilter
Constructs a new editor file filter using the specified description.- Parameters:
description- The description to use for the filter.
-
-
Method Details
-
accept
Returns true if the file is a directory or has a .xml or .xml.gz extension.- Specified by:
acceptin classFileFilter- Returns:
- Returns true if the file is accepted.
-
getDescription
Returns the description.- Specified by:
getDescriptionin classFileFilter- Returns:
- Returns the description.
-