|
||||||||||
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.Caller
org.universAAL.middleware.ui.UICaller
org.universAAL.support.utils.ui.mid.UtilUICaller
public abstract class UtilUICaller
This abstract class can be extended to create a UICaller that automatically registers its own Service Callee with the typical Main Menu "Start" service, that will be called by the Dialog Manager when the user requests the application form the Main Menu. It is exactly like extending the typical UICaller only that:
1: You have to implement method executeStartUI which will be called when the user requests interaction. The user is passed to the method.
2: Main Menu is automatically updated to include the Submit for this application. Until release 1.1.0 this is done with files "main_menu_*.txt" which are modified to include this application ID.
Field Summary | |
---|---|
static String |
UAAL_CONF_ROOT_DIR
The root directory of the runtime configuration. |
Fields inherited from class org.universAAL.middleware.bus.member.BusMember |
---|
busResourceURI, owner, theBus |
Constructor Summary | |
---|---|
protected |
UtilUICaller(ModuleContext context,
String namespace,
String url,
String title)
Constructor to create a Simple UI Caller that handles first call interaction and addition to Main Menu. |
Method Summary | |
---|---|
void |
close()
Unregisters the Subscriber from the Context bus. |
void |
communicationChannelBroken()
Method to be called when the communication of the UICaller with
the IDialogManager is lost. |
abstract void |
executeStartUI(Resource resource)
This method is called whenever the user selects your application submit from the Main Menu. |
Methods inherited from class org.universAAL.middleware.ui.UICaller |
---|
abortDialog, adaptationParametersChanged, busDyingOut, dialogAborted, dialogSuspended, getMyID, handleReply, handleUIResponse, resumeDialog, sendUIRequest |
Methods inherited from class org.universAAL.middleware.bus.member.BusMember |
---|
getType, getURI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String UAAL_CONF_ROOT_DIR
Constructor Detail |
---|
protected UtilUICaller(ModuleContext context, String namespace, String url, String title)
context
- The universAAL module context.namespace
- Namespace to be used by the UI Caller references (only for
initial UI request).url
- The URL of your company, for identificative purposes only.title
- Name of the application, which will appear in the Main Menu
submit.Method Detail |
---|
public abstract void executeStartUI(Resource resource)
resource
- The User which initiated the interaction. May be an instance
of User, AssistedPerson or Caregiver.public void communicationChannelBroken()
UICaller
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).
communicationChannelBroken
in class UICaller
public void close()
BusMember
close
in class BusMember
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |