This project has retired. For details please refer to its
Attic page .
DefinitionAttributeRenderer (Tiles 2 2.2.2 API)
org.apache.tiles.renderer.impl
Class DefinitionAttributeRenderer
java.lang.Object
org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer
org.apache.tiles.renderer.impl.AbstractTypeDetectingAttributeRenderer
org.apache.tiles.renderer.impl.DefinitionAttributeRenderer
All Implemented Interfaces: TilesApplicationContextAware , TilesContainerAware , TilesRequestContextFactoryAware , AttributeEvaluatorFactoryAware , AttributeRenderer , TypeDetectingAttributeRenderer
public class DefinitionAttributeRenderer extends AbstractTypeDetectingAttributeRenderer implements TilesContainerAware
Renders an attribute that contains a reference to a definition.
Since:
2.1.0
Version:
$Rev: 821299 $ $Date: 2009-10-03 14:15:05 +0200 (sab, 03 ott 2009) $
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 (Object value,
Attribute attribute,
TilesRequestContext request)
throws 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.request
- The Tiles request object.
Throws:
IOException
- If something goes wrong during rendition.
isRenderable
public boolean isRenderable (Object value,
Attribute attribute,
TilesRequestContext request)
Checks if this renderer can render an attribute. Note that this does not mean
it is the best renderer available, but checks only its capability.
Specified by: isRenderable
in interface TypeDetectingAttributeRenderer
Parameters: value
- The attribute value, already evaluated.attribute
- The attribute to be renderer.request
- The Tiles request context.
Returns: true
if this renderer can render the attribute.
Copyright © 2001-2010 Apache Software Foundation . All Rights Reserved.