public class DefinitionAttributeRenderer extends AbstractTypeDetectingAttributeRenderer implements TilesContainerAware
Modifier and Type | Field and Description |
---|---|
protected TilesContainer |
container
The Tiles container.
|
applicationContext, attributeEvaluatorFactory, contextFactory
Constructor and Description |
---|
DefinitionAttributeRenderer() |
Modifier and Type | Method and Description |
---|---|
boolean |
isRenderable(Object value,
Attribute attribute,
TilesRequestContext request)
Checks if this renderer can render an attribute.
|
void |
setContainer(TilesContainer container)
Sets the Tiles container.
|
void |
write(Object value,
Attribute attribute,
TilesRequestContext request)
Implement this method knowing that the attribute won't be null and it
will be authorized.
|
isRenderable
getRequestContext, isPermitted, render, setApplicationContext, setAttributeEvaluatorFactory, setRequestContextFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
render
protected TilesContainer container
public void setContainer(TilesContainer container)
setContainer
in interface TilesContainerAware
container
- The Tiles container.public void write(Object value, Attribute attribute, TilesRequestContext request) throws IOException
write
in class AbstractBaseAttributeRenderer
value
- The value of the attribute to be rendered.attribute
- The attribute to render.request
- The Tiles request object.IOException
- If something goes wrong during rendition.public boolean isRenderable(Object value, Attribute attribute, TilesRequestContext request)
isRenderable
in interface TypeDetectingAttributeRenderer
value
- The attribute value, already evaluated.attribute
- The attribute to be renderer.request
- The Tiles request context.true
if this renderer can render the attribute.Copyright © 2016. All rights reserved.