Class UIDLTransformer

Class implementing the UIDLTransformer. The thansformer should not be created directly; it should be contructed using getTransformer() provided by UIDLTransformerFactory. After the transform has been done, the transformer can be recycled with releaseTransformer() by UIDLTransformerFactory.

Synopsis

Since

3.0

Inheritance Path.  java.lang.Object-> com.itmill.toolkit.terminal.web.UIDLTransformer

UIDLTransformer(UIDLTransformerType, ThemeSource, ApplicationServlet)

Parameters

type

Type of the transformer

themes

Theme implemented by the transformer

Exceptions

UIDLTransformerException

UIDLTransformer exception is thrown, if the transform can not be created.

UIDLTransformer constructor.

getPaintTarget(HttpVariableMap)

Parameters

variableMap

The variable map used for UIDL creation.

return

returns UI description language stream, that can be used for writing UIDL to transformer.

Attach the output stream to transformer and get corresponding UIDLStream for writing UI description language trough transform to given output.

getTransformerType()

Parameters

return

Type of the transformer.

Get the type of the transformer.

transform(OutputStream)

Parameters

servletOutputStream

- The output stream to render to.

Transform the UIDL to HTML and output to the OutputStream.