All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.install.panels.ProductPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.sun.wizards.core.WizardComponent
                                   |
                                   +----com.sun.wizards.core.WizardLeaf
                                           |
                                           +----com.sun.install.panels.ProductPanel

public class ProductPanel
extends WizardLeaf
implements AdjustmentListener, InitializationListener
The ProductPanel class is used to present a set of products to the user. The products will have the following options: As an example, here is a Top-level installer with 5 products:

Graphic of a ProductPanel

The code to create this panel is:

String myName = "SampleProductPanel"; ProductPanel samplePanel = new ProductPanel(wizardState, myName);
Note that the names and possible selections for each product comes from the products themselves, not from the panel initialization code. The WizardState tree is examined and each name extracted from each WizardState, along with the type of install, from the InstallConstants.productInstallTypes vector, which is a vector of Integers corresponding to the InstallArchiveWriter.NO_INSTALL InstallArchiveWriter.DEFAULT_INSTALL, and InstallArchiveWriter.CUSTOM_INSTALL.


Constructor Index

 o ProductPanel()
Creates a ProductPanel with a route to the root of the server object tree.
 o ProductPanel(String, Route, WizardTreeManager)
Creates a ProductPanel with the specified name, the specified route and wizard manager.
 o ProductPanel(WizardState, String)
Creates a ProductPanel with the specified name.

Method Index

 o addRuntimeResources(Vector)
Get the runtime classes required by this panel.
 o adjustmentValueChanged(AdjustmentEvent)
Invoked when the scroll bar is used.
 o beginDisplay()
This method is called each time the ProductPanel is displayed.
 o consoleInteraction()
This method is called during non-graphical execution (i.e.
 o createUI()
This method creates the user interface.
 o initialize(InitializeEvent)
Perform initialization of this panel that must be done after the WizardState object has initialized.
 o isDisplayComplete()
Returns true if this WizardComponent is finished displaying.
 o paint(Graphics)
The paint method is called when the panel is displayed.

Constructors

 o ProductPanel
 public ProductPanel()
Creates a ProductPanel with a route to the root of the server object tree.

 o ProductPanel
 public ProductPanel(WizardState wizardState,
                     String name)
Creates a ProductPanel with the specified name.

Parameters:
wizardState - The buildtime WizardState.
name - The name for this ProductPanel.
 o ProductPanel
 public ProductPanel(String name,
                     Route route,
                     WizardTreeManager wizardManager)
Creates a ProductPanel with the specified name, the specified route and wizard manager.

Parameters:
name - The name for this ProductPanel.
route - The route to the appropriate server side object.
wizardManager - The wizardManager responsible for this component.

Methods

 o initialize
 public void initialize(InitializeEvent e)
Perform initialization of this panel that must be done after the WizardState object has initialized. This method inspects the child product installers to determine if they request not to be installed. This choice is expressed in the child wizard by setting the key/value pair InstallConstants.removeProduct="true" into the child's WizardState.

 o createUI
 public void createUI()
This method creates the user interface.

Overrides:
createUI in class WizardLeaf
 o consoleInteraction
 public void consoleInteraction()
This method is called during non-graphical execution (i.e.

Overrides:
consoleInteraction in class WizardComponent
 o beginDisplay
 public void beginDisplay()
This method is called each time the ProductPanel is displayed.

Overrides:
beginDisplay in class WizardComponent
 o adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent e)
Invoked when the scroll bar is used.

Parameters:
e - The Event that has occured.
 o paint
 public void paint(Graphics g)
The paint method is called when the panel is displayed.

Parameters:
g - The Graphics object for this panel.
Overrides:
paint in class Container
 o isDisplayComplete
 public boolean isDisplayComplete()
Returns true if this WizardComponent is finished displaying. This method can be used to verify user input.

Returns:
true if the display of this WizardComponent is complete; false otherwise.
Overrides:
isDisplayComplete in class WizardComponent
 o addRuntimeResources
 public void addRuntimeResources(Vector resourceVector)
Get the runtime classes required by this panel.

Parameters:
resourceVector - The vector containing all runtime resources for this wizard.
Overrides:
addRuntimeResources in class WizardLeaf

All Packages  Class Hierarchy  This Package  Previous  Next  Index