Interface SwingInstallerManager


public interface SwingInstallerManager

This manager is used to register and create the wizards that are used to create and execute an installer. These wizards are classes that inherit of JPanel.

Author:
Jorge Piera Llodrá
  • Method Details

    • registerMakePluginPackageWizardInstallerCreationWizard

      void registerMakePluginPackageWizardInstallerCreationWizard(Class<? extends MakePluginPackageWizard> clazz)
      Registers a class that implements a wizard to create an installer of a plugin from a gvSIG installation directory.
      Parameters:
      clazz - Class that inherits of the MakePluginPackageWizard abstract class.
    • createMakePluginPackageWizard

      MakePluginPackageWizard createMakePluginPackageWizard(File applicationDirectory, File installFolder) throws MakePluginPackageWizardException
      This method returns a class that is used to create an installer from a gvSIG installation directory.
      Returns:
      The wizard to create an installer.
      Throws:
      MakePluginPackageWizardException - If there is a problem creating the wizard.
    • registerInstallPackageWizard

      void registerInstallPackageWizard(Class<? extends InstallerWizardPanel> clazz)
      Registers a class that implements a wizard to execte an installer to install a set of plugins in a gvSIG installation directory.
      Parameters:
      clazz - Class that inherits of the
      invalid reference
      AbstractInstallPackageWizard
      abstract class.
    • createInstallPackageWizard

      InstallWizardPanel createInstallPackageWizard(File applicationDirectory, File installFolder) throws InstallPackageWizardException
      This method returns a class that is used to execute an installer to install a set of plugins in a gvSIG installation directory.
      Returns:
      The wizard to execute an installer.
      Throws:
      InstallPackageWizardException - If there is a problem creating the wizard.
    • getApplicationVersion

      String getApplicationVersion()
      Returns the current application version.
      Returns:
      the current application version
    • setApplicationVersion

      void setApplicationVersion(String gvSIGVersion)
      Sets the current application version.
      Parameters:
      gvSIGVersion - the current application version
    • getDefaultDownloadURL

      URL getDefaultDownloadURL()
      Returns the default URL to download packages from.
      Returns:
      the default URL to download packages from
    • setDefaultDownloadURL

      void setDefaultDownloadURL(URL defaultDownloadURL)
      Sets the default URL to download packages from
      Parameters:
      defaultDownloadURL - the default URL to download packages from
    • getText

      String getText(String key)
      Translate a key in a text using the current application language
      Parameters:
      key - The key to translate
      Returns:
      The translated key
    • getInstallerManager

      org.gvsig.installer.lib.api.InstallerManager getInstallerManager()
      Returns a reference to the InstallerManager.
      Returns:
      a reference to the InstallerManager
    • createJShowPackageStatusAndAskContinuePanel

      JShowPackageStatusAndAskContinuePanel createJShowPackageStatusAndAskContinuePanel(List<org.gvsig.installer.lib.api.PackageInfo> packages, String message)
    • createJShowTroubledPackagesAndAskContinuePanel

      JShowPackagesAndAskContinuePanel createJShowTroubledPackagesAndAskContinuePanel(List<org.gvsig.installer.lib.api.PackageInfo> packages, String message)
    • createJShowRequiredPackagesAndAskContinuePanel

      JShowRequiredPackagesAndAskContinuePanel createJShowRequiredPackagesAndAskContinuePanel(List<org.gvsig.installer.lib.api.PackageInfo> packages, String message)
    • createJShowUnresolvedDependenciesAndAskContinuePanel

      JShowUnresolvedDependenciesAndAskContinuePanel createJShowUnresolvedDependenciesAndAskContinuePanel(org.gvsig.installer.lib.api.Dependencies dependencies, String message)
    • createPackageInfoPanel

      JPackageInfoPanel createPackageInfoPanel()
    • createPackageInfoPanel

      JPackageInfoPanel createPackageInfoPanel(String packageType)
    • createOutputPanel

      JOutputPanel createOutputPanel()
    • createProgressPanel

      JProgressPanel createProgressPanel()
    • setDefaultDownloadURL

      void setDefaultDownloadURL(String defaultDownloadURLs)
    • setDefaultDownloadURL

      void setDefaultDownloadURL(File defaultDownloadURLs)
    • addDefaultDownloadURL

      void addDefaultDownloadURL(URL url)
    • addDefaultDownloadURL

      void addDefaultDownloadURL(URL url, String label)
    • addDefaultDownloadURL

      void addDefaultDownloadURL(String url) throws MalformedURLException
      Throws:
      MalformedURLException
    • getDefaultDownloadURLs

      List<URL> getDefaultDownloadURLs()
      Return the list of default URL used to retrieve the package.gvspki
      Returns:
      list of defaults urls
    • getDefaultDownloadUrlAndLabels

      List<SwingInstallerManager.UrlAndLabel> getDefaultDownloadUrlAndLabels()
      Return the list of default URL used to retrieve the package.gvspki the list contains the URLs and their labels.
      Returns:
      list of default urls and their labels
    • createPackagerPanel

      PackageBuildder createPackagerPanel(String packageType, File selectionFolder, File outputFolder)
    • createPackageTypeFilter

      PackageFilter createPackageTypeFilter(String type)