416 Implementing Web Applications with CM Information Integrator for Content and ODWEK
Figure 12-20 ODWEK select a folder screen
12.2 Line data applets
ODWEK ships with two line data applets. A line data applet is a Java applet that
enables you to view line data on your Web browser as line data, instead of having
the server converting it to HTML and displaying as HTML.
Both line data applets are doing the same thing. The new one, Version 2, is
written based on Swing technology.
Swing, introduced in Java Version 1.2, is a powerful graphical toolkit that enables
the developers to write applications with rich graphical user interfaces (GUI).
Swing gives Java applications the professional look and feel that has long been
shared by their C++ and Visual Basic counterparts, and goes even further with a
range of new components and controls, allowing a customizable “look-and-feel”.
Chapter 12. ODWEK installation and configuration 417
You do have choices when it comes to viewing line data. You can view the line
data on a Web browser using one of the applets or view the line data as ASCII or
native mode by setting the LineView parameter in the arswww.ini file to ASCII,
applet, or native.
LineViewing=[ascii,applet,native]
There are two line data applets in the /applets directory:
ODLineDataViewer.jar
ODLineDataViewer2.jar
ODWEK uses the older line data applet by default. To use the Version 2 applet,
edit the arswww.ini file and add the following line in the line to the Default
Browser section of the arswww.ini file:
[default browser]
ODApplet.version=2
To launch new line data applet:
1. Launch a browser and go to the ODWEK home page.
If you launch the browser on the same machine where you install HTTP
server and ODWEK, enter the following URL:
http://localhost/MyODWEK/logon.htm
Otherwise, enter the following URL:
http://congo/MyODWEK/logon.htm
Substitute congo with the server in your setup.
2. Sign on to the OnDemand server.
3. On the Select a folder screen, select a folder that has some line data.
4. Search for a line data file you want to display,
5. Select one of the line data files from the hit list. ODWEK opens the line data
file in the new line data applet. If you do not select a line data document, the
line data applet will not launch.
What’s new in the data applet Version 2
Figure 12-21 shows the new line data applet. As mentioned earlier, the new
applet is built on Java Swing technology, which has a much more user friendly
interface and has richer browser user interaction capabilities.
Important:You must have JRE 1.4.1 or higher to use the new line data applet,
ODLineDataViewer2.jar.
418 Implementing Web Applications with CM Information Integrator for Content and ODWEK
Figure 12-21 Line data applet Version 2
By just looking at it, you do not see much difference between the old and new
line data applet; but there are a few differences:
򐂰 With the Version 2 applet, there are the same 12 icons across the tool bar as
with the older applet, but some of the functions are enhanced. For example,
the toolbar now can be floated — you can move it wherever you want to on
the screen for your convenience (see Figure 12-22).
You can have the tool bar on the top, right, bottom, left or in the anywhere in
the window. To move the tool bar, just click the area next to the print icon,
hold down the mouse button, and drag the tool bar to your new location.
Chapter 12. ODWEK installation and configuration 419
Figure 12-22 Moving the tool bar
򐂰 Version 2’s printing menu is different than Version 1s. There are also more
features that come with the later version.
With the new printing menu, you can:
Set the page margins.
Set the page orientation (portrait or landscape).
Print the current page.
–Print preview.
Remember the changes you have made when you change the margins or
orientation.
Figure 12-23 shows the printing menu with Version 1 of the line data applet.
Figure 12-25 shows the printing menu with Version 2 of the line data applet.
420 Implementing Web Applications with CM Information Integrator for Content and ODWEK
Figure 12-23 Line data applet Version 1 - Printing menu
Figure 12-24 Line data applet Version 2 - Printing menu

Get Implementing Web Applications with CM Information Integrator for Content and OnDemand Web Enablement Kit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.