Class XMLSettingsSwing

java.lang.Object
PamController.settings.output.xml.XMLSettingsSwing

public class XMLSettingsSwing extends Object
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 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

      public XMLImportData importXMLSettings(Window parent, Class objectClass)
      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

      public XMLImportData importXMLSettings(Window parent, File file, Class objectClass)