All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.event.TaskLaunchRequestEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----com.sgi.sysadm.ui.event.TaskLaunchRequestEvent

public class TaskLaunchRequestEvent
extends EventObject
An object that specifies an Task. From the data contained in this object, a TaskLaunchRequestListener can create an Task of the type that the source is requesting be launched.

See the TaskLaunchRequestListener documentation about how this event is used.

See Also:
TaskLaunchRequestListener, Task

Constructor Index

 o TaskLaunchRequestEvent(Object, TaskLoader)
Constructor to use when there are no operands or TaskData to pass to the new Task.
 o TaskLaunchRequestEvent(Object, TaskLoader, Item)
Constructor to use when there is an Item to pass to the new Task as an operand.
 o TaskLaunchRequestEvent(Object, TaskLoader, Vector, TaskData)
Constructor to use when there are operands or TaskData to pass to the new Task.

Method Index

 o getOperands()
Get the operands to pass to the Task.
 o getTaskData()
Get the TaskData attributes to set on the Task.
 o getTaskLoader()
Get the TaskLoader representing the task to be launched.
 o setOperands(Vector)
Set the operands to pass to the Task.
 o setTaskData(TaskData)
Set the TaskData attributes to set on the Task.

Constructors

 o TaskLaunchRequestEvent
 public TaskLaunchRequestEvent(Object source,
                               TaskLoader taskLoader,
                               Vector operands,
                               TaskData taskData)
Constructor to use when there are operands or TaskData to pass to the new Task.

Parameters:
source - The source of the event.
taskLoader - The TaskLoader representing the task to be launched.
operands - A Vector of Object containing the set of operands to pass to the Task. operands may be null or empty if there are no operands to pass.
taskData - TaskData containing the TaskData attributes to set on the new Task. taskData may be null or empty if there are no attributes to set.
 o TaskLaunchRequestEvent
 public TaskLaunchRequestEvent(Object source,
                               TaskLoader taskLoader,
                               Item item)
Constructor to use when there is an Item to pass to the new Task as an operand.

Parameters:
source - The source of this event.
taskLoader - The TaskLoader representing the task to be launched.
item - An Item to be passed to the Task as an operand.
 o TaskLaunchRequestEvent
 public TaskLaunchRequestEvent(Object source,
                               TaskLoader taskLoader)
Constructor to use when there are no operands or TaskData to pass to the new Task.

Parameters:
source - The source of this event.
taskLoader - The TaskLoader representing the task to be launched.

Methods

 o getTaskLoader
 public TaskLoader getTaskLoader()
Get the TaskLoader representing the task to be launched.

Returns:
A TaskLoader
 o getOperands
 public Vector getOperands()
Get the operands to pass to the Task.

Returns:
A Vector of objects to pass to the Task. Will be null if there are no operands.
 o setOperands
 public void setOperands(Vector operands)
Set the operands to pass to the Task.

Parameters:
operands - A Vector of Objects to pass to the Task as operands. May be null or empty if there are no operands to pass.
 o getTaskData
 public TaskData getTaskData()
Get the TaskData attributes to set on the Task.

Returns:
TaskData containing the attributes to set on the Task. Will be null if there are no attributes to set.
 o setTaskData
 public void setTaskData(TaskData taskData)
Set the TaskData attributes to set on the Task.

Parameters:
taskData - TaskData containing the attributes to set on the Task. May be null or empty if there are no attributes to set.

All Packages  Class Hierarchy  This Package  Previous  Next  Index