Update of /cvsroot/displaytag/display09/site/src/org/displaytag/sample
In directory sc8-pr-cvs1:/tmp/cvs-serv15439
Modified Files:
TotalWrapper.java Wrapper.java
Log Message:
fixed calls to renamed decorator methods
Index: TotalWrapper.java
===================================================================
RCS file:
/cvsroot/displaytag/display09/site/src/org/displaytag/sample/TotalWrapper.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TotalWrapper.java 22 Jun 2003 20:33:04 -0000 1.1
--- TotalWrapper.java 15 Jul 2003 21:54:45 -0000 1.2
***************
*** 29,34 ****
public String finishRow()
{
! int lListindex= ((List)getObject()).indexOf(this.getObject());
! ReportableListObject lReportableObject= (ReportableListObject)
this.getObject();
String lNextCity= "";
--- 29,34 ----
public String finishRow()
{
! int lListindex=
((List)getDecoratedObject()).indexOf(this.getCurrentRowObject());
! ReportableListObject lReportableObject= (ReportableListObject)
this.getCurrentRowObject();
String lNextCity= "";
***************
*** 36,40 ****
mGrandTotal += lReportableObject.getAmount();
! if (lListindex == ((List)getObject()).size() - 1)
{
lNextCity= "XXXXXX"; // Last row hack, it's only a demo
folks...
--- 36,40 ----
mGrandTotal += lReportableObject.getAmount();
! if (lListindex == ((List)getDecoratedObject()).size() - 1)
{
lNextCity= "XXXXXX"; // Last row hack, it's only a demo
folks...
***************
*** 42,46 ****
else
{
! lNextCity= ((ReportableListObject)
((List)getObject()).get(lListindex + 1)).getCity();
}
--- 42,46 ----
else
{
! lNextCity= ((ReportableListObject)
((List)getDecoratedObject()).get(lListindex + 1)).getCity();
}
***************
*** 63,67 ****
// Grand totals...
! if (getViewIndex() == ((List)getObject()).size() - 1)
{
lBuffer.append("<tr><td colspan=\"4\"><hr noshade
size=\"1\"></td></tr>");
--- 63,67 ----
// Grand totals...
! if (getViewIndex() == ((List)getDecoratedObject()).size() - 1)
{
lBuffer.append("<tr><td colspan=\"4\"><hr noshade
size=\"1\"></td></tr>");
Index: Wrapper.java
===================================================================
RCS file: /cvsroot/displaytag/display09/site/src/org/displaytag/sample/Wrapper.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Wrapper.java 22 Jun 2003 20:33:04 -0000 1.1
--- Wrapper.java 15 Jul 2003 21:54:45 -0000 1.2
***************
*** 55,59 ****
public String getDate()
{
! return this.mDateFormat.format(((ListObject)
this.getObject()).getDate());
}
--- 55,59 ----
public String getDate()
{
! return this.mDateFormat.format(((ListObject)
this.getDecoratedObject()).getDate());
}
***************
*** 65,69 ****
public String getMoney()
{
! return this.mMoneyFormat.format(((ListObject)
this.getObject()).getMoney());
}
--- 65,69 ----
public String getMoney()
{
! return this.mMoneyFormat.format(((ListObject)
this.getDecoratedObject()).getMoney());
}
***************
*** 75,79 ****
public String getLink1()
{
! ListObject lObject= (ListObject) getObject();
int lIndex= getListIndex();
--- 75,79 ----
public String getLink1()
{
! ListObject lObject= (ListObject) getDecoratedObject();
int lIndex= getListIndex();
***************
*** 88,92 ****
public String getLink2()
{
! ListObject lObject= (ListObject)getObject();
int lId= lObject.getId();
--- 88,92 ----
public String getLink2()
{
! ListObject lObject= (ListObject)getDecoratedObject();
int lId= lObject.getId();
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel