|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object context.arch.service.Service context.arch.service.DisplayChoiceService
This class implements the display choices service. It accepts a list of choices, a question to display and a title to display, displays them in a frame to the user and collects the user's choice.
Service
,
ActionListener
Field Summary | |
static java.lang.String |
CHOICE
Tag for a CHOICE |
static java.lang.String |
DISPLAY
Tag for the DISPLAY function |
static java.lang.String |
DISPLAY_CHOICES
Tag for the DISPLAY_CHOICES service |
static java.lang.String |
QUESTION
Tag for QUESTION to be asked |
static java.lang.String |
TITLE
Tag for TITLE of the frame |
Fields inherited from class context.arch.service.Service |
ASYNCHRONOUS, comm, EXECUTED, EXECUTING, FAILED, pending, SERVICE_REQUEST, SERVICE_REQUEST_REPLY, SERVICE_RESULT, SERVICE_RESULT_REPLY, STATUS, SYNCHRONOUS |
Constructor Summary | |
DisplayChoiceService(CommunicationsHandler comm)
Basic constructor that creates the service object. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
This method is called when the user interacts with the frame that displays choices. |
DataObject |
execute(ServiceInput serviceInput)
This method is called when a remote component requests that this service be executed. |
Methods inherited from class context.arch.service.Service |
getFunctionDescriptions, getName, getServiceDescription, sendServiceResult, setFunctionDescriptions, setName, toDataObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DISPLAY_CHOICES
public static final java.lang.String DISPLAY
public static final java.lang.String TITLE
public static final java.lang.String QUESTION
public static final java.lang.String CHOICE
Constructor Detail |
public DisplayChoiceService(CommunicationsHandler comm)
Service.setFunctionDescriptions(FunctionDescriptions)
Method Detail |
public DataObject execute(ServiceInput serviceInput)
execute
in class Service
serviceInput
- Object containing the necessary information to
execute the service
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
evt
- ActionEvent from a user interacting with the frameService#sendServiceResult(ServiceInput,AttributeNameValues)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |