Rogue Wave JViews TGO Sample: Table Component - Alarm


Description

This sample shows how to use alarm objects with the Rogue Wave JViews TGO table component.

How to Use the Sample

The sample shows a table that contains predefined JTGO alarm objects. The table allows you to select rows, as well as to move and resize columns. In the lower part of the screen you can specify a pattern to filter the alarms displayed in the table according to the Managed Object Instance name. You can also see the list of selected alarms in the Current selection field.

Both raw alarms and impact alarms are used in this sample. Each type of alarm has a distinguished set of severities and graphical representation.



How to Run the Sample as an Application

This sample can also be run as an application. The installation directory contains an executable JAR file, table-alarm.jar, that allows you to execute the sample with a double click from a file browser. Note that if you are using Internet Explorer, you can open the installation directory and execute the JAR file from the browser. This technique may not work in other Web browsers.

Alternatively, you can run the sample application from the command line. First check that the Ant utility is properly configured. If not, see the instructions on how to configure Ant for Rogue Wave JViews.

Then, go to the installation directory of the sample and type:

ant run

Topics Covered

Detailed Description

This sample shows how to create and use a JTGO table component with predefined alarm objects. The specific code of this sample is in the doSample method of alarm.Main. It contains the following steps:



Installation Directory

The Table Component - Alarm sample is installed here.

Classes Involved

Source Files

Copyright © Rogue Wave Software, Inc. 1997, 2015. All rights reserved. Legal terms.