| Getting Started > Tutorial: Getting Started with ILOG JViews TGO > Creating a Basic Table |
Creating a Basic Table |
INDEX
PREVIOUS
NEXT
|
This section shows you how to create a table component. The table in the sample uses the same data source as the network component. Unlike a tree or a network, a table can only meaningfully display objects of a single class or objects with a common base class. The reason is that the table can show only attributes (columns) that are common to all of the objects (rows) displayed.
In this example, the objects to be displayed are restricted by class to the network elements. Therefore, neither the regions added in Step 1 (Creating a Basic Network Component) nor the alarms to be added later in Step 5 (Using Custom Business Objects) will be shown in the table.
To allow this table component to function, you must create a table component, connect the data source to the table component, restrict the content of the table to network elements, and add the table to the container.
This part of the code is referred to as Step 3.
void step3() {
IlpTable as a predefined table component. The new instance of IlpTable that you create is called tableComponent.
IltNetworkElement. The method GetIlpClass is called to access the dynamic business class corresponding to the IltNetworkElement Java class.
The sample with the table component should look as shown in Figure 2.3.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |