Given by Likasz Beca at Rice University Tango Tutorial on October 18 1999. Foils prepared October 20 1999
Outside Index
Summary of Material
Introduction |
Tango Bean API installation |
Application framework |
Embedding Tango Bean API components |
Connecting components |
Adding necessary modifications |
Testing |
Application signing and packaging |
Running in Tango Interactive environment |
Outside Index Summary of Material
Lukasz Beca |
NPAC, Syracuse University, Syracuse, USA |
Introduction |
Tango Bean API installation |
Application framework |
Embedding Tango Bean API components |
Connecting components |
Adding necessary modifications |
Testing |
Application signing and packaging |
Running in Tango Interactive environment |
Illustration of development process - building application for exchanging simple messages |
Application term used in this presentation refers to Tango application which in turn can be Java applet or Java application. |
Example development environment - VisualCafe |
Details can be found in the Tango Beans API Documentation |
Tango Beans API components must be installed in Integrated Development Environment before they can be combined with other components |
The jar file with Tango Beans API must be downloaded from Tango API page |
Downloaded jar file must be imported to the development environment: |
In VisualCafe - "Add Component to Library" option should be used for this purpose |
Tango Beans installed in the VisualCafe Component Library |
In the next step application specific components should be placed in the application development frame: |
In this case we have text area and two buttons, they will provide functionality visible to the users: buttons will generate messages and text area will display them |
When essential components are in place, the Tango Beans can be added: |
The figure above shows one TangoBean component and two ObjectPipe components added. They will provide collaboration functionality.
|
Components must be connected to communicate properly |
Connection: ObjectPipe to Application Component:
|
Connection: ObjectPipe to Application Component (TextArea) in the VisualCafe environment: |
Connection: ObjectPipe to Application Component |
The figure above illustrates connection from ObjectPipe to the TextArea component. TextArea displays messages in response to events that arrive from ObjectPipe. |
Connection: Application Component to Object Pipe
|
Connection: Application Component to Object Pipe |
The figure above illustrates connection from Button component to the ObjectPipe. When the user presses the Button, it fires the event, which is intercepted by the Object Pipe |
Connection: Object Pipe to TangoBean
|
Connection: Object Pipe to TangoBean |
The figure above illustrates connection from ObjectPipe component to the TangoBean in the example application |
Unfortunately, the IDE application builder tools are not able to create Tango applications fully automatically. Part of the applet source code must be modified manually:
|
When all necessary components are embedded and interconnected, the application can be executed outside Tango Interactive environment as regular applet (directly in the IDE, Applet Viewer or Netscape browser): |
The classes that contain the applet implementation should be signed and packaged into one jar file |
Also, as with any applet, HTML page must be created that starts applet in the Web browser (do not forget to use MYSCRIPT tag) |
HTML page and applet classes should be placed on HTTP server |
The developed application must be added to the set of Tango applications recognized by the Session Manager - this requires modification in configuration file for SM |
Finally, the application can be started in Tango Interactive environment and used for collaboration: |