jautil.install
Class ZIPListInstaller

java.lang.Object
  extended by jautil.install.ZIPListInstaller
Direct Known Subclasses:
JAInstaller

public abstract class ZIPListInstaller
extends java.lang.Object

A ZIPListInstaller installs a list of ZIPs into a given local directory from a given download location. The installation directory and download URL are established when the installer is constructed. This is an abstract class: each concrete subclass is responsible for implementing the method establishZIPList() which defines the specific list of ZIPs to be installed, for which purpose the supporting setter methods setZIPs(String[]) and setZIPTags(String[]) are provided. The doInstall() method first establishes the list of ZIPs, by inovoking establishZIPList() and then performs the installation.


Constructor Summary
ZIPListInstaller(java.io.File localdir, java.lang.String remotebase)
          Constructs a new zip list installer, to target the given local directory, and to download from the given remote base URL.
 
Method Summary
 boolean doInstall()
          Performs the installation as determined by the configuration parameters supplied at construction time.
static void showErrorMessage(java.lang.String TITLE, java.lang.String MESSAGE)
          Shows an error message dialog with the given title and message.
static void showMessage(java.lang.String TITLE, java.lang.String MESSAGE)
          Shows an information message dialog with the given title and message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZIPListInstaller

public ZIPListInstaller(java.io.File localdir,
                        java.lang.String remotebase)
Constructs a new zip list installer, to target the given local directory, and to download from the given remote base URL.

Method Detail

doInstall

public boolean doInstall()
Performs the installation as determined by the configuration parameters supplied at construction time. First the ZIP list is established, and then the components to be installed are downloaded from the download sub-folder at the remote base location.


showMessage

public static void showMessage(java.lang.String TITLE,
                               java.lang.String MESSAGE)
Shows an information message dialog with the given title and message.


showErrorMessage

public static void showErrorMessage(java.lang.String TITLE,
                                    java.lang.String MESSAGE)
Shows an error message dialog with the given title and message.