This section describes how you initialize JViews TGO, store the context, and execute the different tasks. It assumes that you are familiar with writing Java code. Therefore, it does not describe the Java import statements or data member declarations that are used to set up the application environment for this tutorial.
-
Initialize JViews TGO.
To run the tutorial, you first have to specify a container or frame to contain what is to be displayed and initialize JViews TGO by reading a deployment descriptor file,
deploy.xml, to initialize the application context:
void doSample (Container container) {
IltSystem.Init(this, "deploy.xml");
IltSystem.Init("deploy.xml");
In this code extract,
container is a
java.awt.Container class.
See section
The Application Context in the
Application Context and Deployment Descriptor documentation for more information about the content and purpose of the deployment descriptor file.
-
Execute the main steps.
The remainder of this code refers to the main steps of the tutorial, which are described in detail in the rest of this section. These steps are called and executed in sequence. Finally, the code catches and logs any errors.
// Create a simple network component
// Add subnodes to show containment in tree and network
// Create a simple table component
// Configure the network component
// Load alarms and show them in a separate table
// Update and remove objects
// Create a new window to show details of equipment
// - configure consistent pop-up menu on all components
// - add double-click behavior for network elements
// - show overview window on special keystroke
// Synchronize selection between components
log.severe("Exception caught while running sample: " +