|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.template.DefinitionModel
public class DefinitionModel
Create a definition at runtime.
Create a new definition at runtime. Newly created definition will be available across the entire request.
Constructor Summary | |
---|---|
DefinitionModel()
|
Method Summary | |
---|---|
void |
end(MutableTilesContainer container,
ArrayStack<java.lang.Object> composeStack,
java.lang.Object... requestItems)
Ends the operation. |
void |
execute(MutableTilesContainer container,
ArrayStack<java.lang.Object> composeStack,
java.lang.String name,
java.lang.String template,
java.lang.String role,
java.lang.String extendsParam,
java.lang.String preparer,
java.lang.Object... requestItems)
Executes the operation. |
void |
start(ArrayStack<java.lang.Object> composeStack,
java.lang.String name,
java.lang.String template,
java.lang.String role,
java.lang.String extendsParam,
java.lang.String preparer)
Starts the operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefinitionModel()
Method Detail |
---|
public void start(ArrayStack<java.lang.Object> composeStack, java.lang.String name, java.lang.String template, java.lang.String role, java.lang.String extendsParam, java.lang.String preparer)
composeStack
- The compose stack,name
- The name of the definition to create. If not specified, an anonymous definition will be created.template
- The template of this definition.role
- A comma-separated list of roles. If present, the definition
will be rendered only if the current user belongs to one of the roles.extendsParam
- The definition name that this definition extends.preparer
- The preparer to use to invoke before the definition is rendered.public void end(MutableTilesContainer container, ArrayStack<java.lang.Object> composeStack, java.lang.Object... requestItems)
container
- The Tiles container to use. It must be "mutable".composeStack
- The compose stack.requestItems
- The request objects.public void execute(MutableTilesContainer container, ArrayStack<java.lang.Object> composeStack, java.lang.String name, java.lang.String template, java.lang.String role, java.lang.String extendsParam, java.lang.String preparer, java.lang.Object... requestItems)
container
- The Tiles container to use. It must be "mutable".composeStack
- The compose stack.name
- The name of the definition to create. If not specified, an anonymous definition will be created.template
- The template of this definition.role
- A comma-separated list of roles. If present, the definition
will be rendered only if the current user belongs to one of the roles.extendsParam
- The definition name that this definition extends.preparer
- The preparer to use to invoke before the definition is rendered.requestItems
- The request objects.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |