org.universAAL.ui.handler.sms
Class SmsUIHandler

Package class diagram package SmsUIHandler
java.lang.Object
  extended by org.universAAL.middleware.bus.member.BusMember
      extended by org.universAAL.middleware.bus.member.Callee
          extended by org.universAAL.middleware.ui.UIHandler
              extended by org.universAAL.ui.handler.sms.SmsUIHandler

public class SmsUIHandler
extends UIHandler

SMS UI Handler. Handles dialogs containing sms message and a number to send this message to and forwards it via designated SMS Gateway server to the receiver's mobile phone.

Author:
eandgrg

Field Summary
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
SmsUIHandler(ModuleContext mcontext, ISMSSender backendSender)
           
 
Method Summary
 void adaptationParametersChanged(String dialogID, String changedProp, Object newVal)
          Adaptation parameters changed.
 void communicationChannelBroken()
          Method to be called when the communication of the UIHandler with the IDialogManager is lost.
 Resource cutDialog(String dialogID)
          Cut dialog.
 void handleUICall(UIRequest uiRequest)
          Handle ui call (UIRequest).
 
Methods inherited from class org.universAAL.middleware.ui.UIHandler
addNewRegParams, busDyingOut, dialogFinished, getMyID, getRealizedHandlerProfiles, handleRequest, removeMatchingRegParams, userLoggedIn
 
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

SmsUIHandler

public SmsUIHandler(ModuleContext mcontext,
                    ISMSSender backendSender)
Method Detail

handleUICall

public final void handleUICall(UIRequest uiRequest)
Description copied from class: UIHandler
Handle ui call (UIRequest). The bus is soliciting a Render/display of the UIRequest.

Specified by:
handleUICall in class UIHandler
Parameters:
uiRequest - the UIRequest

communicationChannelBroken

public void communicationChannelBroken()
Description copied from class: UIHandler
Method to be called when the communication of the UIHandler with the IDialogManager is lost. All dialogs must be de-renderized (handlers may whant to inform the user about why de dialogs are being de-renderized). The bus will automatically resend all HandlerProfiles.

Specified by:
communicationChannelBroken in class UIHandler

adaptationParametersChanged

public void adaptationParametersChanged(String dialogID,
                                        String changedProp,
                                        Object newVal)
Description copied from class: UIHandler
Adaptation parameters changed. The Dialog must be redrawn according to the new value of the changedProp.

Specified by:
adaptationParametersChanged in class UIHandler
Parameters:
dialogID - the dialog id
changedProp - the changed prop
newVal - the new val

cutDialog

public final Resource cutDialog(String dialogID)
Description copied from class: UIHandler
Cut dialog. The DM is requesting an IMEDIATE de-renderization of the dialog with given dialogID.

Specified by:
cutDialog in class UIHandler
Parameters:
dialogID - the dialog id
Returns:
the resource data form the Form filled by the user up to the moment this call is performed.


Copyright © 2014 universAAL Consortium. All Rights Reserved.