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: //** End Copyright Statement ***************************************************
19: package com.salmonllc.jasperReports;
20:
21: import java.net.MalformedURLException;
22:
23: /**
24: * This interface provides a generic implementation for zooming to external links in a report. Applets must use the applet context to do the zoom, while web start applications must use the API. This interface is used as an adaptor to provide a common interface for the two different envionments.
25: */
26: public interface URLOpener {
27: public void openURL(String url) throws MalformedURLException;
28:
29: public void openURL(String u, String target)
30: throws MalformedURLException;
31: }
|