All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.install.panels.WelcomePanel

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

public class WelcomePanel
extends TextImagePanel
implements ActionListener, WindowListener
WelcomePanel is a panel that welcomes the user to the install wizard. This panel specifies the product that can be installed by the install wizard.


Graphic of a WelcomePanel


Here is the code for this wizard, which consists of a single panel:
import com.sun.wizards.core.*; import com.sun.wizards.builder.ArchiveWriter; import com.sun.wizards.panels.*; import com.sun.install.panels.*; import com.sun.install.products.*; public class SimpleWizardBuilder extends ArchiveWriter { private static String appName = "Webstart Wizards SDK"; public SimpleWizardBuilder() { super(); this.archiveName = "simpleWizard_WelcomePanel"; } protected void createClientTree() { super.createClientTree(); WizardState wizardState = getWizardState(); wizardState.setData(InstallConstants.productName, appName); // Create the client panels. WelcomePanel samplePanel = new WelcomePanel(wizardState, "Sample Panel"); root.addChild(samplePanel); // make "about" button panel show up wizardState.setData("aboutMsg", new Msg("This is my about button contents")); } protected void setResources() { super.setResources(); } public static void main(String[] args) { SimpleWizardBuilder simpleWizardBuilder = new SimpleWizardBuilder(); simpleWizardBuilder.writeArchive(); } }


Constructor Index

 o WelcomePanel()
Creates a WelcomePanel with no name.
 o WelcomePanel(String, Route, WizardTreeManager)
Creates a WelcomePanel with the specified name, the specified route and wizard manager.
 o WelcomePanel(WizardState, String)
Creates a WelcomePanel with the specified name that presents the specified application for installation.

Method Index

 o aboutButtonPressed()
The about button was pressed.
 o actionPerformed(ActionEvent)
A button on the WelcomePanel was pressed.
 o addRuntimeResources(Vector)
Get the runtime classes required by this panel.
 o createUI()
This method creates the user interface and performs the initialization sequence.
 o initializationComplete()
This method is called when the initialization sequence has been completed.
 o lookupComplete()
This method is called when the lookup instances sequence has been completed.
 o windowActivated(WindowEvent)
AWT Event method invoked when the About dialog window is activated.
 o windowClosed(WindowEvent)
AWT Event method invoked when the About dialog window is activated.
 o windowClosing(WindowEvent)
AWT Event method invoked when the About dialog window is closed.
 o windowDeactivated(WindowEvent)
AWT Event method invoked when the About dialog window is de-activated.
 o windowDeiconified(WindowEvent)
AWT Event method invoked when the About dialog window is de-iconified.
 o windowIconified(WindowEvent)
AWT Event method invoked when the About dialog window is iconified.
 o windowOpened(WindowEvent)
AWT Event method invoked when the About dialog window is opened.

Constructors

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

 o WelcomePanel
 public WelcomePanel(WizardState wizardState,
                     String name)
Creates a WelcomePanel with the specified name that presents the specified application for installation.

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

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

Methods

 o createUI
 public void createUI()
This method creates the user interface and performs the initialization sequence.

Overrides:
createUI in class TextImagePanel
 o actionPerformed
 public void actionPerformed(ActionEvent e)
A button on the WelcomePanel was pressed.

 o aboutButtonPressed
 public void aboutButtonPressed()
The about button was pressed.

 o windowActivated
 public void windowActivated(WindowEvent e)
AWT Event method invoked when the About dialog window is activated.

Parameters:
e - The event that occured.
 o windowClosed
 public void windowClosed(WindowEvent e)
AWT Event method invoked when the About dialog window is activated.

Parameters:
e - The event that occured.
 o windowClosing
 public void windowClosing(WindowEvent e)
AWT Event method invoked when the About dialog window is closed.

Parameters:
e - The event that occured.
 o windowDeactivated
 public void windowDeactivated(WindowEvent e)
AWT Event method invoked when the About dialog window is de-activated.

Parameters:
e - The event that occured.
 o windowDeiconified
 public void windowDeiconified(WindowEvent e)
AWT Event method invoked when the About dialog window is de-iconified.

Parameters:
e - The event that occured.
 o windowIconified
 public void windowIconified(WindowEvent e)
AWT Event method invoked when the About dialog window is iconified.

Parameters:
e - The event that occured.
 o windowOpened
 public void windowOpened(WindowEvent e)
AWT Event method invoked when the About dialog window is opened.

Parameters:
e - The event that occured.
 o initializationComplete
 public void initializationComplete()
This method is called when the initialization sequence has been completed.

 o lookupComplete
 public void lookupComplete()
This method is called when the lookup instances sequence has been completed.

 o addRuntimeResources
 public void addRuntimeResources(Vector resourceVector)
Get the runtime classes required by this panel.

Parameters:
resourceVector - The vector containing resources that this method will add to.
Overrides:
addRuntimeResources in class TextImagePanel

All Packages  Class Hierarchy  This Package  Previous  Next  Index