superwaba.ext.xplat.html
Class Document

java.lang.Object
  |
  +--superwaba.ext.xplat.html.Document

public class Document
extends java.lang.Object


Field Summary
 URI baseURI
          Base URL for this document
 RootTile rootTile
          Root tile
 java.lang.String title
          Title associated with this document.
 
Constructor Summary
protected Document()
          Default Constructor.
  Document(XmlReadable doc)
          Constructor
  Document(XmlReadable doc, TileFactory factory)
           
 
Method Summary
protected  TileFactory getTileFactory()
          give access to the tilefactory for subcomponents
protected  Image loadImage(java.lang.String src, URI baseURI)
          Can be overridden by the caller in order to load an image from a different place.
protected  void renderDoc(XmlReadable doc)
          Renders the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseURI

public URI baseURI
Base URL for this document

title

public java.lang.String title
Title associated with this document.

rootTile

public RootTile rootTile
Root tile
Constructor Detail

Document

public Document(XmlReadable doc)
Constructor
Parameters:
doc - XmlReadable to be read

Document

public Document(XmlReadable doc,
                TileFactory factory)

Document

protected Document()
Default Constructor. The document must be rendered using renderDoc.
Method Detail

renderDoc

protected void renderDoc(XmlReadable doc)
Renders the document.
Parameters:
doc - XmlReadable to be read

getTileFactory

protected TileFactory getTileFactory()
give access to the tilefactory for subcomponents

loadImage

protected Image loadImage(java.lang.String src,
                          URI baseURI)
Can be overridden by the caller in order to load an image from a different place. Must return null if not handled/not found.
Parameters:
src - The image name
baseURI - The base URI
Returns:
an Image