All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.install.panels.DesktopPanel

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

public class DesktopPanel
extends WizardLeaf
The DesktopPanel presents the user with a choice to add items to the desktop for a product tree


Constructor Index

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

Method Index

 o addRuntimeResources(Vector)
Get the runtime classes required by this panel.
 o createUI()
This method creates the user interface for the DesktopPanel.
 o deserialize(DataInput)
Deserialize this panel from the specified input stream.
 o getButtonMask()
Returns information suggesting which buttons should be displayed for this panel.
 o isDisplayComplete()
Returns true if this DesktopPanel is finished displaying.
 o sequenceComplete()
Callback method.
 o serialize(DataOutput)
Serialize this panel to the specified output stream.
 o setDescription(Msg)
Sets the description text for the panel.
 o setNoMessage(Msg)
Sets the description text for the no button.
 o setYesMessage(Msg)
Sets the label for the accept desktop items control.
 o skip()
This method returns true if this DesktopPanel wants to be skipped during traversal of this tree.

Constructors

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

 o DesktopPanel
 public DesktopPanel(WizardState wizardState,
                     String name)
Creates a DesktopPanel with the specified name for the specified application.

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

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

Methods

 o setYesMessage
 public void setYesMessage(Msg yesMessage)
Sets the label for the accept desktop items control. The text should describe the consequences of selecting a desktop items to be added.

Parameters:
yesMessage - The label of the "yes" control.
 o setDescription
 public void setDescription(Msg description)
Sets the description text for the panel. The description is the text message that appears at the top of the panel. The purpose of this description is to inform the user that this panel is used to add desktop icons and menu items for the product that was installed.

Parameters:
description - The localized description text.
 o setNoMessage
 public void setNoMessage(Msg noMessage)
Sets the description text for the no button. The text should describe the consequences of not adding desktop support

Parameters:
noMessage - The label for the "no" control.
 o skip
 public boolean skip()
This method returns true if this DesktopPanel wants to be skipped during traversal of this tree. This panel only chooses to be skipped if the product was not installed.

Returns:
true if this object wants to be skipped in the traversal of the tree. false otherwise.
Overrides:
skip in class WizardComponent
 o isDisplayComplete
 public boolean isDisplayComplete()
Returns true if this DesktopPanel is finished displaying. This method is used to set the user's selection into the WizardState before moving to the next panel.

Returns:
true if the display of this panel is complete, false otherwise
Overrides:
isDisplayComplete in class WizardComponent
 o sequenceComplete
 public void sequenceComplete()
Callback method. This method is called when the desktop sequence has completed.

 o createUI
 public void createUI()
This method creates the user interface for the DesktopPanel.

Overrides:
createUI in class WizardLeaf
 o serialize
 protected void serialize(DataOutput out)
Serialize this panel to the specified output stream.

Parameters:
out - The output stream to which this panel will be serialized.
Overrides:
serialize in class WizardComponent
 o deserialize
 protected void deserialize(DataInput in)
Deserialize this panel from the specified input stream.

Parameters:
in - The input stream from which this panel will be deserialized.
Overrides:
deserialize in class WizardComponent
 o getButtonMask
 public int getButtonMask()
Returns information suggesting which buttons should be displayed for this panel. The DesktopPanel does not display a back button.

Returns:
A button mask identifying valid navigation buttons.
Overrides:
getButtonMask in class WizardLeaf
 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 WizardLeaf

All Packages  Class Hierarchy  This Package  Previous  Next  Index