Revision 40581 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.api/src/main/java/org/gvsig/installer/swing/api/SwingInstallerManager.java
SwingInstallerManager.java | ||
---|---|---|
57 | 57 |
*/ |
58 | 58 |
public interface SwingInstallerManager { |
59 | 59 |
|
60 |
|
|
61 |
public interface UrlAndLabel { |
|
62 |
/** |
|
63 |
* Return the url. |
|
64 |
* |
|
65 |
* @return the url |
|
66 |
*/ |
|
67 |
public URL getURL(); |
|
68 |
|
|
69 |
/** |
|
70 |
* Return the url associated to the url or null |
|
71 |
* if the url don't have a label. |
|
72 |
* |
|
73 |
* @return the label or null |
|
74 |
*/ |
|
75 |
public String getLabel(); |
|
76 |
|
|
77 |
/** |
|
78 |
* Return a string with the label and the url like: |
|
79 |
* "label - http://..." |
|
80 |
* |
|
81 |
* @return the label and url |
|
82 |
*/ |
|
83 |
public String toString(); // Return "label - url" |
|
84 |
} |
|
85 |
|
|
60 | 86 |
/** |
61 | 87 |
* Registers a class that implements a wizard to create an installer of a |
62 | 88 |
* plugin from a gvSIG installation directory. |
... | ... | |
164 | 190 |
|
165 | 191 |
public void addDefaultDownloadURL(URL url); |
166 | 192 |
|
193 |
public void addDefaultDownloadURL(URL url, String label); |
|
194 |
|
|
167 | 195 |
public void addDefaultDownloadURL(String url) throws MalformedURLException; |
168 | 196 |
|
197 |
/** |
|
198 |
* Return the list of default URL used to retrieve the package.gvspki |
|
199 |
* |
|
200 |
* @return list of defaults urls |
|
201 |
* @deprecated use getDefaultDownloadUrlAndLabels |
|
202 |
*/ |
|
169 | 203 |
public List<URL> getDefaultDownloadURLs(); |
204 |
|
|
205 |
/** |
|
206 |
* Return the list of default URL used to retrieve the package.gvspki |
|
207 |
* the list contains the URLs and their labels. |
|
208 |
* |
|
209 |
* @return list of default urls and their labels |
|
210 |
*/ |
|
211 |
public List<UrlAndLabel> getDefaultDownloadUrlAndLabels(); |
|
170 | 212 |
} |
Also available in: Unified diff