Update of /cvsroot/displaytag/display09/examples/src/org/displaytag/sample
In directory sc8-pr-cvs1:/tmp/cvs-serv23505/examples/src/org/displaytag/sample

Modified Files:
        TotalWrapper.java 
Log Message:
removed calls to deprecated methods

Index: TotalWrapper.java
===================================================================
RCS file: 
/cvsroot/displaytag/display09/examples/src/org/displaytag/sample/TotalWrapper.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TotalWrapper.java   21 Jun 2003 12:39:30 -0000      1.1
--- TotalWrapper.java   22 Jun 2003 16:14:16 -0000      1.2
***************
*** 1,4 ****
--- 1,6 ----
  package org.displaytag.sample;
  
+ import java.util.List;
+ 
  import org.displaytag.decorator.TableDecorator;
  
***************
*** 27,31 ****
        public String finishRow()
        {
!               int lListindex= this.getList().indexOf(this.getObject());
                ReportableListObject lReportableObject= (ReportableListObject) 
this.getObject();
                String lNextCity= "";
--- 29,33 ----
        public String finishRow()
        {
!               int lListindex= ((List)getObject()).indexOf(this.getObject());
                ReportableListObject lReportableObject= (ReportableListObject) 
this.getObject();
                String lNextCity= "";
***************
*** 34,38 ****
                mGrandTotal += lReportableObject.getAmount();
  
!               if (lListindex == getList().size() - 1)
                {
                        lNextCity= "XXXXXX"; // Last row hack, it's only a demo 
folks...
--- 36,40 ----
                mGrandTotal += lReportableObject.getAmount();
  
!               if (lListindex == ((List)getObject()).size() - 1)
                {
                        lNextCity= "XXXXXX"; // Last row hack, it's only a demo 
folks...
***************
*** 40,44 ****
                else
                {
!                       lNextCity= ((ReportableListObject) 
this.getList().get(lListindex + 1)).getCity();
                }
  
--- 42,46 ----
                else
                {
!                       lNextCity= ((ReportableListObject) 
((List)getObject()).get(lListindex + 1)).getCity();
                }
  
***************
*** 61,65 ****
  
                // Grand totals...
!               if (getViewIndex() == getList().size() - 1)
                {
                        lBuffer.append("<tr><td colspan=\"4\"><hr noshade 
size=\"1\"></td></tr>");
--- 63,67 ----
  
                // Grand totals...
!               if (getViewIndex() == ((List)getObject()).size() - 1)
                {
                        lBuffer.append("<tr><td colspan=\"4\"><hr noshade 
size=\"1\"></td></tr>");




-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to