org.displaytag.decorator
Class AutolinkColumnDecorator
java.lang.Object
org.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
|
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 |
INSTANCE
public static final ColumnDecorator INSTANCE
- Instance used for the "autolink" tag attribute. Will be removed in future along with the attribute.
AutolinkColumnDecorator
public AutolinkColumnDecorator()
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.