|
||||||||||
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
public abstract class UIHandler
Provides the interface to be implemented by UIHandler
s together with
shared code. Only instances of this class can handle UIRequest
s. The
convention of the IUIBus
regarding the registration parameters is the
following:
UIHandler
s provide only at the registration time info about
themselves
Field Summary |
---|
Fields inherited from class org.universAAL.middleware.bus.member.BusMember |
---|
busResourceURI, owner, theBus |
Constructor Summary | |
---|---|
protected |
UIHandler(ModuleContext context,
UIHandlerProfile initialSubscription)
Instantiates a new UIHandler . |
protected |
UIHandler(ModuleContext context,
UIHandlerProfile[] initialSubscriptions)
Instantiates a new UIHandler . |
Method Summary | |
---|---|
abstract void |
adaptationParametersChanged(String dialogID,
String changedProp,
Object newVal)
Adaptation parameters changed. |
void |
addNewRegParams(UIHandlerProfile newSubscription)
Adds the new UIHandler registration parameters. |
void |
busDyingOut(AbstractBus b)
This method is called when the bus is stopped to announce this to the bus members. |
abstract void |
communicationChannelBroken()
Method to be called when the communication of the UIHandler with
the IDialogManager is lost. |
abstract Resource |
cutDialog(String dialogID)
Cut dialog. |
void |
dialogFinished(UIResponse uiResponse)
Dialog finished. |
String |
getMyID()
Id with which the UIHandler is registered in the IUIBus |
List<UIHandlerProfile> |
getRealizedHandlerProfiles()
|
void |
handleRequest(BusMessage msg)
Handle request. |
abstract void |
handleUICall(UIRequest uiRequest)
Handle ui call ( UIRequest ). |
protected void |
removeMatchingRegParams(UIHandlerProfile oldSubscription)
Removes the matching registration parameters. |
void |
userLoggedIn(Resource user,
AbsLocation loginLocation)
User logged in. |
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 UIHandler(ModuleContext context, UIHandlerProfile initialSubscription)
UIHandler
.
context
- the contextinitialSubscription
- the initial subscription
NullPointerException
- if initialSubscription is null or one of the elements of
that array is nullprotected UIHandler(ModuleContext context, UIHandlerProfile[] initialSubscriptions)
UIHandler
.
context
- the contextinitialSubscription
- the initial subscription
NullPointerException
- if initialSubscriptions is null or one of the elements of
that array is nullMethod Detail |
---|
public abstract void adaptationParametersChanged(String dialogID, String changedProp, Object newVal)
dialogID
- the dialog idchangedProp
- the changed propnewVal
- the new valpublic final void addNewRegParams(UIHandlerProfile newSubscription)
UIHandler
registration parameters.
newSubscription
- the new subscription - as a UIHandlerProfile
NullPointerException
- if newSubscription is nullpublic final void busDyingOut(AbstractBus b)
BusMember
busDyingOut
in class BusMember
b
- bus on which this member has been registeredBusMember.busDyingOut(AbstractBus)
public abstract void communicationChannelBroken()
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.
public abstract Resource cutDialog(String dialogID)
dialogID
- the dialog id
Form
filled by the user up to
the moment this call is performed.public final void dialogFinished(UIResponse uiResponse)
Submit
or
a SubdialogTrigger
.
uiResponse
- the UIResponse
public final void handleRequest(BusMessage msg)
msg
- the messagepublic abstract void handleUICall(UIRequest uiRequest)
UIRequest
). The bus is soliciting a
Render/display of the UIRequest
.
uiRequest
- the UIRequest
protected final void removeMatchingRegParams(UIHandlerProfile oldSubscription)
oldSubscription
- the old subscriptionpublic final void userLoggedIn(Resource user, AbsLocation loginLocation)
user
- the User
, It is declared as Resource because the type
User is defined in the Profiling Ontology. The type is not
needed for for matchmaking Either.loginLocation
- the login locationpublic List<UIHandlerProfile> getRealizedHandlerProfiles()
UIHandlerProfile
spublic String getMyID()
UIHandler
is registered in the IUIBus
UIHandler
ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |