Update of /cvsroot/displaytag/display09/src/org/displaytag/decorator
In directory sc8-pr-cvs1:/tmp/cvs-serv553/src/org/displaytag/decorator
Modified Files:
DecoratorFactory.java ColumnDecorator.java
Log Message:
formatted code, some javadoc improvements and small fixes
Index: DecoratorFactory.java
===================================================================
RCS file:
/cvsroot/displaytag/display09/src/org/displaytag/decorator/DecoratorFactory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** DecoratorFactory.java 21 Jun 2003 12:34:49 -0000 1.1
--- DecoratorFactory.java 9 Aug 2003 19:54:08 -0000 1.2
***************
*** 10,21 ****
* @version $Revision$ ($Author$)
*/
! public class DecoratorFactory
{
! /** column decorator class name **/
! private static final String CLASS_COLUMNDECORATOR=
ColumnDecorator.class.getName();
! /** table decorator class name **/
! private static final String CLASS_TABLEDECORATOR=
TableDecorator.class.getName();
/**
--- 10,25 ----
* @version $Revision$ ($Author$)
*/
! public final class DecoratorFactory
{
! /**
! * column decorator class name
! */
! private static final Class CLASS_COLUMNDECORATOR = ColumnDecorator.class;
! /**
! * table decorator class name
! */
! private static final Class CLASS_TABLEDECORATOR = TableDecorator.class;
/**
***************
*** 30,38 ****
* 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.
! * @param pDecoratorName String
! * @return TableDecorator
! * @throws DecoratorInstantiationException if unable to load TableDecorator
*/
public static TableDecorator loadTableDecorator(String pDecoratorName) throws
DecoratorInstantiationException
--- 34,42 ----
* 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.
! * @param pDecoratorName String full decorator class name
! * @return instance of TableDecorator
! * @throws DecoratorInstantiationException if unable to load specified
TableDecorator
*/
public static TableDecorator loadTableDecorator(String pDecoratorName) throws
DecoratorInstantiationException
***************
*** 45,53 ****
try
{
! Class lClass= Class.forName(pDecoratorName);
! if
(!Class.forName(CLASS_TABLEDECORATOR).isAssignableFrom(lClass))
{
! throw new JspException(lClass + " is not a subclass of
" + CLASS_TABLEDECORATOR);
}
--- 49,57 ----
try
{
! Class lClass = Class.forName(pDecoratorName);
! if (!CLASS_TABLEDECORATOR.isAssignableFrom(lClass))
{
! throw new JspException(lClass + " is not a subclass of
" + CLASS_TABLEDECORATOR.getName());
}
***************
*** 64,71 ****
* 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.
! * @param pColumnDecoratorName String
! * @return ColumnDecorator
* @throws DecoratorInstantiationException if unable to load ColumnDecorator
*/
--- 68,75 ----
* 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.
! * @param pColumnDecoratorName String full decorator class name
! * @return instance of ColumnDecorator
* @throws DecoratorInstantiationException if unable to load ColumnDecorator
*/
***************
*** 80,88 ****
try
{
! Class lClass= Class.forName(pColumnDecoratorName);
! if
(!Class.forName(CLASS_COLUMNDECORATOR).isAssignableFrom(lClass))
{
! throw new JspException(lClass + " is not a subclass of
" + CLASS_COLUMNDECORATOR);
}
--- 84,92 ----
try
{
! Class lClass = Class.forName(pColumnDecoratorName);
! if (!CLASS_COLUMNDECORATOR.isAssignableFrom(lClass))
{
! throw new JspException(lClass + " is not a subclass of
" + CLASS_COLUMNDECORATOR.getName());
}
Index: ColumnDecorator.java
===================================================================
RCS file:
/cvsroot/displaytag/display09/src/org/displaytag/decorator/ColumnDecorator.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ColumnDecorator.java 17 Jul 2003 21:19:57 -0000 1.3
--- ColumnDecorator.java 9 Aug 2003 19:54:08 -0000 1.4
***************
*** 5,9 ****
/**
* <p>Interface for simple column decorators.</p>
! * <p>A column decorator is called after the object has been retrieved and it can
"transform" the object before the
* rendering</p>
* @author epesh
--- 5,9 ----
/**
* <p>Interface for simple column decorators.</p>
! * <p>A column decorator is called after the object has been retrieved and it can
"transform" the object before the
* rendering</p>
* @author epesh
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel