org.displaytag.decorator
Class DecoratorFactory

java.lang.Object
  extended byorg.displaytag.decorator.DecoratorFactory

public final class DecoratorFactory
extends java.lang.Object

Factory for TableDecorator or ColumnDecorator object.

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

Method Summary
static ColumnDecorator loadColumnDecorator(java.lang.String columnDecoratorName)
          If the user has specified a column decorator, then this method takes care of creating the decorator (and checking to make sure it is a subclass of the ColumnDecorator object).
static TableDecorator loadTableDecorator(java.lang.String decoratorName)
          If the user has specified a decorator, then this method takes care of creating the decorator (and checking to make sure it is a subclass of the TableDecorator object).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadTableDecorator

public static TableDecorator loadTableDecorator(java.lang.String decoratorName)
                                         throws DecoratorInstantiationException
If the user has specified a decorator, then this method takes care of creating the decorator (and checking to make sure it is a subclass of the TableDecorator object). If there are any problems loading the decorator then this will throw a DecoratorInstantiationException which will get propagated up to the page.

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

loadColumnDecorator

public static ColumnDecorator loadColumnDecorator(java.lang.String columnDecoratorName)
                                           throws DecoratorInstantiationException
If the user has specified a column decorator, then this method takes care of creating the decorator (and checking to make sure it is a subclass of the ColumnDecorator object). If there are any problems loading the decorator then this will throw a DecoratorInstantiationException which will get propagated up to the page.

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


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