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.
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();
}
}
-
WelcomePanel()
- Creates a WelcomePanel with no name.
-
WelcomePanel(String, Route, WizardTreeManager)
- Creates a WelcomePanel with the specified name, the specified
route and wizard manager.
-
WelcomePanel(WizardState, String)
- Creates a WelcomePanel with the specified name
that presents the specified application for
installation.
-
aboutButtonPressed()
- The about button was pressed.
-
actionPerformed(ActionEvent)
- A button on the WelcomePanel was pressed.
-
addRuntimeResources(Vector)
- Get the runtime classes required by this panel.
-
createUI()
- This method creates the user interface and performs the
initialization sequence.
-
initializationComplete()
- This method is called when the initialization sequence has
been completed.
-
lookupComplete()
- This method is called when the lookup instances sequence has
been completed.
-
windowActivated(WindowEvent)
- AWT Event method invoked when the About dialog window is activated.
-
windowClosed(WindowEvent)
- AWT Event method invoked when the About dialog window is activated.
-
windowClosing(WindowEvent)
- AWT Event method invoked when the About dialog window is closed.
-
windowDeactivated(WindowEvent)
- AWT Event method invoked when the About dialog window is de-activated.
-
windowDeiconified(WindowEvent)
- AWT Event method invoked when the About dialog window is de-iconified.
-
windowIconified(WindowEvent)
- AWT Event method invoked when the About dialog window is iconified.
-
windowOpened(WindowEvent)
- AWT Event method invoked when the About dialog window is opened.
WelcomePanel
public WelcomePanel()
- Creates a WelcomePanel with no name.
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.
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.
createUI
public void createUI()
- This method creates the user interface and performs the
initialization sequence.
- Overrides:
- createUI in class TextImagePanel
actionPerformed
public void actionPerformed(ActionEvent e)
- A button on the WelcomePanel was pressed.
aboutButtonPressed
public void aboutButtonPressed()
- The about button was pressed.
windowActivated
public void windowActivated(WindowEvent e)
- AWT Event method invoked when the About dialog window is activated.
- Parameters:
- e - The event that occured.
windowClosed
public void windowClosed(WindowEvent e)
- AWT Event method invoked when the About dialog window is activated.
- Parameters:
- e - The event that occured.
windowClosing
public void windowClosing(WindowEvent e)
- AWT Event method invoked when the About dialog window is closed.
- Parameters:
- e - The event that occured.
windowDeactivated
public void windowDeactivated(WindowEvent e)
- AWT Event method invoked when the About dialog window is de-activated.
- Parameters:
- e - The event that occured.
windowDeiconified
public void windowDeiconified(WindowEvent e)
- AWT Event method invoked when the About dialog window is de-iconified.
- Parameters:
- e - The event that occured.
windowIconified
public void windowIconified(WindowEvent e)
- AWT Event method invoked when the About dialog window is iconified.
- Parameters:
- e - The event that occured.
windowOpened
public void windowOpened(WindowEvent e)
- AWT Event method invoked when the About dialog window is opened.
- Parameters:
- e - The event that occured.
initializationComplete
public void initializationComplete()
- This method is called when the initialization sequence has
been completed.
lookupComplete
public void lookupComplete()
- This method is called when the lookup instances sequence has
been completed.
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