|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.displaytag.decorator.DefaultDecoratorFactory
public class DefaultDecoratorFactory
Factory for TableDecorator or ColumnDecorator object.
| Constructor Summary | |
|---|---|
DefaultDecoratorFactory()
|
|
| Method Summary | |
|---|---|
DisplaytagColumnDecorator |
loadColumnDecorator(javax.servlet.jsp.PageContext pageContext,
java.lang.String decoratorName)
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 DisplaytagColumnDecorator object). |
TableDecorator |
loadTableDecorator(javax.servlet.jsp.PageContext pageContext,
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 |
| Constructor Detail |
|---|
public DefaultDecoratorFactory()
| Method Detail |
|---|
public TableDecorator loadTableDecorator(javax.servlet.jsp.PageContext pageContext,
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.
Two different methods for loading a decorator are handled by this factory:
decoratorName is searched in the page/request/session/scopedecoratorName is the class name of the decorator and load it using
reflection
loadTableDecorator in interface DecoratorFactorydecoratorName - String full decorator class name
DecoratorInstantiationException - if unable to load specified TableDecorator
public DisplaytagColumnDecorator loadColumnDecorator(javax.servlet.jsp.PageContext pageContext,
java.lang.String decoratorName)
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 DisplaytagColumnDecorator object). If there are any problems loading the decorator then this will throw a DecoratorInstantiationException which will get propagated up to the page.
Two different methods for loading a decorator are handled by this factory:
decoratorName is searched in the page/request/session/scopedecoratorName is the class name of the decorator and load it using
reflection
loadColumnDecorator in interface DecoratorFactorydecoratorName - String full decorator class name
DecoratorInstantiationException - if unable to load ColumnDecorator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||