| CustomDisplay |
Building the CustomDisplay Component |
The CustomDisplay JSB makes use of the image file, Circle.gif; demonstrating how a JSB can make use of supporting image files packaged within a JAR:
source BuildCustomDisplay.sh
)
Create CustomDisplay.jar
by running BuildCustomDisplay.bat
(or BuildCustomDisplay.sh
on Unix)
from the (install dir)/samples/CustomDisplay/
directory.
Simply install the resulting JAR file into Visual JavaScript, and drag the component to the page; Visual JavaScript will use the CircleVisual component to draw a custom appearance for the component as it appears on the page within Visual JavaScript.
When the page is previewed, the JSB adds HTML to the page which makes reference to Circle.gif (which is a snapshot of the image drawn by CircleVisual, in this simple example).