org.universAAL.ui.handler.gui.swing.formManagement
Interface FormManager

Package class diagram package FormManager
All Known Implementing Classes:
HierarchicalFormManager, OverlayFormManager, QueuedFormManager, SimpleFormManager

public interface FormManager

Interface to implement Form management Logic.

Author:
amedrano

Method Summary
 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()
          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.
 

Method Detail

addDialog

void addDialog(UIRequest oe)
Callback for incoming dialogs. This method will model and render (if necessary) the Form.

Parameters:
oe - UIRequest that includes the dialog to show

getCurrentDialog

UIRequest getCurrentDialog()
get the Dialog Being currently displayed.

Returns:
the UIRequest currently being displayed

closeCurrentDialog

void closeCurrentDialog()
close the current dialog.


cutDialog

Resource cutDialog(String dialogID)
Callback for Handler.cutDialog(String).

Parameters:
dialogID - DialogURI to cut
Returns:
result of the operation

flush

void flush()
to be called when the handler finishes. it should close all dialogs, and pending dialogs.


getParentOf

Form getParentOf(String formURI)
get the parent Form of a given formURI.

Parameters:
formURI - the URI of the child Form
Returns:
the parent of the child Form

setRenderer

void setRenderer(Renderer renderer)
Associate a Renderer to the FormManager.

Parameters:
renderer - the Renderer to associate with

getAllDialogs

Collection getAllDialogs()
Consult all the added dialogs that are not closed yet.

Returns:
a Collection of UIRequests

missingInput

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).

Parameters:
input -

adaptationParametersChanged

void adaptationParametersChanged(String dialogID,
                                 String changedProp,
                                 Object newVal)
Callback for when the bus instructs some parameters have changed. Default behavior should be to re-render the form.

Parameters:
dialogID -
changedProp -
newVal -


Copyright © 2014 universAAL Consortium. All Rights Reserved.