All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.install.panels.VerifyPanel

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.VerifyPanel

public class VerifyPanel
extends WizardLeaf
implements AdjustmentListener, Runnable
The VerifyPanel is used to indicate to the user what products or product components have been selected for installation. This panel is displayed before the installation occurs, and gives the user a last chance to review the selections and make changes. It also does disk space checking, and warns user if there is not enough disk space to install the selected products.

Here is an example of the disk space checking screen the user sees while disk space checking is taking place: Graphic of a VerifyPanel's Disk space checking

Once the disk space check is done, the VerifyPanel is displayed. Here is an example VerifyPanel: Graphic of a VerifyPanel

The code to create this panel is:

VerifyPanel samplePanel = new VerifyPanel(wizardState, "SampleName");
Note that all of the information within the panel comes from the products that either will or will not install. No information is supplied to the constructor.


Constructor Index

 o VerifyPanel()
Creates a VerifyPanel with no name.
 o VerifyPanel(String, Route, WizardTreeManager)
Creates a VerifyPanel with the specified name, the specified route and wizard manager.
 o VerifyPanel(WizardState, String)
Creates a VerifyPanel with the specified name.

Method Index

 o abortDisplay()
This method is called when this WizardComponent is being displayed, and the user presses the "back" button.
 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 when the VerifyPanel is displayed.
 o consoleInteraction()
This method is called during non-graphical execution (i.e.
 o createUI()
This method creates the user interface.
 o isDisplayComplete()
Returns true if this WizardComponent is finished displaying.
 o paint(Graphics)
The paint method is called when the panel is displayed.
 o run()
The run method is used to perform disk space checking.

Constructors

 o VerifyPanel
 public VerifyPanel()
Creates a VerifyPanel with no name.

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

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

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

Methods

 o beginDisplay
 public void beginDisplay()
This method is called when the VerifyPanel is displayed. beginDisplay is overridden to get the list of products being installed from the WizardState for display.

Overrides:
beginDisplay in class WizardComponent
 o run
 public void run()
The run method is used to perform disk space checking. This is done in a separate thread to avoid locking up the wizard user interface during such a (potentially) long operation.

 o consoleInteraction
 public void consoleInteraction()
This method is called during non-graphical execution (i.e.

Overrides:
consoleInteraction in class WizardComponent
 o abortDisplay
 public void abortDisplay()
This method is called when this WizardComponent is being displayed, and the user presses the "back" button. This method provides an opportunity for this WizardComponent to do cleanup before exiting. This method is used when the user presses the "back" button, and the isDisplayComplete method is used when the user presses the "next" button. The VerifyPanel uses this method to revert the label on the next button.

Overrides:
abortDisplay in class WizardComponent
 o createUI
 public void createUI()
This method creates the user interface.

Overrides:
createUI in class WizardLeaf
 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. The VerifyPanel isDisplayComplete method always returns true, but is overridden to revert the "next" button label.

Returns:
Always returns true.
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