simple.template.layout
Interface Panel

All Superinterfaces:
Database, Document

public interface Panel
extends Document

The Panel object is used to represent a means for a document to be written into a frame definition or screen. This provides a more efficient means for displaying a document as it will allow a single PrintWriter to be shared among several documents. This is particularly useful for JSP templates.

Author:
Niall Gallagher

Method Summary
 void write(java.io.PrintWriter out)
          This is used to write the contents of the document without the need for an adapter, such as an output stream writer.
 
Methods inherited from interface simple.template.Document
getContentType, toString, write
 
Methods inherited from interface simple.template.Database
contains, get, keySet, put, remove
 

Method Detail

write

void write(java.io.PrintWriter out)
           throws java.lang.Exception
This is used to write the contents of the document without the need for an adapter, such as an output stream writer. This is a more efficient means of displaying the contents, as the use of toString does not cascade very well when deep layout trees are used. An exception is thrown on error.

Parameters:
out - this is the print writer to write the panel to
Throws:
java.lang.Exception