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) . |
protected void |
disposeFrame() |
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).
|
protected void |
renderFrame() |
void |
setRenderer(Renderer renderer)
Associate a
Renderer to the FormManager . |
public void addDialog(UIRequest oe)
Form
.addDialog
in interface FormManager
oe
- UIRequest
that includes the dialog to showpublic UIRequest getCurrentDialog()
getCurrentDialog
in interface FormManager
UIRequest
currently being displayedpublic void closeCurrentDialog()
closeCurrentDialog
in interface FormManager
public void flush()
flush
in interface FormManager
public Resource cutDialog(String dialogID)
Handler.cutDialog(String)
.cutDialog
in interface FormManager
dialogID
- DialogURI to cutpublic Form getParentOf(String formURI)
FormManager
Form
of a given formURI.getParentOf
in interface FormManager
formURI
- the URI of the child Form
Form
public void setRenderer(Renderer renderer)
FormManager
Renderer
to the FormManager
.setRenderer
in interface FormManager
renderer
- the Renderer
to associate withprotected void renderFrame()
protected void disposeFrame()
public Collection getAllDialogs()
FormManager
getAllDialogs
in interface FormManager
UIRequest
spublic void missingInput(Input input)
FormManager
missingInput
in interface FormManager
public void adaptationParametersChanged(String dialogID, String changedProp, Object newVal)
FormManager
adaptationParametersChanged
in interface FormManager
Copyright © 2018 universAAL Consortium. All rights reserved.