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.
-
SoftwareComponent()
- Create a new SoftwareComponent with no parent and children (not recommended!)
-
SoftwareComponent(Msg)
- Create a new SoftwareComponent with the specified localized name.
-
SoftwareComponent(Msg, Hashtable)
- Create a new SoftwareComponent with specified localized name and the
desired destinationTable.
-
addRuntimeResources(Vector)
- Add the runtime resources required by this class.
-
getComponentName()
- Returns the localizable Msg representing this component's Name.
-
isInstallable()
- This method is used to determine if this product subtree will be installed.
-
refresh(Vector, String)
-
Update this SoftwareComponent's dependency.
-
setComponentName(Msg)
- Sets the name of this component to the specified localizable Msg object
SoftwareComponent
public SoftwareComponent()
- Create a new SoftwareComponent with no parent and children (not recommended!)
SoftwareComponent
public SoftwareComponent(Msg name)
- Create a new SoftwareComponent with the specified localized name.
- Parameters:
- name - The name of this InstallComponent
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
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
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.
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
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
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