org.apache.tapestry.parse
Class TextToken
java.lang.Object
org.apache.tapestry.parse.TemplateToken
org.apache.tapestry.parse.TextToken
- All Implemented Interfaces:
- org.apache.hivemind.Locatable, IRender
public class TextToken
- extends TemplateToken
- implements IRender
Represents static text in the template that may be passed through to the client unchanged
(except, perhaps, for the removal of some whitespace).
- Since:
- 3.0
- Author:
- Howard Lewis Ship
- See Also:
TokenType.TEXT
Constructor Summary |
TextToken(char[] templateData,
int startIndex,
int endIndex,
org.apache.hivemind.Location location)
|
TextToken
public TextToken(char[] templateData,
int startIndex,
int endIndex,
org.apache.hivemind.Location location)
render
public void render(IMarkupWriter writer,
IRequestCycle cycle)
- Description copied from interface:
IRender
- The principal rendering/rewinding method. This will cause
the receiving component to render its top level elements (HTML
text and components).
Renderring and rewinding are the exact same process. The
same code that renders must be able to restore state by going
through the exact same operations (even though the output is
discarded).
- Specified by:
render
in interface IRender
extendDescription
protected void extendDescription(org.apache.hivemind.util.ToStringBuilder builder)
- Description copied from class:
TemplateToken
- Overridden in subclasses to append additional fields (defined in the subclass) to the
description. Subclasses may override this method without invoking this implementation, which
is empty.
- Overrides:
extendDescription
in class TemplateToken
getTemplateDataAsString
public String getTemplateDataAsString()
getLength
public int getLength()
getOffset
public int getOffset()
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.