All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.install.products.SoftwareComponent

java.lang.Object
   |
   +----com.sun.install.products.InstallComponent
           |
           +----com.sun.install.products.InstallNode
                   |
                   +----com.sun.install.products.SoftwareComponent

public class SoftwareComponent
extends InstallNode
SoftwareComponent implements the default behavior common to all InstallComponents that represent logical software components that can be wholly "selected" or "de-selected". Examples of such groupings are "Documentation", "Binaries", or "Demos". These can be presented to the user and have the ability to be de-selected, so that this piece (and all others that are descendants of this node) does not get installed onto the target machine.


Constructor Index

 o SoftwareComponent()
Create a new SoftwareComponent with no parent and children (not recommended!)
 o SoftwareComponent(Msg)
Create a new SoftwareComponent with the specified localized name.
 o SoftwareComponent(Msg, Hashtable)
Create a new SoftwareComponent with specified localized name and the desired destinationTable.

Method Index

 o addRuntimeResources(Vector)
Add the runtime resources required by this class.
 o getComponentName()
Returns the localizable Msg representing this component's Name.
 o isInstallable()
This method is used to determine if this product subtree will be installed.
 o refresh(Vector, String)
Update this SoftwareComponent's dependency.
 o setComponentName(Msg)
Sets the name of this component to the specified localizable Msg object

Constructors

 o SoftwareComponent
 public SoftwareComponent()
Create a new SoftwareComponent with no parent and children (not recommended!)

 o SoftwareComponent
 public SoftwareComponent(Msg name)
Create a new SoftwareComponent with the specified localized name.

Parameters:
name - The name of this InstallComponent
 o SoftwareComponent
 public SoftwareComponent(Msg name,
                          Hashtable destinationTable)
Create a new SoftwareComponent with specified localized name and the desired destinationTable.

Parameters:
name - The name of this InstallComponent
destinationTable - The final destination of this SoftwareComponent and its children

Methods

 o isInstallable
 public boolean isInstallable()
This method is used to determine if this product subtree will be installed. The SoftwareComponent returns true only if the user has selected the component that this object represents.

Returns:
True if this SoftwareComponent has been selected for installation.
Overrides:
isInstallable in class InstallNode
 o getComponentName
 public Msg getComponentName()
Returns the localizable Msg representing this component's Name.

Returns:
The name of this component, or null if the component has no name.
 o setComponentName
 public void setComponentName(Msg name)
Sets the name of this component to the specified localizable Msg object

Parameters:
name - The name of this component
 o refresh
 public boolean refresh(Vector targets,
                        String sharedPoolKey)
Update this SoftwareComponent's dependency. For example, if we are on a Windows-based platform and this InstallComponent has some children that should only be installed on SPARC-based platforms, this would omit the inactive InstallComponent's information (Destination table, whether it will install or not). In effect, it halts any data-gathering operation that might otherwise be passed down to its children. For a SoftwareComponent, this method searches for it being "selected" by the user, and turns itself "off" if it is not selected.

Parameters:
targets - The target properties (set via setProperty()) to update.
sharedPoolKey - the key used to access the shared pool to keep track of shared components.
Returns:
true if the refresh was sucessful, falseotherwise.
Overrides:
refresh in class InstallNode
 o addRuntimeResources
 public void addRuntimeResources(Vector resourceVector)
Add the runtime resources required by this class.

Parameters:
resourceVector - The vector containing all of the required resources for this class
Overrides:
addRuntimeResources in class InstallNode

All Packages  Class Hierarchy  This Package  Previous  Next  Index