
public final class QueuedFormManager extends Object implements FormManager
FormManager queues the UIRequests in a priority queue
according to the dialog's priority. And displays the most prioritarial
UIRequest. Message type dialogs don't enter the priority queue.UIRequestPriorityComparator| Modifier and Type | Field and Description |
|---|---|
static int |
QUEUE_MAX
Maximum # dialogs to be queued
|
| Constructor and Description |
|---|
QueuedFormManager()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
adaptationParametersChanged(String dialogID,
String changedProp,
Object newVal)
Callback for when the bus instructs some parameters have changed.
|
void |
addDialog(UIRequest oe)
Callback for incoming dialogs.
|
void |
closeCurrentDialog()
Disposes of current dialog, and tries to load next.
|
Resource |
cutDialog(String dialogID)
Callback for
Handler.cutDialog(String). |
void |
flush()
to be called when the handler finishes.
|
Collection |
getAllDialogs()
Consult all the added dialogs that are not closed yet.
|
UIRequest |
getCurrentDialog()
get the Dialog Being currently displayed.
|
Form |
getParentOf(String formURI)
get the parent
Form of a given formURI. |
void |
missingInput(Input input)
This method is called when a Submit has detected there is a missing input
it needs, therefore the model for that input should be notified (so the
user knows).
|
void |
setRenderer(Renderer renderer)
Associate a
Renderer to the FormManager. |
public static final int QUEUE_MAX
public void addDialog(UIRequest oe)
Form.addDialog in interface FormManageroe - UIRequest that includes the dialog to showpublic UIRequest getCurrentDialog()
getCurrentDialog in interface FormManagerUIRequest currently being displayedpublic void flush()
flush in interface FormManagerpublic void closeCurrentDialog()
closeCurrentDialog in interface FormManagerpublic Resource cutDialog(String dialogID)
Handler.cutDialog(String).cutDialog in interface FormManagerdialogID - DialogURI to cutpublic Form getParentOf(String formURI)
Form of a given formURI.getParentOf in interface FormManagerformURI - the URI of the child FormFormpublic void setRenderer(Renderer renderer)
FormManagerRenderer to the FormManager.setRenderer in interface FormManagerrenderer - the Renderer to associate withpublic Collection getAllDialogs()
FormManagergetAllDialogs in interface FormManagerUIRequestspublic void missingInput(Input input)
FormManagermissingInput in interface FormManagerpublic void adaptationParametersChanged(String dialogID, String changedProp, Object newVal)
FormManageradaptationParametersChanged in interface FormManagerCopyright © 2018 universAAL Consortium. All rights reserved.