|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tiles.velocity.template.ContextHolder
org.apache.tiles.velocity.template.VelocityStyleTilesTool
public class VelocityStyleTilesTool
Tiles Tool to be used "the classic way".
| Constructor Summary | |
|---|---|
VelocityStyleTilesTool()
|
|
| Method Summary | |
|---|---|
org.apache.tiles.Attribute |
clone(org.apache.tiles.Attribute attribute)
Creates an attribute that is a copy of the one passed as a parameter. |
org.apache.tiles.Attribute |
createAttribute()
Creates a new empty attribute. |
org.apache.tiles.Attribute |
createTemplateAttribute(String template)
Creates an attribute that represents a template. |
protected org.apache.tiles.request.Request |
createVelocityRequest(javax.servlet.ServletContext servletContext,
Writer writer)
Creates a Velocity request. |
VelocityStyleTilesTool |
endAttributeContext()
Ends the current attribute context. |
org.apache.tiles.Attribute |
get(String key)
Returns an attribute. |
org.apache.tiles.AttributeContext |
getAttributeContext()
Returns the current attribute context. |
org.apache.velocity.runtime.Renderable |
render(org.apache.tiles.Attribute attribute)
Renders an attribute. |
org.apache.velocity.runtime.Renderable |
renderAttributeContext()
Renders the current attribute context. |
org.apache.velocity.runtime.Renderable |
renderDefinition(String definitionName)
Renders a definition. |
VelocityStyleTilesTool |
setCurrentContainer(String containerKey)
Sets the current container for the current request. |
org.apache.tiles.AttributeContext |
startAttributeContext()
Starts the attribute context. |
String |
toString()
|
| Methods inherited from class org.apache.tiles.velocity.template.ContextHolder |
|---|
getRequest, getResponse, getServletContext, getVelocityContext, setRequest, setResponse, setServletContext, setVelocityContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VelocityStyleTilesTool()
| Method Detail |
|---|
public org.apache.tiles.Attribute get(String key)
key - The name of the attribute to get.
public org.apache.tiles.Attribute createAttribute()
public org.apache.tiles.Attribute clone(org.apache.tiles.Attribute attribute)
attribute - The attribute to copy.
public org.apache.tiles.Attribute createTemplateAttribute(String template)
template - The template.
public org.apache.velocity.runtime.Renderable render(org.apache.tiles.Attribute attribute)
attribute - The attribute to render.
public org.apache.velocity.runtime.Renderable renderDefinition(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 org.apache.tiles.AttributeContext startAttributeContext()
endAttributeContext() when finished!
public VelocityStyleTilesTool endAttributeContext()
startAttributeContext().
public org.apache.tiles.AttributeContext getAttributeContext()
public VelocityStyleTilesTool setCurrentContainer(String containerKey)
containerKey - The key of the container to set as "current" for the current request.
public String toString()
toString in class Object
protected org.apache.tiles.request.Request createVelocityRequest(javax.servlet.ServletContext servletContext,
Writer writer)
servletContext - The servlet context.writer - The writer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||