org.displaytag.decorator
Interface ColumnDecorator

All Known Implementing Classes:
AutolinkColumnDecorator, LongDateWrapper

public interface ColumnDecorator

Interface for simple column decorators.

A column decorator is called after the object has been retrieved and it can "transform" the object before the rendering. A column decorator is simply an object formatter, and it is only aware of the value to format.

Version:
$Revision: 1.9 $ ($Author: fgiust $)
Author:
epesh, Fabrizio Giustina

Method Summary
 java.lang.String decorate(java.lang.Object columnValue)
          Called after the object has been retrieved from the bean contained in the list.
 

Method Detail

decorate

public java.lang.String decorate(java.lang.Object columnValue)
                          throws DecoratorException
Called after the object has been retrieved from the bean contained in the list. The decorate method is responsible for transforming the object into a string to render in the page.

Parameters:
columnValue - Object to decorate
Returns:
String decorated object
Throws:
DecoratorException - wrapper exception for any exception thrown during decoration


Copyright © 2002-2005 the Displaytag team. All Rights Reserved.