This sample is located in \Samples\Scripting\Orgtree.
Description
Using the Sample
Key Project Files
Technologies Demonstrated
This sample shows how to host a JavaBean in a Microsoft® ActiveX® container. The sample builds an organization tree from a list of employees, their titles, and their managers. The sample provides a display area for the tree and a form with buttons for entering employee information. Employees are inserted in the appropriate place in the tree based on their position in the management structure. You can also remove employees from the tree.
You must have Microsoft® Internet Explorer 4.0 or later installed to use this sample.
To compile the sample
Use Nmake.exe to compile the makefile in \Samples\Scripting\Orgtree.
To install the sample on the server
Client
Run Register.bat in \Samples\Scripting\Orgtree. This batch file runs javareg to register the Java/COM object and generates a type library file. A dialog box appears that indicates the object was registered correctly.
To uninstall the sample from the server
Client
Run Remove.bat in \Samples\Scripting\Orgtree. This batch file uses javareg to remove the Java/COM object from the registry. A dialog box appears that indicates the object was removed correctly.
To use the sample
This class builds the tree from the list of employees, their titles, and managers. This class also removes employees from the tree, and registers listeners for tree selection events.
OrgTreeEventListener.javaThis class defines the interface for tree selection events.
OrgTreeNode.javaThis class defines individual nodes in the tree.