ULC OpenDolphin Multi-channel Demo
The following set of applications show how the state of a ULC application can be presented in different UI technologies on multiple channels/devices using OpenDolphin. There are four applications:
- A ULC Application : Shares its server side state with other applications using the OpenDophin Event Bus.
- A JavaFX desktop application : Uses OpenDolphin Java client to bind JavaFX UI to OpenDolphin Presentation Model and communicate with the OpenDolphin server side application.
The following table describes how to use the applications and lists the corresponding OpenDolphin and ULC OpenDolphinAdapter component.
|Add a record||There is an Add(+) button at the top in each client. Click on Add(+) button to create add an empty record.||Click on Add button creates a client side presentation model (except for ULC client) and adds as a new row. It will also create a corresponding server side presentation model with the same PM id. The applications are subscribed to OpenDolphin Event Bus. If any client adds a new row, a command is sent to OpenDolphin server to create a new presentation model and publish the event to the Event Bus. All the other applications will be notified that a new row is added and so that they can update their presentation model/state.|
|Reset the form changes||Click the Reset button to reset form changes to their base value.||OpenDolphin based applications just call reset on the underlying client side presentation model. Client side presentation model will be reset in case of JS and FX client. For more information visit open-doplhin.org. ULC application does the reset programmatically.|
|Delete a record||Select a record and click on the Delete button.||Click on Delete button deletes a client side presentation model (except for ULC client). If any client deletes a row, a command is sent to OpenDolphin server to delete the presentation model and publish the event to the Event Bus. The applications are subscribed to OpenDolphin Event Bus and will be notified that a row has been deleted so that they can update their presentation model/state.|
Download source code for the demo from : here.
Copyright (c) 2000-2014 Canoo Engineering AG, Kirschgartenstr. 5, CH-4051 Basel, tel. +41 61 228 94 44. All Rights Reserved.