| Graphic Components > Tree Component > Creating a Tree Component: a Sample |
Creating a Tree Component: a Sample |
INDEX
PREVIOUS
NEXT
|
This section shows you how to create the following basic tree featuring a computer network.
The following example shows how to create a tree component, how to connect it to a data source, how to fill the data source from an XML file that describes the business objects, and how to configure the graphic representation of the tree and the objects.
The following sample source and resource files are located in the <installdir>/samples/tree/customClasses directory:
Main.java: source file for the sample
deploy.xml: deployment descriptor
treenodes.xml: data source input
tree.css: style sheet defining how the tree and objects are graphically represented
deploy.xml is a deployment descriptor file that defines the path to the application resources to be used:
JFrame container.
treenodes.xml contains the description of the business model classes and instructions to create business object instances in the data source.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |