All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.install.panels.InfoPanel

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

public class InfoPanel
extends TextImagePanel
InfoPanel is a panel that contains a set of information messages. It has minimal configuration required.

Here is an example InfoPanel:

Graphic of an InfoPanel

The code to create this panel is:

InfoPanel samplePanel = new InfoPanel(wizardState, "SampleName"); Vector msgs = new Vector(); msgs.addElement(new Msg("This is the first message")); msgs.addElement(new Msg("This is the second message")); samplePanel.setInfoMsgs(msgs); samplePanel.setHeaderMsg(new Msg("Sample Header"));


Variable Index

 o headerMsg
The message that appears at the top of the panel Deprecated.
 o infoMsgs
Messages that appear within the panel. Deprecated.

Constructor Index

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

Method Index

 o addRuntimeResources(Vector)
Get the runtime classes required by this panel.
 o createUI()
This method creates the user interface.
 o deserialize(DataInput)
Deserialize this InfoPanel from the specified input stream.
 o serialize(DataOutput)
Serialize this InfoPanel to the specified output stream.
 o setHeaderMsg(Msg)
Changes header message to be displayed.
 o setInfoMsgs(Vector)
Changes informational message(s) to be displayed.

Variables

 o headerMsg
 protected Msg headerMsg
Note: headerMsg is deprecated.

The message that appears at the top of the panel

 o infoMsgs
 protected Vector infoMsgs
Note: infoMsgs is deprecated.

Messages that appear within the panel. These make up the bulk of the Panel

Constructors

 o InfoPanel
 public InfoPanel()
Creates an InfoPanel with no name and no Info.

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

Parameters:
wizardState - The buildtime WizardState.
name - The name for this InfoPanel.
 o InfoPanel
 public InfoPanel(WizardState wizardState,
                  String name,
                  Vector msgs)
Creates an InfoPanel with the specified name that presents the specified application for installation. Also displays the supplied Msgs, one above the other.

Parameters:
wizardState - The buildtime WizardState.
name - The name for this InfoPanel.
msgs - The desired messages to be displayed on panel
 o InfoPanel
 public InfoPanel(String name,
                  Route route,
                  WizardTreeManager wizardManager)
Creates an InfoPanel with the specified name, the specified route and wizard manager.

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

Methods

 o setHeaderMsg
 public void setHeaderMsg(Msg msg)
Changes header message to be displayed. Note that this does not update the display immediately.

Parameters:
msg - The new message to be displayed.
 o setInfoMsgs
 public void setInfoMsgs(Vector msgs)
Changes informational message(s) to be displayed. Note that this does not update the display immediately.

Parameters:
msg - The new message(s) to be displayed.
 o createUI
 public void createUI()
This method creates the user interface.

Overrides:
createUI in class TextImagePanel
 o serialize
 protected void serialize(DataOutput out)
Serialize this InfoPanel to the specified output stream. This method does not save its children.

Parameters:
out - The output stream to which this WizardComponent will be serialized.
Overrides:
serialize in class TextImagePanel
See Also:
serializeChildren
 o deserialize
 protected void deserialize(DataInput in)
Deserialize this InfoPanel from the specified input stream. This method does not deserialize its children.

Parameters:
in - The input stream from which this InfoPanel will be deserialized.
Overrides:
deserialize in class TextImagePanel
See Also:
deserializeChildren
 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 TextImagePanel

All Packages  Class Hierarchy  This Package  Previous  Next  Index