org.displaytag.decorator
Interface DecoratorFactory

All Known Implementing Classes:
DefaultDecoratorFactory

public interface DecoratorFactory

Factory for TableDecorator or ColumnDecorator object.

Version:
$Id: DecoratorFactory.java 1081 2006-04-03 20:26:34Z fgiust $
Author:
Fabrizio Giustina

Method Summary
 DisplaytagColumnDecorator loadColumnDecorator(javax.servlet.jsp.PageContext pageContext, java.lang.String decoratorName)
           Given a column decorator name, returns a org.displaytag.decorator.DisplaytagColumnDecorator instance.
 TableDecorator loadTableDecorator(javax.servlet.jsp.PageContext pageContext, java.lang.String decoratorName)
           Given a table decorator name, returns a org.displaytag.decorator.TableDecorator instance.
 

Method Detail

loadTableDecorator

TableDecorator loadTableDecorator(javax.servlet.jsp.PageContext pageContext,
                                  java.lang.String decoratorName)
                                  throws DecoratorInstantiationException

Given a table decorator name, returns a org.displaytag.decorator.TableDecorator instance. The method used to lookup decorator (direct instantiation, load from a pre-istantiated list or from the page context) may vary between different implementations.

Parameters:
decoratorName - String full decorator class name
Returns:
instance of TableDecorator
Throws:
DecoratorInstantiationException - if unable to load specified TableDecorator

loadColumnDecorator

DisplaytagColumnDecorator loadColumnDecorator(javax.servlet.jsp.PageContext pageContext,
                                              java.lang.String decoratorName)
                                              throws DecoratorInstantiationException

Given a column decorator name, returns a org.displaytag.decorator.DisplaytagColumnDecorator instance. The method used to lookup decorator (direct instantiation, load from a pre-istantiated list or from the page context) may vary between different implementations.

Parameters:
decoratorName - String full decorator class name
Returns:
instance of DisplaytagColumnDecorator
Throws:
DecoratorInstantiationException - if unable to load ColumnDecorator


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