org.displaytag.decorator
Class AutolinkColumnDecorator

java.lang.Object
  extended byorg.displaytag.decorator.AutolinkColumnDecorator
All Implemented Interfaces:
ColumnDecorator

public class AutolinkColumnDecorator
extends java.lang.Object
implements ColumnDecorator

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: 1.3 $ ($Author: fgiust $)
Author:
Fabrizio Giustina

Field Summary
static ColumnDecorator INSTANCE
          Instance used for the "autolink" tag attribute.
 
Constructor Summary
AutolinkColumnDecorator()
           
 
Method Summary
 java.lang.String decorate(java.lang.Object columnValue)
          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 ColumnDecorator INSTANCE
Instance used for the "autolink" tag attribute. Will be removed in future along with the attribute.

Constructor Detail

AutolinkColumnDecorator

public AutolinkColumnDecorator()
Method Detail

decorate

public java.lang.String decorate(java.lang.Object columnValue)
Description copied from interface: ColumnDecorator
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 ColumnDecorator
Parameters:
columnValue - Object to decorate
Returns:
String decorated object
See Also:
ColumnDecorator.decorate(java.lang.Object)


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