org.apache.tiles.renderer.impl
Class StringAttributeRenderer

Package class diagram package StringAttributeRenderer
java.lang.Object
  extended by org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer
      extended by org.apache.tiles.renderer.impl.StringAttributeRenderer
All Implemented Interfaces:
TilesApplicationContextAware, TilesRequestContextFactoryAware, AttributeEvaluatorAware, AttributeRenderer

public class StringAttributeRenderer
extends AbstractBaseAttributeRenderer

Renders an attribute that contains a string.

Since:
2.1.0

Field Summary
 
Fields inherited from class org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer
applicationContext, contextFactory, evaluator
 
Constructor Summary
StringAttributeRenderer()
           
 
Method Summary
 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 org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer
getRequestContext, isPermitted, render, setApplicationContext, setEvaluator, setRequestContextFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringAttributeRenderer

public StringAttributeRenderer()
Method Detail

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.