All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.install.products.UninstallArchiveCreator
java.lang.Object
|
+----com.sun.install.products.UninstallArchiveCreator
- public class UninstallArchiveCreator
- extends Object
This class can be used to create a basic uninstall with only the
product name, and the components of the product (if any). Without
supplying any additional information, a basic uninstall with default
panels will be created. Customization can be accomplished using
the supplied methods. Other methods in ArchiveWriter can be used
to further customize the uninstall.
- See Also:
- ArchiveWriter
-
UninstallArchiveCreator(WizardState)
- Create an UninstallArchiveCreator object.
-
addCollection(ResourceCollection)
- Force a collection into the uninstaller at runtime.
-
addDirectoryKey(String)
-
-
addInitializationTask(Task)
-
Adds a task to the initialization sequence for this wizard.
-
configureWizard()
-
Creates the client tree for this wizard.
-
getArchiveName()
- Returns the name of this wizard archive (without the ".class" extension)
-
getImage()
- Gets the image to use during uninstall.
-
getProductName()
- Gets the name of this product
-
getWizardState()
- Retrieves the uninstall archive WizardState.
-
setArchiveName(String)
- Sets the name of this archive, omitting the ".class" extension.
-
setImage(String)
- Sets the image to use in the uninstaller
-
setProductDirectory(String)
-
Sets the product directory so that the uninstall can find the product it is uninstalling.
-
setProductName(String)
- Sets the name of this product.
-
writeArchive(File)
- Write the uninstall wizard to the specified output stream.
UninstallArchiveCreator
public UninstallArchiveCreator(WizardState installState)
- Create an UninstallArchiveCreator object. Note that you cannot reference installState in any
method that is called by the superclass constructors, such as createClientTree() or setResources().
- Parameters:
- installState - The WizardState object used to install this product
addCollection
public void addCollection(ResourceCollection collection)
- Force a collection into the uninstaller at runtime.
- Parameters:
- collection - The collection that is to be added to the uninstaller.
configureWizard
protected void configureWizard()
- Creates the client tree for this wizard. The
connector field determines what type of tree we will
create.
addInitializationTask
public void addInitializationTask(Task task)
- Adds a task to the initialization sequence for this wizard. You
can add a task to do any initialization your wizard might need
using this method. The task will be run at startup, during the
initialization of this wizards.
- Parameters:
- task - The desired task to be added to the initialization sequence
getArchiveName
public String getArchiveName()
- Returns the name of this wizard archive (without the ".class" extension)
- Returns:
- the name of this wizard archive (without the ".class" extension)
setArchiveName
public void setArchiveName(String archiveName)
- Sets the name of this archive, omitting the ".class" extension.
- Parameters:
- archiveName - The name of this archive
setProductName
public void setProductName(String name)
- Sets the name of this product. If the name is not set, it defaults to
"this product".
- Parameters:
- name - The name of this product
getProductName
public String getProductName()
- Gets the name of this product
- Returns:
- The name of this product.
setImage
public void setImage(String img)
- Sets the image to use in the uninstaller
- Parameters:
- img - The image name, in wizard 'dot' notation (e.g. com.sun.install.myimage)
getImage
public String getImage()
- Gets the image to use during uninstall.
- Returns:
- The image name, in wizard 'dot' notation (e.g. com.sun.install.myimage)
setProductDirectory
public void setProductDirectory(String directory)
- Sets the product directory so that the uninstall can find the product it is uninstalling.
- Parameters:
- directory - The directory the uninstall should expect to find its product in
getWizardState
public WizardState getWizardState()
- Retrieves the uninstall archive WizardState. With this reference,
the uninstaller archive can be modified before it is written out
to disk as the uninstaller.
- Returns:
- The Uninstall archive WizardState reference.
writeArchive
public void writeArchive(File wizard)
- Write the uninstall wizard to the specified output stream.
- Parameters:
- wizard - The file to write the uninstall archive to.
addDirectoryKey
public void addDirectoryKey(String dirKey)
All Packages Class Hierarchy This Package Previous Next Index