|
||||||||||
| 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
org.apache.tiles.velocity.template.Tiles2Tool
public class Tiles2Tool
The Tiles tool to be used in Velocity templates. Most of the methods can be used in two ways:
start(Map), then your code in the block, and then end().
| Constructor Summary | |
|---|---|
Tiles2Tool()
|
|
| Method Summary | |
|---|---|
Tiles2Tool |
addAttribute()
Prepares the AddAttributeVModel for the execution with a block
inside start(Map) and end() calls. |
Tiles2Tool |
addAttribute(Map<String,Object> params)
Executes the AddAttributeVModel. |
Tiles2Tool |
addListAttribute()
Prepares the AddListAttributeVModel for the execution with a block
inside start(Map) and end() calls. |
Tiles2Tool |
definition()
Prepares the DefinitionVModel for the execution with a block
inside start(Map) and end() calls. |
Tiles2Tool |
definition(Map<String,Object> params)
Executes the DefinitionVModel. |
Renderable |
end()
Ends a "model" after the execution of a block. |
Tiles2Tool |
getAsString()
Prepares the GetAsStringVModel for the execution with a block
inside start(Map) and end() calls. |
Renderable |
getAsString(Map<String,Object> params)
Executes the GetAsStringVModel. |
Renderable |
importAttribute(Map<String,Object> params)
Executes the ImportAttributeVModel. |
Tiles2Tool |
insertAttribute()
Prepares the InsertAttributeVModel for the execution with a block
inside start(Map) and end() calls. |
Renderable |
insertAttribute(Map<String,Object> params)
Executes the InsertAttributeVModel. |
Tiles2Tool |
insertDefinition()
Prepares the InsertDefinitionVModel for the execution with a block
inside start(Map) and end() calls. |
Renderable |
insertDefinition(Map<String,Object> params)
Executes the InsertDefinitionVModel. |
Tiles2Tool |
insertTemplate()
Prepares the InsertTemplateVModel for the execution with a block
inside start(Map) and end() calls. |
Renderable |
insertTemplate(Map<String,Object> params)
Executes the InsertTemplateVModel. |
Tiles2Tool |
putAttribute()
Prepares the PutAttributeVModel for the execution with a block
inside start(Map) and end() calls. |
Tiles2Tool |
putAttribute(Map<String,Object> params)
Executes the PutAttributeVModel. |
Tiles2Tool |
putListAttribute()
Prepares the PutListAttributeVModel for the execution with a block
inside start(Map) and end() calls. |
Tiles2Tool |
start(Map<String,Object> params)
Starts a "model" for the execution in a block. |
| Methods inherited from class org.apache.tiles.velocity.template.VelocityStyleTilesTool |
|---|
cloneAttribute, createAttribute, createTemplateAttribute, endAttributeContext, getAttribute, getAttributeContext, renderAttribute, renderAttributeContext, renderDefinition, setCurrentContainer, startAttributeContext, 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 Tiles2Tool()
| Method Detail |
|---|
public Tiles2Tool addAttribute(Map<String,Object> params)
AddAttributeVModel.
params - The map of parameters.
AddAttributeModelpublic Tiles2Tool addAttribute()
AddAttributeVModel for the execution with a block
inside start(Map) and end() calls.
AddAttributeModelpublic Tiles2Tool addListAttribute()
AddListAttributeVModel for the execution with a block
inside start(Map) and end() calls.
AddListAttributeModelpublic Tiles2Tool definition(Map<String,Object> params)
DefinitionVModel.
params - The map of parameters.
DefinitionModelpublic Tiles2Tool definition()
DefinitionVModel for the execution with a block
inside start(Map) and end() calls.
DefinitionModelpublic Renderable getAsString(Map<String,Object> params)
GetAsStringVModel.
params - The map of parameters.
GetAsStringModelpublic Tiles2Tool getAsString()
GetAsStringVModel for the execution with a block
inside start(Map) and end() calls.
GetAsStringModelpublic Renderable importAttribute(Map<String,Object> params)
ImportAttributeVModel.
params - The map of parameters.
ImportAttributeModelpublic Renderable insertAttribute(Map<String,Object> params)
InsertAttributeVModel.
params - The map of parameters.
InsertAttributeModelpublic Tiles2Tool insertAttribute()
InsertAttributeVModel for the execution with a block
inside start(Map) and end() calls.
InsertAttributeModelpublic Renderable insertDefinition(Map<String,Object> params)
InsertDefinitionVModel.
params - The map of parameters.
InsertDefinitionModelpublic Tiles2Tool insertDefinition()
InsertDefinitionVModel for the execution with a block
inside start(Map) and end() calls.
InsertDefinitionModelpublic Renderable insertTemplate(Map<String,Object> params)
InsertTemplateVModel.
params - The map of parameters.
InsertTemplateModelpublic Tiles2Tool insertTemplate()
InsertTemplateVModel for the execution with a block
inside start(Map) and end() calls.
InsertTemplateModelpublic Tiles2Tool putAttribute(Map<String,Object> params)
PutAttributeVModel.
params - The map of parameters.
PutAttributeModelpublic Tiles2Tool putAttribute()
PutAttributeVModel for the execution with a block
inside start(Map) and end() calls.
PutAttributeModelpublic Tiles2Tool putListAttribute()
PutListAttributeVModel for the execution with a block
inside start(Map) and end() calls.
PutListAttributeModelpublic Tiles2Tool start(Map<String,Object> params)
params - The map of parameters.
public Renderable end()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||