org.universAAL.support.utils
Class WrapperUI

Package class diagram package WrapperUI
java.lang.Object
  extended by org.universAAL.middleware.bus.member.BusMember
      extended by org.universAAL.middleware.bus.member.Caller
          extended by org.universAAL.middleware.ui.UICaller
              extended by org.universAAL.support.utils.WrapperUI

public class WrapperUI
extends UICaller

This class is for internal use by the utility API only. It is just a UI Caller that associates calls to its handleUIResponse method to an associated ICListener.

Author:
alfiva

Field Summary
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
protected WrapperUI(ModuleContext context)
          Constructor.
 
Method Summary
 void communicationChannelBroken()
          Method to be called when the communication of the UICaller with the IDialogManager is lost.
 void dialogAborted(String arg0, Resource data)
          Dialog aborted.
 void handleUIResponse(UIResponse r)
          Handle UIResponse - that comes from UIHandler carrying user input.
 void setListener(IUIListener listener)
          Set the IUIListener.
 
Methods inherited from class org.universAAL.middleware.ui.UICaller
abortDialog, adaptationParametersChanged, busDyingOut, dialogSuspended, getMyID, handleReply, resumeDialog, sendUIRequest
 
Methods inherited from class org.universAAL.middleware.bus.member.BusMember
close, getType, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperUI

protected WrapperUI(ModuleContext context)
Constructor.

Parameters:
context - The uAAL Module Context.
Method Detail

communicationChannelBroken

public void communicationChannelBroken()
Description copied from class: UICaller
Method to be called when the communication of the UICaller with the IDialogManager is lost. Any pending request might be resend at this point. All affected pending dialogs will be aborted right after this call (with null data).

Specified by:
communicationChannelBroken in class UICaller

dialogAborted

public void dialogAborted(String arg0,
                          Resource data)
Description copied from class: UICaller
Dialog aborted.

Specified by:
dialogAborted in class UICaller
Parameters:
arg0 - the dialog id
data - the data collected up until abortion, it might be null if the data could not be retrieved.

handleUIResponse

public void handleUIResponse(UIResponse r)
Description copied from class: UICaller
Handle UIResponse - that comes from UIHandler carrying user input.

Specified by:
handleUIResponse in class UICaller
Parameters:
r - the UIResponse

setListener

public void setListener(IUIListener listener)
Set the IUIListener.

Parameters:
listener - The IUIListener to associate.


Copyright © 2014 universAAL Consortium. All Rights Reserved.