01: /*
02: * uDig - User Friendly Desktop Internet GIS client
03: * http://udig.refractions.net
04: * (C) 2004, Refractions Research Inc.
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: */
17: package net.refractions.udig.catalog.ui;
18:
19: import java.io.Serializable;
20: import java.util.Map;
21:
22: import org.eclipse.jface.wizard.IWizardPage;
23:
24: /**
25: * A udig import wizard page is responsible for providing a user interface which is used to gather
26: * connection information for a specific service.
27: * <p>
28: * The connection information can be in the form of a map of connection paramters, or a url, or
29: * both.
30: * </p>
31: * <p>
32: * A connection page may dynamically contribute pages to the containing wizard by returning a page
33: * from getNextPage().
34: * </p>
35: *
36: * @author jeichar
37: * @since 0.9.0
38: */
39: public interface UDIGConnectionPage extends IWizardPage {
40:
41: /**
42: * Returns the connection parameters stored by the connection page.
43: *
44: * @return A map of connection parameters.
45: */
46: Map<String, Serializable> getParams();
47:
48: /**
49: * Sets or clears the error message for this page.
50: *
51: * @param newMessage
52: * the message, or <code>null</code> to clear the error message
53: */
54: void setErrorMessage(String newMessage);
55:
56: }
|