01: //** Copyright Statement ***************************************************
02: //The Salmon Open Framework for Internet Applications (SOFIA)
03: // Copyright (C) 1999 - 2004, Salmon LLC
04: //
05: // This program is free software; you can redistribute it and/or
06: // modify it under the terms of the GNU General Public License version 2
07: // as published by the Free Software Foundation;
08: //
09: // This program is distributed in the hope that it will be useful,
10: // but WITHOUT ANY WARRANTY; without even the implied warranty of
11: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: // GNU General Public License for more details.
13: //
14: // You should have received a copy of the GNU General Public License
15: // along with this program; if not, write to the Free Software
16: // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: //
18: // For more information please visit http://www.salmonllc.com
19: //** End Copyright Statement ***************************************************
20: package com.salmonllc.html.events;
21:
22: import java.awt.AWTEvent;
23:
24: import com.salmonllc.jsp.JspDataTable;
25: import com.salmonllc.jsp.JspSubReportContainer;
26: import com.salmonllc.sql.DataStoreBuffer;
27:
28: /////////////////////////
29: //$Archive: /SOFIA/SourceCode/com/salmonllc/html/events/SubReportEvent.java $
30: //$Author: Dan $
31: //$Revision: 1 $
32: //$Modtime: 8/26/04 11:00a $
33: /////////////////////////
34:
35: /**
36: * This event is passed to the SubReportListener
37: */
38: public class SubReportEvent extends AWTEvent {
39: private JspDataTable _dataTable;
40: private DataStoreBuffer _dataStoreBuffer;
41: private int _row;
42:
43: public SubReportEvent(JspSubReportContainer subreport,
44: JspDataTable tab, DataStoreBuffer ds, int row) {
45: super (subreport, 0);
46: _dataTable = tab;
47: _dataStoreBuffer = ds;
48: _row = row;
49: }
50:
51: /**
52: * @return Returns the dataStoreBuffer.
53: */
54: public DataStoreBuffer getDataStoreBuffer() {
55: return _dataStoreBuffer;
56: }
57:
58: /**
59: * @return Returns the dataTable.
60: */
61: public JspDataTable getDataTable() {
62: return _dataTable;
63: }
64:
65: /**
66: * @return Returns the row.
67: */
68: public int getRow() {
69: return _row;
70: }
71: }
|