public class SimpleFormManager extends Object implements FormManager
FormManager is the simplest form of form management as it only
displays one form at a time. The order of the forms is the order of arrival.| Constructor and Description |
|---|
SimpleFormManager() |
| 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()
close the current dialog.
|
Resource |
cutDialog(String dialogID)
Callback for
Handler#cutDialog(String). |
void |
flush()
to be called when the handler finishes.
|
Collection |
getAllDialogs() |
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(HTMLUserGenerator renderer)
Associate a
HTMLUserGenerator to the FormManager. |
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 closeCurrentDialog()
closeCurrentDialog in interface FormManagerpublic void flush()
flush in interface FormManagerpublic Resource cutDialog(String dialogID)
Handler#cutDialog(String).cutDialog in interface FormManagerdialogID - DialogURI to cutpublic Form getParentOf(String formURI)
FormManagerForm of a given formURI.getParentOf in interface FormManagerformURI - the URI of the child FormFormpublic void setRenderer(HTMLUserGenerator renderer)
FormManagerHTMLUserGenerator to the FormManager.setRenderer in interface FormManagerrenderer - the HTMLUserGenerator to associate withpublic void missingInput(Input input)
FormManagermissingInput in interface FormManagerpublic void adaptationParametersChanged(String dialogID, String changedProp, Object newVal)
FormManageradaptationParametersChanged in interface FormManagerpublic Collection getAllDialogs()
getAllDialogs in interface FormManagerUIRequestsCopyright © 2018 universAAL Consortium. All rights reserved.