public class TLcyFilterFileTypeDescriptor extends ALcyFileTypeDescriptor
Constructor and Description |
---|
TLcyFilterFileTypeDescriptor(String aDisplayName,
String[] aFilters,
String aDefaultExtension)
Creates a new TLcyFilterFileTypeDescriptor with the given display name, filters and default extension.
|
Modifier and Type | Method and Description |
---|---|
String |
getDefaultExtension()
Returns the default extension of this FileTypeDescriptor.
|
String |
getDisplayName()
Returns the previously set display name appended with the filter list
(*.ext1, prefix2*, *.ext2, prefix1*, ...
|
boolean |
includes(String aFileName)
Returns true if the given filename applies to one of the filters.
|
toString
public TLcyFilterFileTypeDescriptor(String aDisplayName, String[] aFilters, String aDefaultExtension)
aDisplayName
- The display name for this descriptor.aFilters
- The list of valid filters, example (*.ext or prefix*)aDefaultExtension
- The default extension. The extension does not include the dot (.)public String getDisplayName()
getDisplayName
in class ALcyFileTypeDescriptor
public String getDefaultExtension()
getDefaultExtension
in class ALcyFileTypeDescriptor
public boolean includes(String aFileName)
includes
in class ALcyFileTypeDescriptor
aFileName
- The filename to test.