public interface TilesContainer
Modifier and Type | Method and Description |
---|---|
void |
endContext(org.apache.tiles.request.Request request)
Ends a context, where attribute values are stored independently
from others.
It must be called after a startContext(Request) call. |
Object |
evaluate(Attribute attribute,
org.apache.tiles.request.Request request)
Evaluates the given attribute.
|
org.apache.tiles.request.ApplicationContext |
getApplicationContext()
Retrieve the containers context.
|
AttributeContext |
getAttributeContext(org.apache.tiles.request.Request request)
Retrive the attribute context of the current request.
|
Definition |
getDefinition(String definitionName,
org.apache.tiles.request.Request request)
Returns a definition specifying its name.
|
boolean |
isValidDefinition(String definition,
org.apache.tiles.request.Request request)
Determine whether or not the definition exists.
|
void |
prepare(String preparer,
org.apache.tiles.request.Request request)
Executes a preparer.
|
void |
render(Attribute attribute,
org.apache.tiles.request.Request request)
Render the given Attribute.
|
void |
render(Definition definition,
org.apache.tiles.request.Request request)
Renders the specified definition.
|
void |
render(String definition,
org.apache.tiles.request.Request request)
Render the given tiles request.
|
void |
renderContext(org.apache.tiles.request.Request request)
Renders the current context, as it is.
|
AttributeContext |
startContext(org.apache.tiles.request.Request request)
Starts a new context, where attribute values are stored independently
from others.
When the use of the contexts is finished, call endContext(Request) |
org.apache.tiles.request.ApplicationContext getApplicationContext()
AttributeContext getAttributeContext(org.apache.tiles.request.Request request)
request
- The request.AttributeContext startContext(org.apache.tiles.request.Request request)
endContext(Request)
request
- The request.void endContext(org.apache.tiles.request.Request request)
startContext(Request)
call.request
- The request.void renderContext(org.apache.tiles.request.Request request)
request
- The request.void prepare(String preparer, org.apache.tiles.request.Request request)
preparer
- The name of the preparer to execute.request
- The request.void render(String definition, org.apache.tiles.request.Request request)
definition
- the current definition.request
- The request.void render(Definition definition, org.apache.tiles.request.Request request)
definition
- The definition to render.request
- The request context.void render(Attribute attribute, org.apache.tiles.request.Request request) throws IOException
attribute
- The attribute to render.request
- The request.IOException
- If something goes wrong during writing to the output.Object evaluate(Attribute attribute, org.apache.tiles.request.Request request)
attribute
- The attribute to evaluate.request
- The request.Definition getDefinition(String definitionName, org.apache.tiles.request.Request request)
definitionName
- The name of the definition to find.request
- The request context.boolean isValidDefinition(String definition, org.apache.tiles.request.Request request)
definition
- the name of the definition.request
- The request.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.