All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.install.tasks.InstallLocaleTask

java.lang.Object
   |
   +----com.sun.wizards.core.Task
           |
           +----com.sun.wizards.tasks.DecoratorTask
                   |
                   +----com.sun.install.tasks.InstallLocaleTask

public class InstallLocaleTask
extends DecoratorTask
implements Serializable
The InstallLocaleTask is a task that follows the Decorator design pattern. This object can be used to perform or reverse a task only if a specific locale has been selected for installation either by being the default locale or by being selected on the command line with the "-locales" option.


Variable Index

 o desiredLocales
The locales this task is looking for. Deprecated.
 o invert
This flag indicates whether or not the test should be inverted. Deprecated.

Constructor Index

 o InstallLocaleTask()
Creates a InstallLocaleTask.
 o InstallLocaleTask(String, Task)
Creates an InstallLocaleTask that will perform the specified task on the specified locale.
 o InstallLocaleTask(String[], Task, boolean)
Creates an InstallLocaleTask that will perform the specified task on the specified locale.

Method Index

 o addRuntimeResources(Vector)
Add the runtime class requirements to the specified vector.
 o ignore(boolean)
Returns false if this task does not want to be ignored, or true if this task should be ignored.
 o isTargetLocale()
Returns true if this object is being executed on one of the target platforms that were specified at buildtime.

Variables

 o desiredLocales
 protected String desiredLocales[]
Note: desiredLocales is deprecated.

The locales this task is looking for.

 o invert
 protected boolean invert
Note: invert is deprecated.

This flag indicates whether or not the test should be inverted.

Constructors

 o InstallLocaleTask
 public InstallLocaleTask()
Creates a InstallLocaleTask.

 o InstallLocaleTask
 public InstallLocaleTask(String locale,
                          Task decoratedTask)
Creates an InstallLocaleTask that will perform the specified task on the specified locale.

Parameters:
locale - The locale that the decorated task should perform on.
decoratedTask - The task that is to be performed or reversed.
 o InstallLocaleTask
 public InstallLocaleTask(String locales[],
                          Task decoratedTask,
                          boolean invert)
Creates an InstallLocaleTask that will perform the specified task on the specified locale.

Parameters:
locales - The locales that the decorated task should perform on.
decoratedTask - The task that is to be performed or reversed.
invert - Invert the compatibility response.

Methods

 o isTargetLocale
 protected boolean isTargetLocale()
Returns true if this object is being executed on one of the target platforms that were specified at buildtime.

Returns:
boolean Whether the runtime selected locale(s) match the locale(s) specified at runtime.
 o ignore
 public boolean ignore(boolean direction)
Returns false if this task does not want to be ignored, or true if this task should be ignored. If this InstallLocaleTask is executing on one of the locales specified at buildtime, this method will return true.

Parameters:
direction - Used to determine how long this task will take in the specified direction. If the flag is true (indicating forward), this method should return the amount of time this task will take when executing the task in a forward direction.
Returns:
true or false, depending on if this Task should be ignored.
Overrides:
ignore in class DecoratorTask
 o addRuntimeResources
 public void addRuntimeResources(Vector resourceVector)
Add the runtime class requirements to the specified vector.

Parameters:
resourceVector - The vector containing all the required resources for this wizard.
Overrides:
addRuntimeResources in class DecoratorTask

All Packages  Class Hierarchy  This Package  Previous  Next  Index