|
DJAVA | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectau.gov.aao.drama.DramaMonitor.MonResponse
public static class DramaMonitor.MonResponse
Used to handle DramaMonitor responses.
An object of this type is used to handle messages returned in response to a Monitor transaction. Users of the class can override the SucessCompletion(), ErrorCompletion(), Started() or Changed() method in order to intercept these messages and implemented the user's perfered functionally.
| Constructor Summary | |
|---|---|
DramaMonitor.MonResponse()
Initialise a Monitor Response object. |
|
| Method Summary | |
|---|---|
void |
Changed(DramaMonitor monitor,
DramaTask task,
String name,
Arg value)
Handle the parameter changed monitor message. |
boolean |
ErrorCompletion(DramaMonitor monitor,
DramaTask task)
Handle the completion with an error of a monitor transaction. |
void |
Started(DramaMonitor monitor,
DramaTask task)
Handle the monitor started message. |
boolean |
SuccessCompletion(DramaMonitor monitor,
DramaTask task)
Handle the sucessfull completion of a monitor transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DramaMonitor.MonResponse()
| Method Detail |
|---|
public boolean SuccessCompletion(DramaMonitor monitor,
DramaTask task)
throws DramaException
The behvaiour of the default implementation is to simply return false.
Note When used in its intended way, this method is always invoked in the DRAMA thread and with the DRAMA semaphore taken. Please see thread Issues for important information, particuarly if you are updating Swing widgets from your implemention of this method.
monitor - The monitor object involvedtask - The DRAMA task object involved.
DramaException - Thrown on errors in the DRAMA code.
public boolean ErrorCompletion(DramaMonitor monitor,
DramaTask task)
throws DramaException
monitor - The monitor object involvedtask - The DRAMA task object involved.
DramaException - Thrown on errors in the DRAMA code.
public void Started(DramaMonitor monitor,
DramaTask task)
throws DramaException
monitor - The monitor object involvedtask - The DRAMA task object involved.
DramaException - Thrown on errors in the DRAMA code.
public void Changed(DramaMonitor monitor,
DramaTask task,
String name,
Arg value)
throws DramaException
monitor - The monitor object involvedtask - The DRAMA task object involved.name - The name of the parameter the value of which has
changed.value - The SDS id (As an Arg item) of the parameter value.
DramaException - Thrown on errors in the DRAMA code.
|
DJAVA | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tjf@aaoepp.aao.gov.au.