Rogue Wave JViews TGO Sample: Network Component - Styling


Description

This sample shows how to customize the rendering of the business objects in the network using cascading style sheets (CSS).

How to Use the Sample

The sample shows a view with a few nodes and links representing network connections.

A checkbox list is available to enable/disable specific CSS customizations. Enabling a checkbox will make the application parse a specific CSS file so that the corresponding customization is applied. Disabling a checkbox will remove the CSS customization.

In this sample, the configuration of the following elements is illustrated:



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, network-styling.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 differs from the basic sample in that it allows the user to interact with the CSS files applied on the network view, the network adapter and the business objects.

In this sample, the configuration of the following elements is illustrated:



Installation Directory

The Network Component - Styling sample is installed here.

Classes Involved

Source Files

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