Revision 37599 branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.api/src/main/java/org/gvsig/installer/swing/api/execution/AbstractInstallPackageWizard.java
AbstractInstallPackageWizard.java | ||
---|---|---|
51 | 51 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
52 | 52 |
*/ |
53 | 53 |
public abstract class AbstractInstallPackageWizard extends |
54 |
AbstractInstallerWizard {
|
|
54 |
AbstractInstallerWizard {
|
|
55 | 55 |
|
56 |
private static final long serialVersionUID = -758246118332926598L;
|
|
56 |
private static final long serialVersionUID = -758246118332926598L;
|
|
57 | 57 |
|
58 |
/**
|
|
59 |
* Constructor
|
|
60 |
*
|
|
61 |
* @see AbstractInstallerWizard#AbstractInstallerWizard(File, File, File)
|
|
62 |
*/
|
|
63 |
public AbstractInstallPackageWizard(File applicationFolder,
|
|
64 |
File pluginsFolder, File installFolder) {
|
|
65 |
super(applicationFolder, pluginsFolder, installFolder);
|
|
66 |
}
|
|
58 |
/**
|
|
59 |
* Constructor
|
|
60 |
*
|
|
61 |
* @see AbstractInstallerWizard#AbstractInstallerWizard(File, File, File)
|
|
62 |
*/
|
|
63 |
public AbstractInstallPackageWizard(File applicationFolder,
|
|
64 |
File pluginsFolder, File installFolder) {
|
|
65 |
super(applicationFolder, pluginsFolder, installFolder);
|
|
66 |
}
|
|
67 | 67 |
|
68 |
/**
|
|
69 |
* If this method is selected the first window of the wizard is
|
|
70 |
* not visible and the installation process takes the installers
|
|
71 |
* form the default directory.
|
|
72 |
*
|
|
73 |
* @throws InstallPackageServiceException
|
|
74 |
* if there an error reading the default directory.
|
|
75 |
*/
|
|
76 |
public abstract void installFromDefaultDirectory()
|
|
77 |
throws InstallPackageServiceException;
|
|
68 |
/**
|
|
69 |
* If this method is selected the first window of the wizard is not visible
|
|
70 |
* and the installation process takes the installers form the default
|
|
71 |
* directory.
|
|
72 |
*
|
|
73 |
* @throws InstallPackageServiceException
|
|
74 |
* if there an error reading the default directory.
|
|
75 |
*/
|
|
76 |
public abstract void installFromDefaultDirectory()
|
|
77 |
throws InstallPackageServiceException;
|
|
78 | 78 |
|
79 |
/**
|
|
80 |
* @return the installerExecutionService
|
|
81 |
*/
|
|
82 |
public abstract InstallPackageService getInstallerExecutionService();
|
|
79 |
/**
|
|
80 |
* @return the installerExecutionService
|
|
81 |
*/
|
|
82 |
public abstract InstallPackageService getInstallerExecutionService();
|
|
83 | 83 |
|
84 |
/**
|
|
85 |
* @return the installersToInstall
|
|
86 |
*/
|
|
87 |
public abstract List<PackageInfo> getInstallersToInstall();
|
|
84 |
/**
|
|
85 |
* @return the installersToInstall
|
|
86 |
*/
|
|
87 |
public abstract List<PackageInfo> getInstallersToInstall();
|
|
88 | 88 |
|
89 |
public abstract void setNextButtonEnabled(boolean isEnabled);
|
|
89 |
public abstract void setNextButtonEnabled(boolean isEnabled);
|
|
90 | 90 |
|
91 |
public abstract void setFinishButtonVisible(boolean isVisible);
|
|
91 |
public abstract void setFinishButtonVisible(boolean isVisible);
|
|
92 | 92 |
|
93 |
public abstract void setCancelButtonEnabled(boolean isEnabled);
|
|
93 |
public abstract void setCancelButtonEnabled(boolean isEnabled);
|
|
94 | 94 |
|
95 |
public abstract void setBackButtonEnabled(boolean isEnabled);
|
|
95 |
public abstract void setBackButtonEnabled(boolean isEnabled);
|
|
96 | 96 |
|
97 |
/** |
|
98 |
* It will ask the user to select the installation mode to Typical or |
|
99 |
* Advanced. |
|
100 |
* |
|
101 |
* @param askIt |
|
102 |
* True or False if the option will be shown to the user or not. |
|
103 |
*/ |
|
104 |
public abstract void setAskTypicalOrCustom(boolean askIt); |
|
97 | 105 |
|
98 |
/** |
|
99 |
* It will ask the user to select the installation mode to Typical or |
|
100 |
* Advanced. |
|
101 |
* |
|
102 |
* @param askIt |
|
103 |
* True or False if the option will be shown to the user or not. |
|
104 |
*/ |
|
105 |
public abstract void setAskTypicalOrCustom(boolean askIt); |
|
106 |
/** |
|
107 |
* To know if the question is set to be shown or not. |
|
108 |
* |
|
109 |
* @return True if the question is set to be shown or false if not. |
|
110 |
*/ |
|
111 |
public abstract boolean getAskTypicalOrCustom(); |
|
106 | 112 |
|
107 |
/** |
|
108 |
* To know if the question is set to be shown or not. |
|
109 |
* |
|
110 |
* @return True if the question is set to be shown or false if not. |
|
111 |
*/ |
|
112 |
public abstract boolean getAskTypicalOrCustom(); |
|
113 |
public abstract void setSelectDefaultPackages(boolean isActivated); |
|
113 | 114 |
|
114 |
public abstract void setSelectDefaultPackages(boolean isActivated); |
|
115 |
|
|
116 |
public abstract boolean getSelectDefaultPackages(); |
|
117 |
|
|
115 |
public abstract boolean getSelectDefaultPackages(); |
|
116 |
|
|
118 | 117 |
} |
Also available in: Unified diff