EchoPoint
1.0

echopoint.ui.template
Class TemplateParseContext

java.lang.Object
  extended byechopoint.ui.template.TemplateParseContext
All Implemented Interfaces:
ParseContext, java.io.Serializable

public final class TemplateParseContext
extends java.lang.Object
implements ParseContext, java.io.Serializable

A implementation of ParseContext used by HtmlTemplatePanel. This contains a reference to the parent Element and the ComponentPeer that is performing the rendering.

See Also:
Serialized Form

Constructor Summary
TemplateParseContext(nextapp.echoservlet.RenderingContext rc, nextapp.echoservlet.html.Element parentElement, ComponentMapper componentMapper, ComponentPeerMapper peerMapper, PropertyManagerOwner propertyManagerOwner, TextSubstitution textSubstitution, boolean isLoudErrorsUsed)
          Constructs a TemplateParseContext object
 
Method Summary
 void doneTag(int number)
          Called when a tag number i has finished executing
 nextapp.echo.Component getComponent(java.lang.String name)
          Returns the a component with a given name
 nextapp.echoservlet.ComponentPeer getComponentPeer(nextapp.echo.Component component)
          Returns the a peer for a given component
 nextapp.echoservlet.Id getId()
          Returns a unique Id object for this context
 nextapp.echoservlet.html.Element getOutputElement()
          Returns the Element for output to be placed in
 PropertyManager getPropertyManager(java.lang.Class componentClazz)
          Returns a PropertyManager for a given Component class.
 nextapp.echoservlet.RenderingContext getRenderingContext()
          Returns the RenderingContext that output is controlled by.
 TextSubstitution getTextSubstitution()
          Returns the TextSubstitution object
 boolean isLoudErrorsUsed()
          This returns true if "loud" error messages are to be used during template compilation.
 void startTag(int number)
          Called when a tag number i is executed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateParseContext

public TemplateParseContext(nextapp.echoservlet.RenderingContext rc,
                            nextapp.echoservlet.html.Element parentElement,
                            ComponentMapper componentMapper,
                            ComponentPeerMapper peerMapper,
                            PropertyManagerOwner propertyManagerOwner,
                            TextSubstitution textSubstitution,
                            boolean isLoudErrorsUsed)
Constructs a TemplateParseContext object

Method Detail

doneTag

public void doneTag(int number)
Description copied from interface: ParseContext
Called when a tag number i has finished executing

Specified by:
doneTag in interface ParseContext
Parameters:
number - - the number of the tag
See Also:
ParseContext.doneTag(int)

getComponent

public nextapp.echo.Component getComponent(java.lang.String name)
Returns the a component with a given name


getComponentPeer

public nextapp.echoservlet.ComponentPeer getComponentPeer(nextapp.echo.Component component)
Returns the a peer for a given component


getOutputElement

public nextapp.echoservlet.html.Element getOutputElement()
Description copied from interface: ParseContext
Returns the Element for output to be placed in

Specified by:
getOutputElement in interface ParseContext
See Also:
ParseContext.getOutputElement()

getPropertyManager

public PropertyManager getPropertyManager(java.lang.Class componentClazz)
Returns a PropertyManager for a given Component class.


getRenderingContext

public nextapp.echoservlet.RenderingContext getRenderingContext()
Description copied from interface: ParseContext
Returns the RenderingContext that output is controlled by.

Specified by:
getRenderingContext in interface ParseContext
See Also:
ParseContext.getRenderingContext()

getTextSubstitution

public TextSubstitution getTextSubstitution()
Description copied from interface: ParseContext
Returns the TextSubstitution object

Specified by:
getTextSubstitution in interface ParseContext
See Also:
ParseContext.getTextSubstitution()

startTag

public void startTag(int number)
Description copied from interface: ParseContext
Called when a tag number i is executed

Specified by:
startTag in interface ParseContext
Parameters:
number - - the number of the tag
See Also:
ParseContext.startTag(int)

getId

public nextapp.echoservlet.Id getId()
Description copied from interface: ParseContext
Returns a unique Id object for this context

Specified by:
getId in interface ParseContext
Returns:
a unique Id object for this context
See Also:
ParseContext.getId()

isLoudErrorsUsed

public boolean isLoudErrorsUsed()
Description copied from interface: ParseContext
This returns true if "loud" error messages are to be used during template compilation.

Specified by:
isLoudErrorsUsed in interface ParseContext
Returns:
true if lound error messages are to be displayed
See Also:
ParseContext.isLoudErrorsUsed()

EchoPoint
1.0