public class VelocityStyleTilesTool extends ContextHolder
| Constructor | Description |
|---|---|
VelocityStyleTilesTool() |
| Modifier and Type | Method | Description |
|---|---|---|
Attribute |
clone(Attribute attribute) |
Creates an attribute that is a copy of the one passed as a parameter.
|
Attribute |
createAttribute() |
Creates a new empty attribute.
|
Attribute |
createTemplateAttribute(java.lang.String template) |
Creates an attribute that represents a template.
|
protected org.apache.tiles.request.Request |
createVelocityRequest(javax.servlet.ServletContext servletContext,
java.io.Writer writer) |
Creates a Velocity request.
|
VelocityStyleTilesTool |
endAttributeContext() |
Ends the current attribute context.
|
Attribute |
get(java.lang.String key) |
Returns an attribute.
|
AttributeContext |
getAttributeContext() |
Returns the current attribute context.
|
org.apache.velocity.runtime.Renderable |
render(Attribute attribute) |
Renders an attribute.
|
org.apache.velocity.runtime.Renderable |
renderAttributeContext() |
Renders the current attribute context.
|
org.apache.velocity.runtime.Renderable |
renderDefinition(java.lang.String definitionName) |
Renders a definition.
|
VelocityStyleTilesTool |
setCurrentContainer(java.lang.String containerKey) |
Sets the current container for the current request.
|
AttributeContext |
startAttributeContext() |
Starts the attribute context.
|
java.lang.String |
toString() |
getRequest, getResponse, getServletContext, getVelocityContext, setRequest, setResponse, setServletContext, setVelocityContextpublic Attribute get(java.lang.String key)
key - The name of the attribute to get.public Attribute createAttribute()
public Attribute clone(Attribute attribute)
attribute - The attribute to copy.public Attribute createTemplateAttribute(java.lang.String template)
template - The template.public org.apache.velocity.runtime.Renderable render(Attribute attribute)
attribute - The attribute to render.public org.apache.velocity.runtime.Renderable renderDefinition(java.lang.String definitionName)
startAttributeContext() and endAttributeContext() to
customize appearance.definitionName - The name of the definition to render.public org.apache.velocity.runtime.Renderable renderAttributeContext()
startAttributeContext() and endAttributeContext() to
customize appearance.public AttributeContext startAttributeContext()
endAttributeContext() when finished!public VelocityStyleTilesTool endAttributeContext()
startAttributeContext().public AttributeContext getAttributeContext()
public VelocityStyleTilesTool setCurrentContainer(java.lang.String containerKey)
containerKey - The key of the container to set as "current" for the current request.public java.lang.String toString()
toString in class java.lang.Objectprotected org.apache.tiles.request.Request createVelocityRequest(javax.servlet.ServletContext servletContext,
java.io.Writer writer)
servletContext - The servlet context.writer - The writer.Copyright © 2018. All rights reserved.