This component renders XML based content. A simple set of tags for layout and formatting are used. Styles can be used to control attributes such as fonts and colors
For example the following taken from the Xui Zoo sample application shows some formatted paragraphs of text:
<?xml version="1.0" encoding="UTF-8"?> <XText> <XStyle name="Heading">Congratulations!</XStyle><BR/><BR/> <XStyle name="base">You have just been appointed general manager of the XUI Zoo.</XStyle><BR/><BR/> <XStyle name="base">Unfortunately your predescessor wasted most of his time struggling with his Java code. To keep the zoo in business you must buy some new animals quickly. You need to buy 100 animals, including Monkies, Elephants and to get new visitors to the zoo you need to have at least one amazing Unicorn.</XStyle><BR/><BR/> <XStyle name="base">Monkies are common enough and only cost 0.05 $XML, Elephants on the other hand are big animals and cost a full 1.00 $XML. And the most rare Unicorns cost the princely sum of 5.00 $XML</XStyle><BR/><BR/> <XStyle name="base">Please fill in your order quantities below.</XStyle> </XText>
The tag supported by this class are listed below and play a similar role to their html equivalents:
The tags can be nested as you would do whith HTML.
Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
@version $Revision: 2.10 $
|
|