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.
-
LocalePanel()
- Creates a WizardComponent with a route to the root of the server
object tree.
-
LocalePanel(String, Route, WizardTreeManager)
- Creates a WizardComponent with the specified name, the specified
route and wizard manager.
-
LocalePanel(WizardState, String)
- Creates a WizardComponent with the specified name.
-
addRuntimeResources(Vector)
- Get the runtime classes required by this panel.
-
beginDisplay()
- This method is called when the WizardComponent is displayed.
-
consoleInteraction()
- Shows panel in CLI mode, prompts for user input
-
createLocale(String)
- Creates a locale from the specified localeName.
-
createUI()
- This method creates the user interface.
-
deserialize(DataInput)
- Deserialize this WizardComponent from the specified input
stream.
-
isDisplayComplete()
- Returns true if this WizardComponent is finished displaying.
-
localeName(Locale)
- Given the supplied locale object, return its locale name
-
reset(Object)
- Reset this component, given the specified information.
-
serialize(DataOutput)
- Serialize this WizardComponent to the specified output
stream.
-
setDescription(String)
- Sets the panel description that appears at the
top of the LocalePanel.
-
updateLocales(Vector)
- Update WizardState with new selected locale vector.
LocalePanel
public LocalePanel()
- Creates a WizardComponent with a route to the root of the server
object tree.
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.
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.
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.
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.
beginDisplay
public void beginDisplay()
- This method is called when the WizardComponent is displayed.
- Overrides:
- beginDisplay in class WizardComponent
createUI
public void createUI()
- This method creates the user interface.
- Overrides:
- createUI in class WizardLeaf
consoleInteraction
public void consoleInteraction()
- Shows panel in CLI mode, prompts for user input
- Overrides:
- consoleInteraction in class WizardComponent
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.
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
updateLocales
protected void updateLocales(Vector newLocales)
- Update WizardState with new selected locale vector.
- Parameters:
- newLocales - The locales to be selected.
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
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
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
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