Chapter 9. Skeleton

Putting it all together

Table of Contents

Tutorial At A Glance
Running The Tutorial Example
Application Frame
The Menubar Component
The Toolbar Component
The Statusbar Component
Containers
Commands
Preferences
Launch Tasks
Loading Preferences
Setting Up Commands
Menu and Toolbar
Element Definitions
Populating the Repository Container
Modeling Our Example
Summary

This tutorial provides Java Application Programmers with a standalone application that integrates the functionality and domain entities discussed in the previous tutorials.

This application is built on top of the Tensegrity Skeleton Framework, a generic application framework complete with menus, toolbars, navigators, attribute tables and other container windows.

The Tensegrity Skeleton Framework is designed to support different windowing toolkits. These include the Swing API and AWT (included in the Java Runtime Environment) and JFace and SWT (which is shipped with the Eclipse Development Environment).

In order to provide support for all of these different windowing toolkits, the Tensegrity Skeleton Framework provides a number of abstract interfaces and concrete toolkit implementations. In this tutorial, we aim to give you a fundamental understanding of our application framework by making use of the Swing API implementation.

The various sections of this tutorial will discuss the key features and some implementation details of the Skeleton classes and interfaces. After you have finished reading, we recommend that you reference the Creating Applications chapter inside the Framework Manual. There you will find a more complete description of the Skeleton Framework API.

This custom application will display a subset of the standard windows available in the framework, specifically a

Tutorial At A Glance

The table below gives you some important information about this tutorial.

Table 9.1. Tutorial Aspects

Tutorial AspectTutorial Description
Approximate Duration90 Minutes
Expected Outcome A Swing application showing a number of views that the user should interact with. This example gives the Java Application Programmer exposure to and source code using the most important features of the framework.
Source FilesThe tutorial example comes with with the source package “com.tensegrity.firststeps.skeleton”, which contains the Java and configuration files needed to compile and run the example.
Creating FilesNot applicable in this tutorial
Modifying Files elements.xml, geometry.xml, styles.xml