Class XMLSettingsSwing
java.lang.Object
PamController.settings.output.xml.XMLSettingsSwing
Some Swing dialogs n stuff for managing module settings in and out of
XML.
Mostly calling through to functions in PamguardXMLReader and PamguardXMLWriter
- Author:
- dg50
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionimportXMLSettings
(Window parent, File file, Class objectClass) importXMLSettings
(Window parent, Class objectClass) Find a file (using dialog) and import settings of given class within that fileboolean
writeXMLSettings
(Window parent, PamSettings pamSettings, Serializable data, String suggestedName) Write settings for a single object to an xml file.
-
Constructor Details
-
XMLSettingsSwing
public XMLSettingsSwing()
-
-
Method Details
-
writeXMLSettings
public boolean writeXMLSettings(Window parent, PamSettings pamSettings, Serializable data, String suggestedName) Write settings for a single object to an xml file.- Parameters:
pamSettings
-data
-suggestedName
-- Returns:
-
importXMLSettings
Find a file (using dialog) and import settings of given class within that file- Parameters:
parent
-objectClass
- class to search for in file- Returns:
- imported data - selected file AND data object.
-
importXMLSettings
-