Chapter 8. Event Handling

Table of Contents

Tutorial At A Glance
Running The Tutorial Example
Event Registration
GraphEvent Concepts
GraphListener Concepts
Listener Registration
Event Veto
Big BrotherRegistration
Event Logging
Summary

This tutorial provides Java Application Programmers exposure to some of the event-related classes in the Tensegrity Graph Framework. Specifically, we provide you with a tutorial example which allows you to view events as you interact with a sample application.

Tutorial At A Glance

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

Table 8.1. Tutorial Aspects

Tutorial AspectTutorial Description
Approximate Duration10 Minutes
Expected Outcome An application showing a number of views that the user should interact with. This example gives the Java Application Programmer an additional event console which shows what kinds of events are raised when the user performs some action with the mouse or keyboard.
Source FilesThe tutorial examples come with two source packages containing the java and configuration files needed to compile and run them. These are “com.tensegrity.firststeps.event” and “com.tensegrity.firststeps.swt.event” respectively for the AWT/Swing-based and SWT-based examples.
Creating FilesNot applicable in this tutorial
Modifying FilesNot applicable in this tutorial