All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.ProductInfo

java.lang.Object
   |
   +----com.sgi.sysadm.ui.ProductInfo

public abstract class ProductInfo
extends Object

Variable Index

 o PRODUCT_INFO

Constructor Index

 o ProductInfo()

Method Index

 o computeProductAttrs(String)
Subclasses override this method that ProductInfo calls when it needs the product attributes for a particular product.
 o getProductAttrs(String, ResultListener)
Determines the product attributes pertaining to a product.
 o setHostContext(HostContext)
Set the HostContext needed for creating ProductInfo instances.
 o setProductAttrs(String, String)
Called by subclass to report result of computeProductAttrs

Variables

 o PRODUCT_INFO
 protected static final String PRODUCT_INFO

Constructors

 o ProductInfo
 public ProductInfo()

Methods

 o setHostContext
 public void setHostContext(HostContext hostContext)
Set the HostContext needed for creating ProductInfo instances.

Parameters:
hostContext - HostContext for creating ProductInfo instances.
 o getProductAttrs
 public synchronized void getProductAttrs(String product,
                                          ResultListener listener)
Determines the product attributes pertaining to a product.

Parameters:
product - The name of the product
listener - Gets result of this operation. The getResult method should be called on the ResultEvent passed to listener.succeeded to get an ResourceBundle containing the Attributes.
 o computeProductAttrs
 protected abstract void computeProductAttrs(String product)
Subclasses override this method that ProductInfo calls when it needs the product attributes for a particular product. Subclass must eventually call setProductAttrs when it is done computing the product attributes.

Parameters:
product - The product to get the attributes of
 o setProductAttrs
 protected synchronized void setProductAttrs(String product,
                                             String attrs)
Called by subclass to report result of computeProductAttrs

Parameters:
product - The product that this result is for
attrs - String the attrs for this product

All Packages  Class Hierarchy  This Package  Previous  Next  Index