root / branches / v2_0_0_prep / libraries / org.gvsig.exportto / org.gvsig.exportto.swing / org.gvsig.exportto.swing.prov / org.gvsig.exportto.swing.prov.file / src / main / java / org / gvsig / exportto / swing / prov / file / AbstractExporttoFileProvider.java @ 34981
History | View | Annotate | Download (2.42 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program 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
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
package org.gvsig.exportto.swing.prov.file; |
23 |
|
24 |
import org.cresques.cts.IProjection; |
25 |
|
26 |
import org.gvsig.exportto.swing.prov.file.panel.SelectFileOptionPanel; |
27 |
import org.gvsig.exportto.swing.spi.ExporttoSwingProvider; |
28 |
import org.gvsig.exportto.swing.spi.ExporttoSwingProviderPanel; |
29 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
30 |
import org.gvsig.tools.service.spi.AbstractProvider; |
31 |
import org.gvsig.tools.service.spi.ProviderServices; |
32 |
|
33 |
/**
|
34 |
* Exporto provider which gets Exporto from a file.
|
35 |
*
|
36 |
* @author gvSIG Team
|
37 |
* @version $Id$
|
38 |
*/
|
39 |
public abstract class AbstractExporttoFileProvider extends AbstractProvider implements |
40 |
ExporttoSwingProvider { |
41 |
|
42 |
protected SelectFileOptionPanel selectFileOptionPanel = null; |
43 |
|
44 |
protected FeatureStore featureStore;
|
45 |
protected IProjection projection;
|
46 |
|
47 |
/**
|
48 |
* Constructor.
|
49 |
*
|
50 |
* @param providerServices
|
51 |
* the services for the provider
|
52 |
* @param file
|
53 |
* to get the Exporto from
|
54 |
*/
|
55 |
public AbstractExporttoFileProvider(ProviderServices providerServices, FeatureStore featureStore, IProjection projection) {
|
56 |
super(providerServices);
|
57 |
this.featureStore = featureStore;
|
58 |
this.projection = projection;
|
59 |
|
60 |
selectFileOptionPanel = new SelectFileOptionPanel();
|
61 |
} |
62 |
|
63 |
public int getPanelCount() { |
64 |
return 1; |
65 |
} |
66 |
|
67 |
public ExporttoSwingProviderPanel getPanelAt(int index) { |
68 |
switch(index){
|
69 |
case 0: |
70 |
return selectFileOptionPanel;
|
71 |
} |
72 |
return null; |
73 |
} |
74 |
|
75 |
} |