public class DefaultSwingInstallerManager extends Object implements SwingInstallerManager
Modifier and Type | Class and Description |
---|---|
class |
DefaultSwingInstallerManager.DefaultDownloadURLs<URL>
This class is for compatibility with deprecated method
List
|
class |
DefaultSwingInstallerManager.DefaultDownloadURLsIterator<URL>
This class is for compatibility with deprecated method
List
|
class |
DefaultSwingInstallerManager.DefaultUrlAndLabel |
SwingInstallerManager.UrlAndLabel
Constructor and Description |
---|
DefaultSwingInstallerManager() |
Modifier and Type | Method and Description |
---|---|
void |
addDefaultDownloadURL(String url) |
void |
addDefaultDownloadURL(URL url) |
void |
addDefaultDownloadURL(URL url,
String label) |
AbstractInstallPackageWizard |
createInstallPackageWizard(File applicationDirectory,
File installFolder)
This method returns a class that is used to execute an installer to
install a set of plugins in a gvSIG installation directory.
|
JShowPackageStatusAndAskContinuePanel |
createJShowPackageStatusAndAskContinuePanel(List<PackageInfo> packages,
String message) |
JShowRequiredPackagesAndAskContinuePanel |
createJShowRequiredPackagesAndAskContinuePanel(List<PackageInfo> packages,
String message) |
JShowPackagesAndAskContinuePanel |
createJShowTroubledPackagesAndAskContinuePanel(List<PackageInfo> packages,
String message) |
JShowUnresolvedDependenciesAndAskContinuePanel |
createJShowUnresolvedDependenciesAndAskContinuePanel(Dependencies dependencies,
String message) |
MakePluginPackageWizard |
createMakePluginPackageWizard(File applicationDirectory,
File installFolder)
This method returns a class that is used to create an installer from a
gvSIG installation directory.
|
JOutputPanel |
createOutputPanel() |
JPackageInfoPanel |
createPackageInfoPanel() |
JPackageInfoPanel |
createPackageInfoPanel(String packageType) |
PackageBuildder |
createPackagerPanel(String packageType,
File selectionFolder,
File outputFolder) |
JProgressPanel |
createProgressPanel() |
String |
getApplicationVersion()
Returns the current application version.
|
URL |
getDefaultDownloadURL()
Returns the default URL to download packages from.
|
List<SwingInstallerManager.UrlAndLabel> |
getDefaultDownloadUrlAndLabels()
Return the list of default URL used to retrieve the package.gvspki
the list contains the URLs and their labels.
|
List<URL> |
getDefaultDownloadURLs()
Return the list of default URL used to retrieve the package.gvspki
|
InstallerManager |
getInstallerManager()
Returns a reference to the
InstallerManager . |
String |
getText(String key)
Translate a key in a text using the current application language
|
void |
registerInstallPackageWizard(Class<? extends AbstractInstallPackageWizard> clazz)
Registers a class that implements a wizard to execte an installer to
install a set of plugins in a gvSIG installation directory.
|
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.
|
void |
setApplicationVersion(String gvSIGVersion)
Sets the current application version.
|
void |
setDefaultDownloadURL(File defaultDownloadURLs) |
void |
setDefaultDownloadURL(String defaultDownloadURLs) |
void |
setDefaultDownloadURL(URL defaultDownloadURL)
Sets the default URL to download packages from
|
public String getText(String key)
SwingInstallerManager
getText
in interface SwingInstallerManager
key
- The key to translatepublic void registerMakePluginPackageWizardInstallerCreationWizard(Class<? extends MakePluginPackageWizard> clazz)
SwingInstallerManager
registerMakePluginPackageWizardInstallerCreationWizard
in interface SwingInstallerManager
clazz
- Class that inherits of the MakePluginPackageWizard
abstract class.public void registerInstallPackageWizard(Class<? extends AbstractInstallPackageWizard> clazz)
SwingInstallerManager
registerInstallPackageWizard
in interface SwingInstallerManager
clazz
- Class that inherits of the
AbstractInstallPackageWizard
abstract class.public String getApplicationVersion()
SwingInstallerManager
getApplicationVersion
in interface SwingInstallerManager
public void setApplicationVersion(String gvSIGVersion)
SwingInstallerManager
setApplicationVersion
in interface SwingInstallerManager
gvSIGVersion
- the current application versionpublic URL getDefaultDownloadURL()
SwingInstallerManager
getDefaultDownloadURL
in interface SwingInstallerManager
public List<URL> getDefaultDownloadURLs()
SwingInstallerManager
getDefaultDownloadURLs
in interface SwingInstallerManager
public List<SwingInstallerManager.UrlAndLabel> getDefaultDownloadUrlAndLabels()
SwingInstallerManager
getDefaultDownloadUrlAndLabels
in interface SwingInstallerManager
public void setDefaultDownloadURL(String defaultDownloadURLs)
setDefaultDownloadURL
in interface SwingInstallerManager
public void setDefaultDownloadURL(URL defaultDownloadURL)
SwingInstallerManager
setDefaultDownloadURL
in interface SwingInstallerManager
defaultDownloadURL
- the default URL to download packages frompublic void setDefaultDownloadURL(File defaultDownloadURLs)
setDefaultDownloadURL
in interface SwingInstallerManager
public void addDefaultDownloadURL(URL url)
addDefaultDownloadURL
in interface SwingInstallerManager
public void addDefaultDownloadURL(URL url, String label)
addDefaultDownloadURL
in interface SwingInstallerManager
public void addDefaultDownloadURL(String url) throws MalformedURLException
addDefaultDownloadURL
in interface SwingInstallerManager
MalformedURLException
public InstallerManager getInstallerManager()
SwingInstallerManager
InstallerManager
.getInstallerManager
in interface SwingInstallerManager
InstallerManager
public JShowPackageStatusAndAskContinuePanel createJShowPackageStatusAndAskContinuePanel(List<PackageInfo> packages, String message)
createJShowPackageStatusAndAskContinuePanel
in interface SwingInstallerManager
public JShowPackagesAndAskContinuePanel createJShowTroubledPackagesAndAskContinuePanel(List<PackageInfo> packages, String message)
createJShowTroubledPackagesAndAskContinuePanel
in interface SwingInstallerManager
public JShowRequiredPackagesAndAskContinuePanel createJShowRequiredPackagesAndAskContinuePanel(List<PackageInfo> packages, String message)
public JShowUnresolvedDependenciesAndAskContinuePanel createJShowUnresolvedDependenciesAndAskContinuePanel(Dependencies dependencies, String message)
public JPackageInfoPanel createPackageInfoPanel()
createPackageInfoPanel
in interface SwingInstallerManager
public JPackageInfoPanel createPackageInfoPanel(String packageType)
createPackageInfoPanel
in interface SwingInstallerManager
public JOutputPanel createOutputPanel()
createOutputPanel
in interface SwingInstallerManager
public JProgressPanel createProgressPanel()
createProgressPanel
in interface SwingInstallerManager
public AbstractInstallPackageWizard createInstallPackageWizard(File applicationDirectory, File installFolder) throws InstallPackageWizardException
SwingInstallerManager
createInstallPackageWizard
in interface SwingInstallerManager
InstallPackageWizardException
- If there is a problem creating the wizard.public MakePluginPackageWizard createMakePluginPackageWizard(File applicationDirectory, File installFolder) throws MakePluginPackageWizardException
SwingInstallerManager
createMakePluginPackageWizard
in interface SwingInstallerManager
MakePluginPackageWizardException
- If there is a problem creating the wizard.public PackageBuildder createPackagerPanel(String packageType, File selectionFolder, File outputFolder)
createPackagerPanel
in interface SwingInstallerManager