01: /*
02: * IReportConnectionEditor.java
03: *
04: * Created on March 27, 2007, 9:15 AM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package it.businesslogic.ireport;
11:
12: /**
13: * A IReportConnectionEditor class provides a complete custom GUI for customizing a target IReportConnection.<br>
14: * Each IReportConnectionEditor should inherit from the java.awt.Component class so it can be instantiated inside an AWT dialog or panel.<br>
15: * Each IReportConnectionEditor should have a null constructor.<br>
16: *
17: * @author gtoffoli
18: */
19: public interface IReportConnectionEditor {
20:
21: /**
22: * Set the IReportConnection to edit. Actually it is a copy of the original IReportConnection.
23: * It can be modifed by the user interface.<br><br>
24: *
25: * The copy of an IReportConnection is done instancing a new class of the same type and loading
26: * the properties stored by the first object
27: * @param c IReportConnection to edit
28: */
29: public void setIReportConnection(IReportConnection c);
30:
31: /**
32: * This method is called when the user completes to edit the datasource or when a datasource test is required.
33: * @return IReportConnection modified. IT can be the same instance get in input with setIReportConnection or a new one.
34: */
35: public IReportConnection getIReportConnection();
36:
37: }
|