Class JDataStoreWizard

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class JDataStoreWizard extends JWizard
Wizard prompting the user to enter or review connection parameters.

GeoTools DataStores that work with files are asked to provide a FileDataStoreFactorySpi documenting what file extensions they support; and any additional parameters that may be interesting etc.

See Also:
  • Field Details

    • connectionParameters

      protected Map<String,Object> connectionParameters
      Connection parameters; shared with pages for editing
  • Constructor Details

    • JDataStoreWizard

      public JDataStoreWizard()
      Open up a wizard up with an initial page to choose a datastore factory.
    • JDataStoreWizard

      public JDataStoreWizard(String extension)
      Quick transition from JFileDataStoreChooser; allowing applications to migrate to connection parameters.
      Parameters:
      extension - Extension used to look up FileDataStoreFactory
    • JDataStoreWizard

      public JDataStoreWizard(DataStoreFactorySpi format)
      Set up the wizard with a "default" set of parameters.
    • JDataStoreWizard

      public JDataStoreWizard(DataStoreFactorySpi format, Map params)
  • Method Details

    • getConnectionParameters

      public Map<String,Object> getConnectionParameters()
    • getFile

      public File getFile()
      Helper method to check if for "url" parameter.
      Returns:
      url parameters as a File, or null if not applicable
    • setFormat

      public void setFormat(DataStoreFactorySpi format)