public class TilesContainerWrapper extends Object implements TilesContainer
Modifier and Type | Field and Description |
---|---|
protected TilesContainer |
container
The container to wrap.
|
Constructor and Description |
---|
TilesContainerWrapper(TilesContainer container)
Constructor.
|
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 TilesContainer.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.
|
TilesContainer |
getWrappedContainer()
Returns the wrapped container.
|
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 TilesContainer.endContext(Request) |
protected TilesContainer container
public TilesContainerWrapper(TilesContainer container)
container
- The container to wrap.public TilesContainer getWrappedContainer()
public void endContext(org.apache.tiles.request.Request request)
TilesContainer
TilesContainer.startContext(Request)
call.endContext
in interface TilesContainer
request
- The request.public Object evaluate(Attribute attribute, org.apache.tiles.request.Request request)
TilesContainer
evaluate
in interface TilesContainer
attribute
- The attribute to evaluate.request
- The request.public org.apache.tiles.request.ApplicationContext getApplicationContext()
TilesContainer
getApplicationContext
in interface TilesContainer
public AttributeContext getAttributeContext(org.apache.tiles.request.Request request)
TilesContainer
getAttributeContext
in interface TilesContainer
request
- The request.public Definition getDefinition(String definitionName, org.apache.tiles.request.Request request)
TilesContainer
getDefinition
in interface TilesContainer
definitionName
- The name of the definition to find.request
- The request context.public boolean isValidDefinition(String definition, org.apache.tiles.request.Request request)
TilesContainer
isValidDefinition
in interface TilesContainer
definition
- the name of the definition.request
- The request.public void prepare(String preparer, org.apache.tiles.request.Request request)
TilesContainer
prepare
in interface TilesContainer
preparer
- The name of the preparer to execute.request
- The request.public void render(String definition, org.apache.tiles.request.Request request)
TilesContainer
render
in interface TilesContainer
definition
- the current definition.request
- The request.public void render(Definition definition, org.apache.tiles.request.Request request)
TilesContainer
render
in interface TilesContainer
definition
- The definition to render.request
- The request context.public void render(Attribute attribute, org.apache.tiles.request.Request request) throws IOException
TilesContainer
render
in interface TilesContainer
attribute
- The attribute to render.request
- The request.IOException
- If something goes wrong during writing to the output.public void renderContext(org.apache.tiles.request.Request request)
TilesContainer
renderContext
in interface TilesContainer
request
- The request.public AttributeContext startContext(org.apache.tiles.request.Request request)
TilesContainer
TilesContainer.endContext(Request)
startContext
in interface TilesContainer
request
- The request.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.