org.apache.tiles.renderer.impl
Class DefinitionAttributeRenderer
java.lang.Object
org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer
org.apache.tiles.renderer.impl.DefinitionAttributeRenderer
- All Implemented Interfaces:
- TilesApplicationContextAware, TilesContainerAware, TilesRequestContextFactoryAware, AttributeEvaluatorAware, AttributeRenderer
public class DefinitionAttributeRenderer
- extends AbstractBaseAttributeRenderer
- implements TilesContainerAware, AttributeRenderer
Renders an attribute that contains a reference to a definition.
- Since:
- 2.1.0
Method Summary |
void |
setContainer(TilesContainer container)
Sets the Tiles container. |
void |
write(java.lang.Object value,
Attribute attribute,
java.io.Writer writer,
TilesRequestContext request,
java.lang.Object... requestItems)
Implement this method knowing that the attribute won't be null and it
will be authorized. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
container
protected TilesContainer container
- The Tiles container.
- Since:
- 2.1.0
DefinitionAttributeRenderer
public DefinitionAttributeRenderer()
setContainer
public void setContainer(TilesContainer container)
- Sets the Tiles container.
- Specified by:
setContainer
in interface TilesContainerAware
- Parameters:
container
- The Tiles container.
write
public void write(java.lang.Object value,
Attribute attribute,
java.io.Writer writer,
TilesRequestContext request,
java.lang.Object... requestItems)
throws java.io.IOException
- Implement this method knowing that the attribute won't be null and it
will be authorized.
- Specified by:
write
in class AbstractBaseAttributeRenderer
- Parameters:
value
- The value of the attribute to be rendered.attribute
- The attribute to render.writer
- The writer to use.request
- The Tiles request object.requestItems
- The original request items.
- Throws:
java.io.IOException
- If something goes wrong during rendition.