All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface org.jcon.df.edit.Task

public interface Task
extends MessageListener
This interface represents a "task" the user needs to perform. Each task has one or more windows, which it can manipulate through the window's WidgetSet.


Method Index

 o closeWindowRequested(String)
Notifies the task that the user has attempted to close the view named viewName.
 o commandRequested(String, String)
The task should process the command.
 o getMessageDefs()
Returns a Vector of MessageDefs defining the Messages the task fires.
 o processEditEvent(EditEvent)
The task should check the event type and process it if desired.
 o setContainerServices(ContainerServices)
Sets the entry point to the ContainerServices subsystem.
 o setTaskLogicFascade(TaskLogicFascade)
Sets the all important source of what the task needs to accomplish its view manipulation.
 o start(Message)
The instance should start working, such as populating its view with data using ContainerServices.

Methods

 o setTaskLogicFascade

 public abstract void setTaskLogicFascade(TaskLogicFascade fascade)

Sets the all important source of what the task needs to accomplish its view manipulation.

 o setContainerServices

 public abstract void setContainerServices(ContainerServices services)

Sets the entry point to the ContainerServices subsystem. This can be used to collaborate with other classes.

 o start

 public abstract void start(Message startMessage)

The instance should start working, such as populating its view with data using ContainerServices.

Parameters:
startMessage - the Message that TaskLogic received for its own start. This may contain task specific data,
 o closeWindowRequested

 public abstract void closeWindowRequested(String viewName)

Notifies the task that the user has attempted to close the view named viewName. If there is only one window for the task then the viewName is irrelevant.

 o processEditEvent

 public abstract void processEditEvent(EditEvent evt)

The task should check the event type and process it if desired. This is a polymorphic event.

 o commandRequested

 public abstract void commandRequested(String viewName,

                                       String command)

The task should process the command. This is a convenience method for EditEvent.COMMAND.

 o getMessageDefs

 public abstract Vector getMessageDefs()

Returns a Vector of MessageDefs defining the Messages the task fires.



All Packages  Class Hierarchy  This Package  Previous  Next  Index