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:
Once the disk space check is done, the VerifyPanel is displayed.
Here is an example 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.
-
VerifyPanel()
- Creates a VerifyPanel with no name.
-
VerifyPanel(String, Route, WizardTreeManager)
- Creates a VerifyPanel with the specified name, the specified
route and wizard manager.
-
VerifyPanel(WizardState, String)
- Creates a VerifyPanel with the specified name.
-
abortDisplay()
- This method is called when this WizardComponent is being displayed,
and the user presses the "back" button.
-
addRuntimeResources(Vector)
- Get the runtime classes required by this panel.
-
adjustmentValueChanged(AdjustmentEvent)
- Invoked when the scroll bar is used.
-
beginDisplay()
- This method is called when the VerifyPanel is displayed.
-
consoleInteraction()
- This method is called during non-graphical execution (i.e.
-
createUI()
- This method creates the user interface.
-
isDisplayComplete()
- Returns true if this WizardComponent is finished displaying.
-
paint(Graphics)
- The paint method is called when the panel is displayed.
-
run()
- The run method is used to perform disk space checking.
VerifyPanel
public VerifyPanel()
- Creates a VerifyPanel with no name.
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.
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.
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
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.
consoleInteraction
public void consoleInteraction()
- This method is called during non-graphical execution (i.e.
- Overrides:
- consoleInteraction in class WizardComponent
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
createUI
public void createUI()
- This method creates the user interface.
- Overrides:
- createUI in class WizardLeaf
adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)
- Invoked when the scroll bar is used.
- Parameters:
- e - The Event that has occured.
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
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
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