All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.install.panels.ProductPanel
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.ProductPanel
- public class ProductPanel
- extends WizardLeaf
- implements AdjustmentListener, InitializationListener
The ProductPanel class is used to present a set of products to the
user. The products will have the following options:
- Do not install
- Default installation (won't ask the user questions)
- Custom installation (will ask the user questions)
As an example, here is a Top-level installer with 5 products:
The code to create this panel is:
String myName = "SampleProductPanel";
ProductPanel samplePanel = new ProductPanel(wizardState, myName);
Note that the names and possible selections for each product comes from the
products themselves, not from the panel initialization code. The WizardState
tree is examined and each name extracted from each WizardState, along with the
type of install, from the InstallConstants.productInstallTypes vector, which
is a vector of Integers corresponding to the InstallArchiveWriter.NO_INSTALL
InstallArchiveWriter.DEFAULT_INSTALL, and InstallArchiveWriter.CUSTOM_INSTALL.
-
ProductPanel()
- Creates a ProductPanel with a route to the root of the server
object tree.
-
ProductPanel(String, Route, WizardTreeManager)
- Creates a ProductPanel with the specified name, the specified
route and wizard manager.
-
ProductPanel(WizardState, String)
- Creates a ProductPanel with the specified name.
-
addRuntimeResources(Vector)
- Get the runtime classes required by this panel.
-
adjustmentValueChanged(AdjustmentEvent)
- Invoked when the scroll bar is used.
-
beginDisplay()
- This method is called each time the ProductPanel is displayed.
-
consoleInteraction()
- This method is called during non-graphical execution (i.e.
-
createUI()
- This method creates the user interface.
-
initialize(InitializeEvent)
- Perform initialization of this panel that must be done after the
WizardState object has initialized.
-
isDisplayComplete()
- Returns true if this WizardComponent is finished displaying.
-
paint(Graphics)
- The paint method is called when the panel is displayed.
ProductPanel
public ProductPanel()
- Creates a ProductPanel with a route to the root of the server
object tree.
ProductPanel
public ProductPanel(WizardState wizardState,
String name)
- Creates a ProductPanel with the specified name.
- Parameters:
- wizardState - The buildtime WizardState.
- name - The name for this ProductPanel.
ProductPanel
public ProductPanel(String name,
Route route,
WizardTreeManager wizardManager)
- Creates a ProductPanel with the specified name, the specified
route and wizard manager.
- Parameters:
- name - The name for this ProductPanel.
- route - The route to the appropriate server side object.
- wizardManager - The wizardManager responsible for this component.
initialize
public void initialize(InitializeEvent e)
- Perform initialization of this panel that must be done after the
WizardState object has initialized. This method inspects the child
product installers to determine if they request not to be installed.
This choice is expressed in the child wizard by setting the key/value
pair InstallConstants.removeProduct="true" into the child's WizardState.
createUI
public void createUI()
- This method creates the user interface.
- Overrides:
- createUI in class WizardLeaf
consoleInteraction
public void consoleInteraction()
- This method is called during non-graphical execution (i.e.
- Overrides:
- consoleInteraction in class WizardComponent
beginDisplay
public void beginDisplay()
- This method is called each time the ProductPanel is displayed.
- Overrides:
- beginDisplay in class WizardComponent
adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)
- Invoked when the scroll bar is used.
- Parameters:
- e - The Event that has occured.
paint
public void paint(Graphics g)
- The paint method is called when the panel is displayed.
- Parameters:
- g - The Graphics object for this panel.
- Overrides:
- paint in class Container
isDisplayComplete
public boolean isDisplayComplete()
- Returns true if this WizardComponent is finished displaying.
This method can be used to verify user input.
- Returns:
- true if the display of this WizardComponent is
complete; false otherwise.
- Overrides:
- isDisplayComplete in class WizardComponent
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 WizardLeaf
All Packages Class Hierarchy This Package Previous Next Index