org.displaytag.decorator
Class AutolinkColumnDecorator

java.lang.Object
  extended by org.displaytag.decorator.AutolinkColumnDecorator
All Implemented Interfaces:
DisplaytagColumnDecorator

public class AutolinkColumnDecorator
extends java.lang.Object
implements DisplaytagColumnDecorator

This takes the string that is passed in, and "auto-links" it, it turns email addresses into hyperlinks, and also turns things that looks like URLs into hyperlinks as well.

Version:
$Revision: 1081 $ ($Author: fgiust $)
Author:
Fabrizio Giustina

Field Summary
static DisplaytagColumnDecorator INSTANCE
          Instance used for the "autolink" tag attribute.
 
Constructor Summary
AutolinkColumnDecorator()
           
 
Method Summary
 java.lang.Object decorate(java.lang.Object columnValue, javax.servlet.jsp.PageContext pageContext, MediaTypeEnum media)
          Called after the object has been retrieved from the bean contained in the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DisplaytagColumnDecorator INSTANCE
Instance used for the "autolink" tag attribute.

Constructor Detail

AutolinkColumnDecorator

public AutolinkColumnDecorator()
Method Detail

decorate

public java.lang.Object decorate(java.lang.Object columnValue,
                                 javax.servlet.jsp.PageContext pageContext,
                                 MediaTypeEnum media)
Description copied from interface: DisplaytagColumnDecorator
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.

Specified by:
decorate in interface DisplaytagColumnDecorator
Parameters:
columnValue - Object to decorate
pageContext - jsp page context
media - current media (html, pdf, excel...)
Returns:
Object decorated object
See Also:
DisplaytagColumnDecorator.decorate(Object, PageContext, MediaTypeEnum)


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