public final class Handler extends UIHandler
Handler
is responsible of
interfacing with universAAL, it will handle the UICalls by delegating to the
HTMLUserGenerator
, and it will also provide a method to submit the
user input.UIHandler
,
HTMLUserGenerator
busResourceURI, owner, theBus
Modifier | Constructor and Description |
---|---|
protected |
Handler(ModuleContext context,
UIHandlerProfile initialSubscription)
internal constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
adaptationParametersChanged(String dialogID,
String changedProp,
Object newVal) |
void |
communicationChannelBroken() |
Resource |
cutDialog(String dialogID) |
User |
getCurrentUser()
Get the current user that is inputing information.
|
void |
handleUICall(UIRequest req)
Handle
UIRequest . |
void |
submit(Submit submit)
Shortcut to send
UIResponse related to Submit Buttons. |
addNewRegParams, busDyingOut, dialogFinished, getMyID, getRealizedHandlerProfiles, handleRequest, removeMatchingRegParams, userLoggedIn
close, getComment, getLabel, getType, getURI, setComment, setLabel
protected Handler(ModuleContext context, UIHandlerProfile initialSubscription)
context
- the ModuleContext
to be able to implement an
UIHandler
initialSubscription
- The Subscription parameters that dictate to which
UIRequest
s the handler responds to see UIHandlerpublic void adaptationParametersChanged(String dialogID, String changedProp, Object newVal)
adaptationParametersChanged
in class UIHandler
dialogID
- the dialog idchangedProp
- the changed propnewVal
- the new valpublic void communicationChannelBroken()
communicationChannelBroken
in class UIHandler
public void handleUICall(UIRequest req)
UIRequest
. this callback method will trigger the rendering
process for the UIRequest
. It will also extract important
information, so the handler can adapt to the user's circumstances.handleUICall
in class UIHandler
req
- the UIRequest
public User getCurrentUser()
public void submit(Submit submit)
UIResponse
related to Submit Buttons.submit
- the Submit
button model pressed.Copyright © 2018 universAAL Consortium. All rights reserved.