org.universAAL.ui.dm.userInteraction
Class PendingDialogBuilder

Package class diagram package PendingDialogBuilder
java.lang.Object
  extended by org.universAAL.ui.dm.userInteraction.PendingDialogBuilder
All Implemented Interfaces:
IDialogBuilder, ISubmitGroupListener
Direct Known Subclasses:
PendingDialogBuilderWithSubmits

public class PendingDialogBuilder
extends Object
implements ISubmitGroupListener, IDialogBuilder

Build a form that list all pending dialogs for a user. Manage the interaction to allow the user to select a dialog, remove all dialogs, suspend a dialog...

Author:
amedrano created: 26-sep-2012 13:03:50

Field Summary
static String ABORT_ALL_OPEN_DIALOGS_CALL
          The submission ID to abort all open dialogs.
static String CLOSE_OPEN_DIALOGS_CALL
          The submission ID to close the dialog that shows all pending dialogs.
protected  IUIRequestPool dialogPool
          The DialogPool containing all dialogs for the user.
static String PROP_DLG_LIST_DIALOG_DATE
           
static String PROP_DLG_LIST_DIALOG_ID
           
static String PROP_DLG_LIST_DIALOG_LIST
           
static String PROP_DLG_LIST_DIALOG_TITLE
           
static String PROP_DLG_LIST_SENT_ITEMS
           
protected  List<String> sentItems
          the list of Dialog Id sent
static String SWITCH_TO_CALL_PREFIX
          Prefix of a submission ID to switch to a pending dialog.
protected  UserDialogManager userDM
           
 
Constructor Summary
PendingDialogBuilder(UserDialogManager udm)
          The constructor will build the form and send the request to the user.
 
Method Summary
 Form buildForm()
           
 void handle(UIResponse response)
          Handle the UIResponse for any of the SubmitionIDs declared in ISubmitGroupListener.listDeclaredSubmitIds().
 Set<String> listDeclaredSubmitIds()
          List the SubmissionIDs implementations of this interface will handle.
 void showDialog()
          Build and show dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SWITCH_TO_CALL_PREFIX

public static final String SWITCH_TO_CALL_PREFIX
Prefix of a submission ID to switch to a pending dialog. All pending dialogs are given in a Repeat control which automatically adds index numbers to this prefix.

See Also:
Constant Field Values

PROP_DLG_LIST_DIALOG_DATE

public static final String PROP_DLG_LIST_DIALOG_DATE
See Also:
Constant Field Values

PROP_DLG_LIST_DIALOG_LIST

public static final String PROP_DLG_LIST_DIALOG_LIST
See Also:
Constant Field Values

PROP_DLG_LIST_DIALOG_TITLE

public static final String PROP_DLG_LIST_DIALOG_TITLE
See Also:
Constant Field Values

PROP_DLG_LIST_DIALOG_ID

public static final String PROP_DLG_LIST_DIALOG_ID
See Also:
Constant Field Values

PROP_DLG_LIST_SENT_ITEMS

public static final String PROP_DLG_LIST_SENT_ITEMS
See Also:
Constant Field Values

CLOSE_OPEN_DIALOGS_CALL

public static final String CLOSE_OPEN_DIALOGS_CALL
The submission ID to close the dialog that shows all pending dialogs.

See Also:
Constant Field Values

ABORT_ALL_OPEN_DIALOGS_CALL

public static final String ABORT_ALL_OPEN_DIALOGS_CALL
The submission ID to abort all open dialogs. A button with this functionality is available in the dialog showing the list of all pending dialogs.

See Also:
Constant Field Values

dialogPool

protected IUIRequestPool dialogPool
The DialogPool containing all dialogs for the user.


sentItems

protected List<String> sentItems
the list of Dialog Id sent


userDM

protected UserDialogManager userDM
Constructor Detail

PendingDialogBuilder

public PendingDialogBuilder(UserDialogManager udm)
The constructor will build the form and send the request to the user.

Parameters:
udm -
Method Detail

buildForm

public Form buildForm()

listDeclaredSubmitIds

public Set<String> listDeclaredSubmitIds()
List the SubmissionIDs implementations of this interface will handle.

Specified by:
listDeclaredSubmitIds in interface ISubmitGroupListener
Returns:

handle

public void handle(UIResponse response)
Handle the UIResponse for any of the SubmitionIDs declared in ISubmitGroupListener.listDeclaredSubmitIds().

Specified by:
handle in interface ISubmitGroupListener

showDialog

public void showDialog()
Build and show dialog.

Specified by:
showDialog in interface IDialogBuilder


Copyright © 2014 universAAL Consortium. All Rights Reserved.