org.formaria.awt
Class MetaContent

java.lang.Object
  extended by java.awt.Component
      extended by org.formaria.awt.MetaContent
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, MetaContentHolder, StyleComponent

public class MetaContent
extends java.awt.Component
implements MetaContentHolder, StyleComponent

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 Aria Zoo sample application shows some formatted paragraphs of text:

 <?xml version="1.0" encoding="UTF-8"?> <Text> <Style name="Heading">Congratulations!</Style><BR/><BR/> <Style name="base">You have just been appointed general manager of the Aria Zoo.</Style><BR/><BR/> <Style 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.</Style><BR/><BR/> <Style 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</Style><BR/><BR/> <Style name="base">Please fill in your order quantities below.</Style> </Text>
 

The tag supported by this class are listed below and play a similar role to their html equivalents: