org.ka2ddo.yaac.gui
Interface SaveableFilter

All Known Implementing Classes:
DestinationFilter, 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.


Method Summary
 javax.swing.filechooser.FileNameExtensionFilter getPreferredFileType()
          Specify the preferred filetype for files saving this Filter's data set.
 boolean isSaveable()
          Indicate if this Filter is saveable.
 void saveFilterToFile(java.io.BufferedOutputStream out)
          Save the contents of the Filter to the specified DataOutput object.
 

Method Detail

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

javax.swing.filechooser.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

void saveFilterToFile(java.io.BufferedOutputStream out)
                      throws java.io.IOException
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:
java.io.IOException - if the write failed for some reason