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

Constructor Index

 o UninstallArchiveCreator(WizardState)
Create an UninstallArchiveCreator object.

Method Index

 o addCollection(ResourceCollection)
Force a collection into the uninstaller at runtime.
 o addDirectoryKey(String)
 o addInitializationTask(Task)
Adds a task to the initialization sequence for this wizard.
 o configureWizard()
Creates the client tree for this wizard.
 o getArchiveName()
Returns the name of this wizard archive (without the ".class" extension)
 o getImage()
Gets the image to use during uninstall.
 o getProductName()
Gets the name of this product
 o getWizardState()
Retrieves the uninstall archive WizardState.
 o setArchiveName(String)
Sets the name of this archive, omitting the ".class" extension.
 o setImage(String)
Sets the image to use in the uninstaller
 o setProductDirectory(String)
Sets the product directory so that the uninstall can find the product it is uninstalling.
 o setProductName(String)
Sets the name of this product.
 o writeArchive(File)
Write the uninstall wizard to the specified output stream.

Constructors

 o 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

Methods

 o 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.
 o configureWizard
 protected void configureWizard()
Creates the client tree for this wizard. The connector field determines what type of tree we will create.

 o 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
 o 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)
 o setArchiveName
 public void setArchiveName(String archiveName)
Sets the name of this archive, omitting the ".class" extension.

Parameters:
archiveName - The name of this archive
 o 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
 o getProductName
 public String getProductName()
Gets the name of this product

Returns:
The name of this product.
 o 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)
 o 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)
 o 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
 o 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.
 o 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.
 o addDirectoryKey
 public void addDirectoryKey(String dirKey)

All Packages  Class Hierarchy  This Package  Previous  Next  Index