01: //The Salmon Open Framework for Internet Applications (SOFIA)
02: //Copyright (C) 1999 - 2002, Salmon LLC
03: //
04: //This program is free software; you can redistribute it and/or
05: //modify it under the terms of the GNU General Public License version 2
06: //as published by the Free Software Foundation;
07: //
08: //This program is distributed in the hope that it will be useful,
09: //but WITHOUT ANY WARRANTY; without even the implied warranty of
10: //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: //GNU General Public License for more details.
12: //
13: //You should have received a copy of the GNU General Public License
14: //along with this program; if not, write to the Free Software
15: //Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16: //
17: //For more information please visit http://www.salmonllc.com
18: package com.salmonllc.examples.example17;
19:
20: /**
21: * This interface is a copy of com.salmonllc.jasperReports.ReportParameterConstants. In a real application, the framework interface should be used instead of this one. This one was included because the JasperReport framework classes are optional and this allows the example to compile even if they aren't present in the IDE.
22: * These constanst are passed to the Jasper Viewer applet or application to configure it at run time
23: */
24: public interface ReportParameterConstants {
25: // The class name of the SOFIA Remote DataStore to use to get the data for this report
26: public static String MODEL_CLASS = "modelClass";
27:
28: // The selection criteria used to initially filter the report data
29: public static String SELECTION_CRITERIA = "selectionCriteria";
30:
31: //The URL of the compiled Jasper Report object (*.jasper)
32: public static String REPORT_URL = "reportURL";
33:
34: //The session id of the web application
35: public static String SESSION_ID = "servletSessionID";
36:
37: // The Code Base for the web server launching the applet (used for application only)
38: public static String SERVER_URL = "servlerURL";
39:
40: // This is used for applets when running in the IDE, because the codeBase property is not set properly
41: public static String CODE_BASE = "codeBase";
42:
43: // The width of the application
44: public static String WIDTH = "width";
45:
46: // The height of the application
47: public static String HEIGHT = "height";
48:
49: // The x position of the application on the screen (leave out to center)
50: public static String X = "x";
51:
52: // The y position of the application on the screen (leave out to center)
53: public static String Y = "y";
54:
55: // The server directory containing the images for the viewer buttons relative to the web application name of the web app that launched it.
56: public static String IMAGE_BASE_URL = "ImageBaseURL";
57: }
|