public interface DialogVisitor
The Application.visitAll(DialogVisitor)-method is one possible
application of this interface.
| Modifier and Type | Method and Description |
|---|---|
void |
done()
Callback when all dialogs are visited.
|
boolean |
visit(ApplicationMethods app,
G9DialogController gdc)
Visit one dialog.
|
boolean visit(ApplicationMethods app, G9DialogController gdc)
app - Current applicationgdc - Dialog to visitvoid done()
If you need to synchronously wait for a visitor running in a different thread, invoke the visit loop like this:
DialogVisitor myVisitor= ...
synchronized (myVisitor) {
app.visitAll(myVisitor); // Maybe on another thread
myVisitor.wait();
} // Exception handling ommitted
moreStuff...
and implement the done() method simply as follows:
public synchronized void done() {
notifyAll();
}
Copyright © 2006–2018 Esito AS. All rights reserved.