All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.install.panels.LocalePanel

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

public class LocalePanel
extends WizardLeaf
The LocalePanel allows a user to select the set of supported language locales to be installed. It shows all locales supported by the product. If the list of supported locales includes the current locale, that locale is selected by default, unless overridden by the commandline or builder.


Constructor Index

 o LocalePanel()
Creates a WizardComponent with a route to the root of the server object tree.
 o LocalePanel(String, Route, WizardTreeManager)
Creates a WizardComponent with the specified name, the specified route and wizard manager.
 o LocalePanel(WizardState, String)
Creates a WizardComponent with the specified name.

Method Index

 o addRuntimeResources(Vector)
Get the runtime classes required by this panel.
 o beginDisplay()
This method is called when the WizardComponent is displayed.
 o consoleInteraction()
Shows panel in CLI mode, prompts for user input
 o createLocale(String)
Creates a locale from the specified localeName.
 o createUI()
This method creates the user interface.
 o deserialize(DataInput)
Deserialize this WizardComponent from the specified input stream.
 o isDisplayComplete()
Returns true if this WizardComponent is finished displaying.
 o localeName(Locale)
Given the supplied locale object, return its locale name
 o reset(Object)
Reset this component, given the specified information.
 o serialize(DataOutput)
Serialize this WizardComponent to the specified output stream.
 o setDescription(String)
Sets the panel description that appears at the top of the LocalePanel.
 o updateLocales(Vector)
Update WizardState with new selected locale vector.

Constructors

 o LocalePanel
 public LocalePanel()
Creates a WizardComponent with a route to the root of the server object tree.

 o LocalePanel
 public LocalePanel(WizardState wizardState,
                    String name)
Creates a WizardComponent with the specified name.

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

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

Methods

 o createLocale
 public static Locale createLocale(String localeName)
Creates a locale from the specified localeName.

Parameters:
localeName - The name of the Locale object to create.
Returns:
The created Locale object.
 o localeName
 public static String localeName(Locale locale)
Given the supplied locale object, return its locale name

Parameters:
locale - The Locale object.
Returns:
A String representing the name of the specified Locale object.
 o beginDisplay
 public void beginDisplay()
This method is called when the WizardComponent is displayed.

Overrides:
beginDisplay in class WizardComponent
 o createUI
 public void createUI()
This method creates the user interface.

Overrides:
createUI in class WizardLeaf
 o consoleInteraction
 public void consoleInteraction()
Shows panel in CLI mode, prompts for user input

Overrides:
consoleInteraction in class WizardComponent
 o setDescription
 public void setDescription(String description)
Sets the panel description that appears at the top of the LocalePanel.

Parameters:
description - The description of this panel.
 o 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
 o updateLocales
 protected void updateLocales(Vector newLocales)
Update WizardState with new selected locale vector.

Parameters:
newLocales - The locales to be selected.
 o reset
 public void reset(Object info)
Reset this component, given the specified information. This method may be called when a user backtracks in the client wizard tree and changes a fundamental setting. The panel that enabled the modification might traverse subsequent panels and call this method resynchronize all panels with the user's choice. When this method is called, the user selected "Default" installation. This panel must reset itself to indicate only the default locales.

Parameters:
Object - The information required to perform a reset.
Overrides:
reset in class WizardComponent
 o serialize
 protected void serialize(DataOutput out)
Serialize this WizardComponent 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 WizardComponent
See Also:
serializeChildren
 o deserialize
 protected void deserialize(DataInput in)
Deserialize this WizardComponent from the specified input stream. This method does not deserialize its children.

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