Package org.ka2ddo.yaac.gui
Interface SaveableFilter
- All Known Implementing Classes:
DestinationFilter
,FirstDigipeatFilterUI
,LastDigipeatFilterUI
,SendingStationFilter
,SymbolFilter
public interface SaveableFilter
This interface specifies additional methods a Filter should implement to allow the
contents of the filter dataset to be saved to a file.
- Author:
- Andrew Pavlin, KA2DDO
-
Method Summary
Modifier and TypeMethodDescriptionSpecify the preferred filetype for files saving this Filter's data set.boolean
Indicate if this Filter is saveable.void
Save the contents of the Filter to the specified DataOutput object.
-
Method Details
-
isSaveable
boolean isSaveable()Indicate if this Filter is saveable. Meant for use by combining filters whose sub-Filters may not all be savable.- Returns:
- boolean true if the current Filter can be saved
-
getPreferredFileType
FileNameExtensionFilter getPreferredFileType()Specify the preferred filetype for files saving this Filter's data set.- Returns:
- FileNameExtensionFilter that will be used in the saving JFileChooser
-
saveFilterToFile
Save the contents of the Filter to the specified DataOutput object.- Parameters:
out
- DataOutput implementing object for writing the file contents in its preferred format- Throws:
IOException
- if the write failed for some reason
-