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:
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"));
-
headerMsg
- The message that appears at the top of the panel
Deprecated.
-
infoMsgs
- Messages that appear within the panel.
Deprecated.
-
InfoPanel()
- Creates an InfoPanel with no name and no Info.
-
InfoPanel(String, Route, WizardTreeManager)
- Creates an InfoPanel with the specified name, the specified
route and wizard manager.
-
InfoPanel(WizardState, String)
- Creates an InfoPanel with the specified name
that presents the specified application for
installation.
-
InfoPanel(WizardState, String, Vector)
- Creates an InfoPanel with the specified name
that presents the specified application for
installation.
-
addRuntimeResources(Vector)
- Get the runtime classes required by this panel.
-
createUI()
- This method creates the user interface.
-
deserialize(DataInput)
- Deserialize this InfoPanel from the specified input
stream.
-
serialize(DataOutput)
- Serialize this InfoPanel to the specified output
stream.
-
setHeaderMsg(Msg)
- Changes header message to be displayed.
-
setInfoMsgs(Vector)
- Changes informational message(s) to be displayed.
headerMsg
protected Msg headerMsg
- Note: headerMsg is deprecated.
- The message that appears at the top of the panel
infoMsgs
protected Vector infoMsgs
- Note: infoMsgs is deprecated.
- Messages that appear within the panel. These make up the bulk of the Panel
InfoPanel
public InfoPanel()
- Creates an InfoPanel with no name and no Info.
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.
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
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.
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.
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.
createUI
public void createUI()
- This method creates the user interface.
- Overrides:
- createUI in class TextImagePanel
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
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
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