|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.middleware.bus.member.BusMember
org.universAAL.middleware.bus.member.Callee
org.universAAL.middleware.ui.UIHandler
org.universAAL.ui.handler.gui.swing.Handler
public final class Handler
Main uAAL interfacing class.
The Handler
is responsible of interfacing with universAAL, it will handle
the UICalls by delegating to the Renderer
, and it will also provide a method
to submit the user input.
UIHandler
,
Renderer
Field Summary |
---|
Fields inherited from class org.universAAL.middleware.bus.member.BusMember |
---|
busResourceURI, owner, theBus |
Constructor Summary | |
---|---|
protected |
Handler(ModuleContext context,
UIHandlerProfile initialSubscription)
internal constructor. |
Method Summary | |
---|---|
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 |
setCurrentUser(User currentUser)
Change the current User . |
void |
submit(Submit submit)
Shortcut to send UIResponse related to Submit Buttons. |
void |
unSetCurrentUser()
The current User has logged off, re adapt handler to this situation. |
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 |
---|
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 UIHandlerMethod Detail |
---|
public 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 Resource cutDialog(String dialogID)
cutDialog
in class UIHandler
dialogID
- the dialog id
Form
filled by the user up to
the moment this call is performed.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 setCurrentUser(User currentUser)
User
.
and adapt UIHandlerProfile
to the User
.
currentUser
- the user to be the current user.public void unSetCurrentUser()
public void submit(Submit submit)
UIResponse
related to Submit Buttons.
submit
- the Submit
button model pressed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |