Revision 42884
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
3 |
|
|
4 |
<modelVersion>4.0.0</modelVersion> |
|
5 |
<artifactId>org.gvsig.exportto.swing</artifactId> |
|
6 |
<packaging>pom</packaging> |
|
7 |
<name>${project.artifactId}</name> |
|
8 |
|
|
9 |
<parent> |
|
10 |
<groupId>org.gvsig</groupId> |
|
11 |
<artifactId>org.gvsig.exportto</artifactId> |
|
12 |
<version>2.0.143</version> |
|
13 |
</parent> |
|
14 |
|
|
15 |
<dependencies> |
|
16 |
<dependency> |
|
17 |
<groupId>org.gvsig</groupId> |
|
18 |
<artifactId>org.gvsig.exportto.lib.api</artifactId> |
|
19 |
</dependency> |
|
20 |
</dependencies> |
|
21 |
|
|
22 |
<build> |
|
23 |
<plugins> |
|
24 |
|
|
25 |
<plugin> |
|
26 |
<groupId>org.codehaus.mojo</groupId> |
|
27 |
<artifactId>animal-sniffer-maven-plugin</artifactId> |
|
28 |
<configuration> |
|
29 |
<skip>true</skip> |
|
30 |
</configuration> |
|
31 |
</plugin> |
|
32 |
|
|
33 |
</plugins> |
|
34 |
</build> |
|
35 |
|
|
36 |
<modules> |
|
37 |
<module>org.gvsig.exportto.swing.api</module> |
|
38 |
<module>org.gvsig.exportto.swing.impl</module> |
|
39 |
<module>org.gvsig.exportto.swing.spi</module> |
|
40 |
<module>org.gvsig.exportto.swing.prov</module> |
|
41 |
</modules> |
|
42 |
|
|
43 |
</project> |
|
44 |
|
|
45 |
|
|
0 | 46 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/resources/log4j.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1" ?> |
|
2 |
<!-- |
|
3 |
|
|
4 |
gvSIG. Desktop Geographic Information System. |
|
5 |
|
|
6 |
Copyright (C) 2007-2013 gvSIG Association. |
|
7 |
|
|
8 |
This program is free software; you can redistribute it and/or |
|
9 |
modify it under the terms of the GNU General Public License |
|
10 |
as published by the Free Software Foundation; either version 3 |
|
11 |
of the License, or (at your option) any later version. |
|
12 |
|
|
13 |
This program is distributed in the hope that it will be useful, |
|
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
GNU General Public License for more details. |
|
17 |
|
|
18 |
You should have received a copy of the GNU General Public License |
|
19 |
along with this program; if not, write to the Free Software |
|
20 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
21 |
MA 02110-1301, USA. |
|
22 |
|
|
23 |
For any additional information, do not hesitate to contact us |
|
24 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
25 |
|
|
26 |
--> |
|
27 |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> |
|
28 |
|
|
29 |
<!-- |
|
30 |
Log4J configuration file for unit tests execution. |
|
31 |
--> |
|
32 |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> |
|
33 |
|
|
34 |
<!-- Appender configuration to show logging messages through the console --> |
|
35 |
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> |
|
36 |
<layout class="org.apache.log4j.PatternLayout"> |
|
37 |
<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n %m%n" /> |
|
38 |
</layout> |
|
39 |
</appender> |
|
40 |
|
|
41 |
<!-- |
|
42 |
Activate logging messages of DEBUG level of higher only for the |
|
43 |
org.gvsig.tools packages. |
|
44 |
You can put full classes names or packages instead, to configure |
|
45 |
logging for all the classes and subpackages of the package. |
|
46 |
--> |
|
47 |
<category name="org.gvsig.tools"> |
|
48 |
<priority value="DEBUG" /> |
|
49 |
</category> |
|
50 |
<category name="org.gvsig.exportto"> |
|
51 |
<priority value="DEBUG" /> |
|
52 |
</category> |
|
53 |
|
|
54 |
<!-- |
|
55 |
By default, show only logging messages of INFO level or higher, |
|
56 |
through the previously configured CONSOLE appender. |
|
57 |
--> |
|
58 |
<root> |
|
59 |
<priority value="INFO" /> |
|
60 |
<appender-ref ref="CONSOLE" /> |
|
61 |
</root> |
|
62 |
</log4j:configuration> |
|
0 | 63 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/resources/README.txt | ||
---|---|---|
1 |
Put into this folder the resources needed by your test classes. |
|
2 |
|
|
3 |
This folder is added to the Tests classpath, so you can load any resources |
|
4 |
through the ClassLoader. |
|
5 |
|
|
6 |
By default, in this folder you can find an example of log4j configuration, |
|
7 |
prepared to log messages through the console, so logging works when you |
|
8 |
run your tests classes. |
|
0 | 9 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingManagerTest.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
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 3 |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.exportto.swing.impl; |
|
25 |
|
|
26 |
// import org.gvsig.exportto.swing.ExporttoSwingManager; |
|
27 |
|
|
28 |
/** |
|
29 |
* {@link ExporttoSwingManager} API compatibility tests for the |
|
30 |
* {@link DefaultExporttoSwingManager} implementation. |
|
31 |
* |
|
32 |
* @author gvSIG Team |
|
33 |
* @version $Id$ |
|
34 |
*/ |
|
35 |
public class DefaultExporttoSwingManagerTest { |
|
36 |
// extends ExporttoSwingManagerTest { |
|
37 |
|
|
38 |
// Nothing to add |
|
39 |
} |
|
0 | 40 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultExporttoWindowManagerTest.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
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 3 |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.exportto.swing.impl; |
|
25 |
|
|
26 |
// import org.gvsig.exportto.swing.ExporttoWindowManager; |
|
27 |
|
|
28 |
/** |
|
29 |
* {@link ExporttoWindowManager} API compatibility tests for the |
|
30 |
* {@link DefaultExporttoWindowManager} implementation. |
|
31 |
* |
|
32 |
* @author gvSIG Team |
|
33 |
* @version $Id$ |
|
34 |
*/ |
|
35 |
public class DefaultExporttoWindowManagerTest { |
|
36 |
// extends ExporttoWindowManagerTest { |
|
37 |
// Nothing to add |
|
38 |
} |
|
0 | 39 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/JExporttoServicePanelTest.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
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 3 |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.exportto.swing.impl; |
|
25 |
|
|
26 |
//import org.gvsig.exportto.ExporttoManager; |
|
27 |
//import org.gvsig.exportto.ExporttoServiceException; |
|
28 |
//import org.gvsig.exportto.swing.ExporttoSwingLocator; |
|
29 |
//import org.gvsig.exportto.swing.ExporttoSwingManager; |
|
30 |
//import org.gvsig.exportto.swing.JExporttoServicePanel; |
|
31 |
//import org.gvsig.fmap.crs.CRSFactory; |
|
32 |
//import org.gvsig.fmap.dal.DALLocator; |
|
33 |
//import org.gvsig.fmap.dal.DataManager; |
|
34 |
//import org.gvsig.fmap.dal.DataStoreParameters; |
|
35 |
//import org.gvsig.fmap.dal.exception.InitializeException; |
|
36 |
//import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
|
37 |
//import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
|
38 |
//import org.gvsig.fmap.dal.feature.FeatureStore; |
|
39 |
//import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase; |
|
40 |
//import org.gvsig.tools.service.ServiceException; |
|
41 |
//import org.gvsig.tools.swing.api.ToolsSwingLocator; |
|
42 |
//import org.gvsig.tools.swing.impl.dynobject.DefaultDynObjectSwingManager; |
|
43 |
|
|
44 |
/** |
|
45 |
* API compatibility tests for {@link JExporttoServicePanel} implementations. |
|
46 |
* |
|
47 |
* @author gvSIG Team |
|
48 |
* @version $Id$ |
|
49 |
*/ |
|
50 |
public abstract class JExporttoServicePanelTest { |
|
51 |
// extends AbstractLibraryAutoInitTestCase { |
|
52 |
// |
|
53 |
// protected ExporttoManager manager; |
|
54 |
// protected ExporttoSwingManager swingManager; |
|
55 |
// protected DataManager dataManager = null; |
|
56 |
// |
|
57 |
// @Override |
|
58 |
// protected void doSetUp() throws Exception { |
|
59 |
// |
|
60 |
// // A Class or Factory has not been registered for the reference |
|
61 |
// // Tools.dynobject.swing.manager in the Locator Tools.swing.locator |
|
62 |
// ToolsSwingLocator.registerDynObjectSwingManager( |
|
63 |
// DefaultDynObjectSwingManager.class); |
|
64 |
// |
|
65 |
// swingManager = ExporttoSwingLocator.getSwingManager(); |
|
66 |
// manager = swingManager.getManager(); |
|
67 |
// dataManager = DALLocator.getDataManager(); |
|
68 |
// |
|
69 |
// IconThemeHelper.registerIcon("export-to", "wizard-export-to", this); |
|
70 |
// } |
|
71 |
// |
|
72 |
// public void testJExporttoServicePanel() throws ServiceException, |
|
73 |
// ExporttoServiceException, ValidateDataParametersException, |
|
74 |
// InitializeException, ProviderNotRegisteredException { |
|
75 |
// assertNotNull(swingManager); |
|
76 |
// |
|
77 |
// JExporttoServicePanel panel = |
|
78 |
// swingManager.createExportto(createMemoryFeatureStore(), |
|
79 |
// CRSFactory.getCRS("EPSG:4326")); |
|
80 |
// assertNotNull(panel); |
|
81 |
// } |
|
82 |
// |
|
83 |
// private FeatureStore createMemoryFeatureStore() throws InitializeException, |
|
84 |
// ProviderNotRegisteredException, ValidateDataParametersException { |
|
85 |
// DataStoreParameters memoryParameters = |
|
86 |
// dataManager.createStoreParameters("Memory"); |
|
87 |
// return (FeatureStore) dataManager.openStore("Memory", memoryParameters); |
|
88 |
// } |
|
89 |
} |
|
0 | 90 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/DefaultJExporttoServicePanelTest.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
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 3 |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.exportto.swing.impl; |
|
25 |
|
|
26 |
// import org.gvsig.exportto.swing.JExporttoServicePanel; |
|
27 |
|
|
28 |
/** |
|
29 |
* {@link JExporttoServicePanel} API compatibility tests for the |
|
30 |
* {@link DefaultJExporttoServicePanel} implementation. |
|
31 |
* |
|
32 |
* @author gvSIG Team |
|
33 |
* @version $Id$ |
|
34 |
*/ |
|
35 |
public class DefaultJExporttoServicePanelTest { |
|
36 |
// extends JExporttoServicePanelTest { |
|
37 |
// Nothing to add |
|
38 |
} |
|
0 | 39 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/ExporttoSwingManagerTest.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
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 3 |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.exportto.swing.impl; |
|
25 |
|
|
26 |
//import org.gvsig.exportto.ExporttoLocator; |
|
27 |
//import org.gvsig.exportto.ExporttoManager; |
|
28 |
//import org.gvsig.exportto.swing.ExporttoSwingLocator; |
|
29 |
//import org.gvsig.exportto.swing.ExporttoSwingManager; |
|
30 |
//import org.gvsig.exportto.swing.ExporttoWindowManager; |
|
31 |
//import org.gvsig.exportto.swing.JExporttoServicePanel; |
|
32 |
//import org.gvsig.fmap.crs.CRSFactory; |
|
33 |
//import org.gvsig.fmap.dal.DALLocator; |
|
34 |
//import org.gvsig.fmap.dal.DataManager; |
|
35 |
//import org.gvsig.fmap.dal.DataStoreParameters; |
|
36 |
//import org.gvsig.fmap.dal.exception.InitializeException; |
|
37 |
//import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
|
38 |
//import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
|
39 |
//import org.gvsig.fmap.dal.feature.FeatureStore; |
|
40 |
//import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase; |
|
41 |
//import org.gvsig.tools.service.ServiceException; |
|
42 |
//import org.gvsig.tools.swing.api.ToolsSwingLocator; |
|
43 |
//import org.gvsig.tools.swing.impl.dynobject.DefaultDynObjectSwingManager; |
|
44 |
|
|
45 |
/** |
|
46 |
* API compatibility tests for {@link ExporttoSwingManager} implementations. |
|
47 |
* |
|
48 |
* @author gvSIG Team |
|
49 |
* @version $Id$ |
|
50 |
*/ |
|
51 |
public abstract class ExporttoSwingManagerTest { |
|
52 |
//extends AbstractLibraryAutoInitTestCase { |
|
53 |
// |
|
54 |
// protected ExporttoManager manager; |
|
55 |
// protected ExporttoSwingManager swingManager; |
|
56 |
// protected DataManager dataManager = null; |
|
57 |
// |
|
58 |
// @Override |
|
59 |
// protected void doSetUp() throws Exception { |
|
60 |
// |
|
61 |
// // A Class or Factory has not been registered for the reference |
|
62 |
// // Tools.dynobject.swing.manager in the Locator Tools.swing.locator |
|
63 |
// ToolsSwingLocator.registerDynObjectSwingManager( |
|
64 |
// DefaultDynObjectSwingManager.class); |
|
65 |
// |
|
66 |
// manager = ExporttoLocator.getManager(); |
|
67 |
// swingManager = ExporttoSwingLocator.getSwingManager(); |
|
68 |
// dataManager = DALLocator.getDataManager(); |
|
69 |
// |
|
70 |
// IconThemeHelper.registerIcon("export-to", "wizard-export-to", this); |
|
71 |
// } |
|
72 |
// |
|
73 |
// public void testGetManager() { |
|
74 |
// assertEquals(manager, swingManager.getManager()); |
|
75 |
// } |
|
76 |
// |
|
77 |
// public void testCreateWindowManager() { |
|
78 |
// ExporttoWindowManager windowManager = null; |
|
79 |
// swingManager.registerWindowManager(windowManager); |
|
80 |
// assertEquals(swingManager.getWindowManager(), windowManager); |
|
81 |
// } |
|
82 |
// |
|
83 |
// public void testCreationJExporttoServicePanel() throws ServiceException, |
|
84 |
// ValidateDataParametersException, InitializeException, |
|
85 |
// ProviderNotRegisteredException { |
|
86 |
// |
|
87 |
// JExporttoServicePanel panel1 = |
|
88 |
// swingManager.createExportto(createMemoryFeatureStore(), |
|
89 |
// CRSFactory.getCRS("EPSG:4326")); |
|
90 |
// |
|
91 |
// assertNotNull(panel1); |
|
92 |
// } |
|
93 |
// |
|
94 |
// private FeatureStore createMemoryFeatureStore() throws InitializeException, |
|
95 |
// ProviderNotRegisteredException, ValidateDataParametersException { |
|
96 |
// DataStoreParameters memoryParameters = |
|
97 |
// dataManager.createStoreParameters("Memory"); |
|
98 |
// return (FeatureStore) dataManager.openStore("Memory", memoryParameters); |
|
99 |
// } |
|
100 |
|
|
101 |
} |
|
0 | 102 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/test/java/org/gvsig/exportto/swing/impl/ExporttoWindowManagerTest.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
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 3 |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.exportto.swing.impl; |
|
25 |
|
|
26 |
// import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase; |
|
27 |
|
|
28 |
/** |
|
29 |
* API compatibility tests for {@link ExporttoWindowManager} implementations. |
|
30 |
* |
|
31 |
* @author gvSIG Team |
|
32 |
* @version $Id$ |
|
33 |
*/ |
|
34 |
public abstract class ExporttoWindowManagerTest { |
|
35 |
// extends |
|
36 |
// AbstractLibraryAutoInitTestCase { |
|
37 |
// |
|
38 |
// @Override |
|
39 |
// protected void doSetUp() throws Exception { |
|
40 |
// |
|
41 |
// } |
|
42 |
// |
|
43 |
// public void testUno() { |
|
44 |
// // FIXME: fltan por implementar |
|
45 |
// } |
|
46 |
} |
|
0 | 47 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/org/gvsig/exportto/swing/impl/i18n/text.properties | ||
---|---|---|
1 |
select_format_to_export=Selecciona el formato a exportar |
|
2 |
exportto_options=Opciones de exportaci\u00f3n |
|
3 |
all_layer=Toda la capa |
|
4 |
selected_features=Fen\u00f3menos seleccionados |
|
5 |
predefined_filters=Filtros predefinidos |
|
6 |
free_filter=Filtro libre |
|
7 |
export_progress=Progreso de exportaci\u00f3n |
|
8 |
_Issues_with_attributes_or_geometries=Algunos atributos o geometr\u00edas no se exportaron correctamente |
|
9 |
_Invalid_values_in_form=Valores no v\u00e1lidos |
|
10 |
_File_cannot_be_empty=Debe elegir un archivo |
|
11 |
_Error_exportto=Error durante la exportaci\u00f3n |
|
12 |
_Error_data_export=Error con los datos durante la exportaci\u00f3n |
|
13 |
_Filter_cannot_be_empty=Si activa el filtro no debe estar vac\u00edo |
|
14 |
_Choose_KML_version=Versi\u00f3n de KML |
|
15 |
_Show_attributes_in_balloon=Mostrar atributos en globos |
|
16 |
_Use_labels_Label_point_will_be_added_to_non_points=A\u00f1adir etiquetas (se a\u00f1adir\u00e1 un punto a las geometr\u00edas no puntuales) |
|
17 |
_KML_options=Opciones de KML |
|
18 |
_Force_to_EPSG_4326=Convertir a EPSG:4326 |
|
19 |
_Indique_que_registros_desea_exportar=Indique que registros desea exportar |
|
20 |
_Todos_los_registros=Todos los registros |
|
21 |
_Los_registros_seleccionados=Los registros seleccionados |
|
22 |
_Los_registros_que_cumplan_el_critrio_seleccionado=Los registros que cumplan el criterio seleccionado |
|
23 |
_Nombre_de_la_expresion_opcinal=Nombre de la expresion (opcional) |
|
24 |
_Expresion=Expresion |
|
25 |
_Type_here_the_name_of_the_expression_if_you_want_to_save_it_otherwise_leave_it_blank=Indique aqui el nombre con el que desea guardar la expresion, o deje este campo en blanco si no desea guardarla. |
|
26 |
_Test=Test |
|
27 |
_Usar_una_expresion_guardada=Usar una expresion guardada |
|
28 |
_Nueva_expresion=Nueva expresion |
|
29 |
_Filtro=Filtro |
|
30 |
|
|
0 | 31 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/org/gvsig/exportto/swing/impl/i18n/text_en.properties | ||
---|---|---|
1 |
select_format_to_export=Select the format to export |
|
2 |
exportto_options=Export options |
|
3 |
all_layer=All layer |
|
4 |
selected_features=Selected features |
|
5 |
predefined_filters=Predefined filters |
|
6 |
free_filter=Free filter |
|
7 |
export_progress=Export progress |
|
8 |
_Issues_with_attributes_or_geometries=Some attributes or geometries were not exported correctly |
|
9 |
_File_cannot_be_empty=A file must be selected |
|
10 |
_Invalid_values_in_form=Invalid values |
|
11 |
_Error_exportto=Error while exporting |
|
12 |
_Error_data_export=Data error while exporting |
|
13 |
_Filter_cannot_be_empty=Filter cannot be empty if active |
|
14 |
_Choose_KML_version=KML version |
|
15 |
_Show_attributes_in_balloon=Show attributes in balloon |
|
16 |
_Use_labels_Label_point_will_be_added_to_non_points=Use labels (label point will be added to geometries which are not points) |
|
17 |
_KML_options=KML options |
|
18 |
_Force_to_EPSG_4326=Convert to EPSG:4326 |
|
19 |
_Indique_que_registros_desea_exportar=Select the records to export |
|
20 |
_Todos_los_registros=All records |
|
21 |
_Los_registros_seleccionados=Only selected records |
|
22 |
_Los_registros_que_cumplan_el_critrio_seleccionado=Filtered records |
|
23 |
_Nombre_de_la_expresion_opcinal=Expression name (optional) |
|
24 |
_Expresion=Expression |
|
25 |
_Type_here_the_name_of_the_expression_if_you_want_to_save_it_otherwise_leave_it_blank=Type here the name of the expression if you want to save it, otherwise leave it blank. |
|
26 |
_Test=Test |
|
27 |
_Usar_una_expresion_guardada=Use a saved expression |
|
28 |
_Nueva_expresion=New expression |
|
29 |
_Filtro=Filter |
|
30 |
|
|
0 | 31 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/resources/META-INF/services/org.gvsig.tools.library.Library | ||
---|---|---|
1 |
org.gvsig.exportto.swing.impl.ExporttoSwingDefaultImplLibrary |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoSwingManager.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
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 3 |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.exportto.swing.impl; |
|
25 |
|
|
26 |
import javax.swing.JPanel; |
|
27 |
import org.cresques.cts.IProjection; |
|
28 |
|
|
29 |
import org.gvsig.exportto.ExporttoLocator; |
|
30 |
import org.gvsig.exportto.ExporttoManager; |
|
31 |
import org.gvsig.exportto.ExporttoServiceFinishAction; |
|
32 |
import org.gvsig.exportto.swing.ExporttoSwingManager; |
|
33 |
import org.gvsig.exportto.swing.ExporttoWindowManager; |
|
34 |
import org.gvsig.exportto.swing.JExporttoServicePanel; |
|
35 |
import org.gvsig.exportto.swing.impl.panel.MessagePanel; |
|
36 |
import org.gvsig.fmap.dal.feature.Feature; |
|
37 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
38 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
|
39 |
import org.gvsig.i18n.Messages; |
|
40 |
import org.gvsig.tools.swing.api.ToolsSwingLocator; |
|
41 |
import org.gvsig.tools.swing.api.windowmanager.WindowManager; |
|
42 |
|
|
43 |
import static org.gvsig.exportto.swing.impl.panel.MessagePanel.showMessage; |
|
44 |
|
|
45 |
/** |
|
46 |
* Default implementation of the {@link ExporttoSwingManager}. |
|
47 |
* |
|
48 |
* @author gvSIG Team |
|
49 |
* @version $Id$ |
|
50 |
*/ |
|
51 |
public class DefaultExporttoSwingManager implements ExporttoSwingManager { |
|
52 |
|
|
53 |
private ExporttoManager manager; |
|
54 |
// private I18nManager i18nmanager = null; |
|
55 |
private ExporttoWindowManager windowManager; |
|
56 |
|
|
57 |
public DefaultExporttoSwingManager() { |
|
58 |
this.manager = ExporttoLocator.getManager(); |
|
59 |
// this.i18nmanager = ToolsLocator.getI18nManager(); |
|
60 |
this.windowManager = new DefaultExporttoWindowManager(); |
|
61 |
} |
|
62 |
|
|
63 |
public JExporttoServicePanel createExportto(FeatureStore featureStore, |
|
64 |
IProjection projection) { |
|
65 |
JExporttoServicePanel panel = |
|
66 |
new DefaultJExporttoServicePanel(this, featureStore, projection, |
|
67 |
null, new int[0]); |
|
68 |
return panel; |
|
69 |
} |
|
70 |
|
|
71 |
public JExporttoServicePanel createExportto(FeatureStore featureStore, |
|
72 |
IProjection projection, |
|
73 |
ExporttoServiceFinishAction exporttoServiceFinishAction) { |
|
74 |
JExporttoServicePanel panel = |
|
75 |
new DefaultJExporttoServicePanel(this, featureStore, projection, |
|
76 |
exporttoServiceFinishAction, new int[0]); |
|
77 |
return panel; |
|
78 |
} |
|
79 |
|
|
80 |
public JExporttoServicePanel createExportto(FeatureStore featureStore, |
|
81 |
IProjection projection, |
|
82 |
ExporttoServiceFinishAction exporttoServiceFinishAction, |
|
83 |
int[] providerTypes) { |
|
84 |
return new DefaultJExporttoServicePanel(this, featureStore, projection, |
|
85 |
exporttoServiceFinishAction, providerTypes); |
|
86 |
} |
|
87 |
|
|
88 |
public JExporttoServicePanel createExportto(FLyrVect vlayer, |
|
89 |
ExporttoServiceFinishAction exporttoServiceFinishAction, |
|
90 |
int[] providerTypes) { |
|
91 |
|
|
92 |
return new DefaultJExporttoServicePanel(this, vlayer, |
|
93 |
exporttoServiceFinishAction, providerTypes); |
|
94 |
} |
|
95 |
|
|
96 |
|
|
97 |
public ExporttoManager getManager() { |
|
98 |
return this.manager; |
|
99 |
} |
|
100 |
|
|
101 |
public String getTranslation(String key) { |
|
102 |
return Messages.getText(key); |
|
103 |
} |
|
104 |
|
|
105 |
public void registerWindowManager(ExporttoWindowManager manager) { |
|
106 |
this.windowManager = manager; |
|
107 |
} |
|
108 |
|
|
109 |
public ExporttoWindowManager getWindowManager() { |
|
110 |
return this.windowManager; |
|
111 |
} |
|
112 |
|
|
113 |
public void showMessage(String title, String header, String html, Feature feature) { |
|
114 |
MessagePanel.showMessage(title, header, html, feature); |
|
115 |
} |
|
116 |
|
|
117 |
public void showMessage(String title, String header, Exception ex, Feature feature) { |
|
118 |
MessagePanel.showMessage(title, header, ex, feature); |
|
119 |
} |
|
120 |
} |
|
0 | 121 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/DefaultExporttoWindowManager.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
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 3 |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.exportto.swing.impl; |
|
25 |
|
|
26 |
import java.awt.BorderLayout; |
|
27 |
import java.awt.Dimension; |
|
28 |
import java.awt.Toolkit; |
|
29 |
import java.awt.event.ComponentEvent; |
|
30 |
import java.awt.event.ComponentListener; |
|
31 |
|
|
32 |
import javax.swing.JFrame; |
|
33 |
import javax.swing.JPanel; |
|
34 |
|
|
35 |
import org.gvsig.exportto.swing.ExporttoWindowManager; |
|
36 |
import org.gvsig.exportto.swing.JExporttoServicePanel; |
|
37 |
|
|
38 |
/** |
|
39 |
* Default implementation for the {@link ExporttoWindowManager}. |
|
40 |
* |
|
41 |
* @author gvSIG Team |
|
42 |
* @version $Id$ |
|
43 |
*/ |
|
44 |
public class DefaultExporttoWindowManager implements ExporttoWindowManager, |
|
45 |
ComponentListener { |
|
46 |
|
|
47 |
public void showWindow(JExporttoServicePanel panel, String title, int mode) { |
|
48 |
JFrame frame = new JFrame(); |
|
49 |
// frame.setAlwaysOnTop(true); |
|
50 |
|
|
51 |
final Dimension s = Toolkit.getDefaultToolkit().getScreenSize(); |
|
52 |
frame.setLocation(s.width / 4, s.height / 4); |
|
53 |
|
|
54 |
frame.setLayout(new BorderLayout()); |
|
55 |
frame.setTitle(title); |
|
56 |
frame.add(panel, BorderLayout.CENTER); |
|
57 |
|
|
58 |
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); |
|
59 |
|
|
60 |
panel.addComponentListener(this); |
|
61 |
|
|
62 |
frame.pack(); |
|
63 |
frame.setVisible(true); |
|
64 |
} |
|
65 |
|
|
66 |
public void componentHidden(ComponentEvent componentEvent) { |
|
67 |
JFrame frame = |
|
68 |
(JFrame) ((JPanel) componentEvent.getSource()).getRootPane() |
|
69 |
.getParent(); |
|
70 |
frame.setVisible(false); |
|
71 |
frame.dispose(); |
|
72 |
} |
|
73 |
|
|
74 |
public void componentMoved(ComponentEvent arg0) { |
|
75 |
// Do nothing |
|
76 |
} |
|
77 |
|
|
78 |
public void componentResized(ComponentEvent arg0) { |
|
79 |
// Do nothing |
|
80 |
} |
|
81 |
|
|
82 |
public void componentShown(ComponentEvent arg0) { |
|
83 |
// Do nothing |
|
84 |
} |
|
85 |
} |
|
0 | 86 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/package.html | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
|
2 |
<!-- |
|
3 |
|
|
4 |
gvSIG. Desktop Geographic Information System. |
|
5 |
|
|
6 |
Copyright (C) 2007-2013 gvSIG Association. |
|
7 |
|
|
8 |
This program is free software; you can redistribute it and/or |
|
9 |
modify it under the terms of the GNU General Public License |
|
10 |
as published by the Free Software Foundation; either version 3 |
|
11 |
of the License, or (at your option) any later version. |
|
12 |
|
|
13 |
This program is distributed in the hope that it will be useful, |
|
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
GNU General Public License for more details. |
|
17 |
|
|
18 |
You should have received a copy of the GNU General Public License |
|
19 |
along with this program; if not, write to the Free Software |
|
20 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
21 |
MA 02110-1301, USA. |
|
22 |
|
|
23 |
For any additional information, do not hesitate to contact us |
|
24 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
25 |
|
|
26 |
--> |
|
27 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
28 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
29 |
<head> |
|
30 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
31 |
<title>org.gvsig.exportto package documentation</title> |
|
32 |
</head> |
|
33 |
<body> |
|
34 |
|
|
35 |
<p>Exportto swing library API default implementation.</p> |
|
36 |
|
|
37 |
</body> |
|
38 |
</html> |
|
0 | 39 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ProviderSelectionPanel.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2013 gvSIG Association. |
|
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 3 |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.exportto.swing.impl.panel; |
|
25 |
|
|
26 |
import java.awt.GridBagConstraints; |
|
27 |
import java.awt.GridBagLayout; |
|
28 |
|
|
29 |
import javax.swing.JList; |
|
30 |
import javax.swing.JScrollPane; |
|
31 |
import javax.swing.JTextArea; |
|
32 |
|
|
33 |
import org.gvsig.exportto.swing.impl.DefaultJExporttoServicePanel; |
|
34 |
import org.gvsig.exportto.swing.spi.ExporttoSwingProviderFactory; |
|
35 |
|
|
36 |
/** |
|
37 |
* @author gvSIG Team |
|
38 |
* @version $Id$ |
|
39 |
* |
|
40 |
*/ |
|
41 |
public class ProviderSelectionPanel extends AbstractExporttoPanel { |
|
42 |
|
|
43 |
private static final long serialVersionUID = -5887438468358948411L; |
|
44 |
|
|
45 |
protected JList exporttoProviderList = null; |
|
46 |
private JScrollPane scrollPane = null; |
|
47 |
private JScrollPane descriptionScrollPane; |
|
48 |
protected JTextArea descriptionText; |
|
49 |
private int[] providerTypes; |
|
50 |
|
|
51 |
public ProviderSelectionPanel( |
|
52 |
DefaultJExporttoServicePanel exporttoServicePanel, int[] providerTypes) { |
|
53 |
super(exporttoServicePanel); |
|
54 |
this.providerTypes = providerTypes; |
|
55 |
initializeComponents(); |
|
56 |
} |
|
57 |
|
|
58 |
private void initializeComponents() { |
|
59 |
GridBagConstraints gridBagConstraints; |
|
60 |
this.setLayout(new GridBagLayout()); |
|
61 |
|
|
62 |
// Create the list |
|
63 |
exporttoProviderList = new JList(); |
|
64 |
exporttoProviderList.setModel(new ExporterSelectionListModel( |
|
65 |
providerTypes)); |
|
66 |
|
|
67 |
scrollPane = new JScrollPane(); |
|
68 |
scrollPane.setViewportView(exporttoProviderList); |
|
69 |
|
|
70 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
|
71 |
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; |
|
72 |
gridBagConstraints.weightx = 1.0; |
|
73 |
gridBagConstraints.weighty = 1.0; |
|
74 |
gridBagConstraints.insets = new java.awt.Insets(2, 2, 5, 2); |
|
75 |
add(scrollPane, gridBagConstraints); |
|
76 |
|
|
77 |
// Create the description area |
|
78 |
descriptionScrollPane = new javax.swing.JScrollPane(); |
|
79 |
descriptionText = new javax.swing.JTextArea(); |
|
80 |
|
|
81 |
descriptionText.setColumns(20); |
|
82 |
descriptionText.setEditable(false); |
|
83 |
descriptionText.setRows(5); |
|
84 |
descriptionText.setLineWrap(true); |
|
85 |
descriptionText.setBorder(null); |
|
86 |
descriptionScrollPane.setBorder(null); |
|
87 |
descriptionScrollPane.setViewportView(descriptionText); |
|
88 |
|
|
89 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
|
90 |
gridBagConstraints.gridx = 0; |
|
91 |
gridBagConstraints.gridy = 1; |
|
92 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
|
93 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTH; |
|
94 |
gridBagConstraints.weightx = 1.0; |
|
95 |
gridBagConstraints.insets = new java.awt.Insets(5, 2, 2, 2); |
|
96 |
add(descriptionScrollPane, gridBagConstraints); |
|
97 |
} |
|
98 |
|
|
99 |
protected ExporttoSwingProviderFactory getSelectedProvider() { |
|
100 |
return (ExporttoSwingProviderFactory) exporttoProviderList |
|
101 |
.getSelectedValue(); |
|
102 |
} |
|
103 |
} |
|
0 | 104 |
tags/org.gvsig.desktop-2.0.143/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExportTargetProjectionPanelLayout.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
3 |
<object classname="com.jeta.forms.store.memento.FormPackage"> |
|
4 |
<at name="fileversion"> |
|
5 |
<object classname="com.jeta.forms.store.memento.FormsVersion2"> |
|
6 |
<at name="major">2</at> |
|
7 |
<at name="minor">0</at> |
|
8 |
<at name="sub">0</at> |
|
9 |
</object> |
|
10 |
</at> |
|
11 |
<at name="form"> |
|
12 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
13 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
14 |
<at name="cellconstraints"> |
|
15 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
16 |
<at name="column">1</at> |
|
17 |
<at name="row">1</at> |
|
18 |
<at name="colspan">1</at> |
|
19 |
<at name="rowspan">1</at> |
|
20 |
<at name="halign">default</at> |
|
21 |
<at name="valign">default</at> |
|
22 |
<at name="insets" object="insets">0,0,0,0</at> |
|
23 |
</object> |
|
24 |
</at> |
|
25 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
26 |
</super> |
|
27 |
<at name="id">/home/daniel/projects/externals/gvSIG/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/panel/ExportTargetProjectionPanelLayout.xml</at> |
|
28 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:NONE,CENTER:2DLU:NONE</at> |
|
29 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE</at> |
|
30 |
<at name="components"> |
|
31 |
<object classname="java.util.LinkedList"> |
|
32 |
<item > |
|
33 |
<at name="value"> |
|
34 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
35 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
36 |
<at name="cellconstraints"> |
|
37 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
38 |
<at name="column">2</at> |
|
39 |
<at name="row">2</at> |
|
40 |
<at name="colspan">4</at> |
|
41 |
<at name="rowspan">1</at> |
|
42 |
<at name="halign">default</at> |
|
43 |
<at name="valign">default</at> |
|
44 |
<at name="insets" object="insets">0,0,0,0</at> |
|
45 |
</object> |
|
46 |
</at> |
|
47 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
48 |
</super> |
|
49 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
50 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
51 |
<at name="beanproperties"> |
|
52 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
53 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
54 |
<at name="properties"> |
|
55 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
56 |
<at name="text">select_target_projection</at> |
|
57 |
<at name="height">14</at> |
|
58 |
<at name="width">932</at> |
|
59 |
<at name="name">lblSelectTargetProjection</at> |
|
60 |
<at name="fill"> |
|
61 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
62 |
<at name="name">fill</at> |
|
63 |
</object> |
|
64 |
</at> |
|
65 |
<at name="toolTipText">select_target_projection</at> |
|
66 |
<at name="border"> |
|
67 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
68 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
69 |
<at name="name">border</at> |
|
70 |
</super> |
|
71 |
<at name="borders"> |
|
72 |
<object classname="java.util.LinkedList"> |
|
73 |
<item > |
|
74 |
<at name="value"> |
|
75 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
76 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
77 |
<at name="name">border</at> |
|
78 |
</super> |
|
79 |
</object> |
|
80 |
</at> |
|
81 |
</item> |
|
82 |
</object> |
|
83 |
</at> |
|
84 |
</object> |
|
85 |
</at> |
|
86 |
</object> |
|
87 |
</at> |
|
88 |
</object> |
|
89 |
</at> |
|
90 |
</object> |
|
91 |
</at> |
|
92 |
</item> |
|
93 |
<item > |
|
94 |
<at name="value"> |
|
95 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
96 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
97 |
<at name="cellconstraints"> |
|
98 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
99 |
<at name="column">3</at> |
|
100 |
<at name="row">4</at> |
|
101 |
<at name="colspan">1</at> |
|
102 |
<at name="rowspan">1</at> |
|
103 |
<at name="halign">default</at> |
|
104 |
<at name="valign">default</at> |
|
105 |
<at name="insets" object="insets">0,0,0,0</at> |
|
106 |
</object> |
|
107 |
</at> |
|
108 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
109 |
</super> |
|
110 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
111 |
<at name="beanclass">javax.swing.JRadioButton</at> |
|
112 |
<at name="beanproperties"> |
|
113 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
114 |
<at name="classname">javax.swing.JRadioButton</at> |
|
115 |
<at name="properties"> |
|
116 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
117 |
<at name="height">15</at> |
|
118 |
<at name="buttonGroup"> |
|
119 |
<object classname="com.jeta.forms.store.properties.ButtonGroupProperty"> |
|
120 |
<at name="name">buttonGroup</at> |
|
121 |
<at name="groupname">btngrpSelection</at> |
|
122 |
</object> |
|
123 |
</at> |
|
124 |
<at name="width">15</at> |
|
125 |
<at name="name">rdbtnOriginalProjection</at> |
|
126 |
<at name="actionCommand">original_projection </at> |
|
127 |
<at name="toolTipText">projection_from_source_layer_before_view_reprojection</at> |
|
128 |
<at name="border"> |
|
129 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
130 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
131 |
<at name="name">border</at> |
|
132 |
</super> |
|
133 |
<at name="borders"> |
|
134 |
<object classname="java.util.LinkedList"> |
|
135 |
<item > |
|
136 |
<at name="value"> |
|
137 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
138 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
139 |
<at name="name">border</at> |
|
140 |
</super> |
|
141 |
</object> |
|
142 |
</at> |
|
143 |
</item> |
|
144 |
</object> |
|
145 |
</at> |
|
146 |
</object> |
|
147 |
</at> |
|
148 |
</object> |
|
149 |
</at> |
|
150 |
</object> |
|
151 |
</at> |
|
152 |
</object> |
|
153 |
</at> |
|
154 |
</item> |
|
155 |
<item > |
|
156 |
<at name="value"> |
|
157 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
158 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
159 |
<at name="cellconstraints"> |
|
160 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
161 |
<at name="column">5</at> |
|
162 |
<at name="row">4</at> |
|
163 |
<at name="colspan">1</at> |
|
164 |
<at name="rowspan">1</at> |
|
165 |
<at name="halign">default</at> |
|
166 |
<at name="valign">default</at> |
|
167 |
<at name="insets" object="insets">0,0,0,0</at> |
|
168 |
</object> |
|
169 |
</at> |
|
170 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
171 |
</super> |
|
172 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
173 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
174 |
<at name="beanproperties"> |
|
175 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
176 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
177 |
<at name="properties"> |
|
178 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
179 |
<at name="text">original_projection</at> |
|
180 |
<at name="height">14</at> |
|
181 |
<at name="width">890</at> |
|
182 |
<at name="name">lblRdbtnOriginalProjection</at> |
|
183 |
<at name="fill"> |
|
184 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
185 |
<at name="name">fill</at> |
|
186 |
</object> |
|
187 |
</at> |
|
188 |
<at name="toolTipText">projection_from_source_layer_before_view_reprojection</at> |
|
189 |
<at name="border"> |
|
190 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
191 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
192 |
<at name="name">border</at> |
|
193 |
</super> |
|
194 |
<at name="borders"> |
|
195 |
<object classname="java.util.LinkedList"> |
|
196 |
<item > |
|
197 |
<at name="value"> |
|
198 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
199 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
200 |
<at name="name">border</at> |
|
201 |
</super> |
|
202 |
</object> |
|
203 |
</at> |
|
204 |
</item> |
|
205 |
</object> |
|
206 |
</at> |
|
207 |
</object> |
|
208 |
</at> |
|
209 |
</object> |
|
210 |
</at> |
|
211 |
</object> |
|
212 |
</at> |
|
213 |
</object> |
|
214 |
</at> |
|
215 |
</item> |
|
216 |
<item > |
|
217 |
<at name="value"> |
|
218 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
219 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
220 |
<at name="cellconstraints"> |
|
221 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
222 |
<at name="column">5</at> |
|
223 |
<at name="row">5</at> |
|
224 |
<at name="colspan">1</at> |
|
225 |
<at name="rowspan">1</at> |
|
226 |
<at name="halign">default</at> |
|
227 |
<at name="valign">default</at> |
|
228 |
<at name="insets" object="insets">0,0,0,0</at> |
|
229 |
</object> |
|
230 |
</at> |
|
231 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
232 |
</super> |
|
233 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
234 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
235 |
<at name="beanproperties"> |
|
236 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
237 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
238 |
<at name="properties"> |
|
239 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
240 |
<at name="height">12</at> |
|
241 |
<at name="width">890</at> |
|
242 |
<at name="name">lblOriginalProjection</at> |
|
243 |
<at name="fill"> |
|
244 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
245 |
<at name="name">fill</at> |
|
246 |
</object> |
|
247 |
</at> |
|
248 |
<at name="border"> |
|
249 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
250 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
251 |
<at name="name">border</at> |
|
252 |
</super> |
|
253 |
<at name="borders"> |
|
254 |
<object classname="java.util.LinkedList"> |
|
255 |
<item > |
|
256 |
<at name="value"> |
|
257 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
258 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
259 |
<at name="name">border</at> |
|
260 |
</super> |
|
261 |
</object> |
|
262 |
</at> |
|
263 |
</item> |
|
264 |
</object> |
|
265 |
</at> |
|
266 |
</object> |
|
267 |
</at> |
|
268 |
</object> |
|
269 |
</at> |
|
270 |
</object> |
|
271 |
</at> |
|
272 |
</object> |
|
273 |
</at> |
|
274 |
</item> |
|
275 |
<item > |
|
276 |
<at name="value"> |
|
277 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
278 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
279 |
<at name="cellconstraints"> |
|
280 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
281 |
<at name="column">3</at> |
|
282 |
<at name="row">7</at> |
|
283 |
<at name="colspan">1</at> |
|
284 |
<at name="rowspan">1</at> |
|
285 |
<at name="halign">default</at> |
|
286 |
<at name="valign">default</at> |
|
287 |
<at name="insets" object="insets">0,0,0,0</at> |
|
288 |
</object> |
|
289 |
</at> |
|
290 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
291 |
</super> |
|
292 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
293 |
<at name="beanclass">javax.swing.JRadioButton</at> |
|
294 |
<at name="beanproperties"> |
|
295 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
296 |
<at name="classname">javax.swing.JRadioButton</at> |
|
297 |
<at name="properties"> |
|
298 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
299 |
<at name="height">15</at> |
|
300 |
<at name="buttonGroup"> |
|
301 |
<object classname="com.jeta.forms.store.properties.ButtonGroupProperty"> |
|
302 |
<at name="name">buttonGroup</at> |
|
303 |
<at name="groupname">btngrpSelection</at> |
|
304 |
</object> |
|
305 |
</at> |
|
306 |
<at name="width">15</at> |
|
307 |
<at name="name">rdbtnViewProjection</at> |
|
308 |
<at name="actionCommand">original_projection </at> |
|
309 |
<at name="toolTipText">projection_used_in_view</at> |
|
310 |
<at name="border"> |
|
311 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
312 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
313 |
<at name="name">border</at> |
|
314 |
</super> |
|
315 |
<at name="borders"> |
|
316 |
<object classname="java.util.LinkedList"> |
|
317 |
<item > |
|
318 |
<at name="value"> |
|
319 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
320 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
321 |
<at name="name">border</at> |
|
322 |
</super> |
|
323 |
</object> |
|
324 |
</at> |
|
325 |
</item> |
|
326 |
</object> |
|
327 |
</at> |
|
328 |
</object> |
|
329 |
</at> |
|
330 |
</object> |
|
331 |
</at> |
|
332 |
</object> |
|
333 |
</at> |
|
334 |
</object> |
|
335 |
</at> |
|
336 |
</item> |
|
337 |
<item > |
|
338 |
<at name="value"> |
|
339 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
340 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
341 |
<at name="cellconstraints"> |
|
342 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
343 |
<at name="column">5</at> |
|
344 |
<at name="row">7</at> |
|
345 |
<at name="colspan">1</at> |
|
346 |
<at name="rowspan">1</at> |
|
347 |
<at name="halign">default</at> |
|
348 |
<at name="valign">default</at> |
|
349 |
<at name="insets" object="insets">0,0,0,0</at> |
|
350 |
</object> |
|
351 |
</at> |
|
352 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
353 |
</super> |
|
354 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
355 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
356 |
<at name="beanproperties"> |
|
357 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
358 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
359 |
<at name="properties"> |
|
360 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
361 |
<at name="text">view_projection</at> |
|
362 |
<at name="height">14</at> |
|
363 |
<at name="width">890</at> |
|
364 |
<at name="name">lblRdbtnViewProjection</at> |
|
365 |
<at name="fill"> |
|
366 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
367 |
<at name="name">fill</at> |
|
368 |
</object> |
|
369 |
</at> |
|
370 |
<at name="toolTipText">projection_used_in_view</at> |
|
371 |
<at name="border"> |
|
372 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
373 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
374 |
<at name="name">border</at> |
|
375 |
</super> |
|
376 |
<at name="borders"> |
|
377 |
<object classname="java.util.LinkedList"> |
|
378 |
<item > |
|
379 |
<at name="value"> |
|
380 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
381 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
382 |
<at name="name">border</at> |
|
383 |
</super> |
|
384 |
</object> |
|
385 |
</at> |
|
386 |
</item> |
|
387 |
</object> |
|
388 |
</at> |
|
389 |
</object> |
|
390 |
</at> |
|
391 |
</object> |
|
392 |
</at> |
|
393 |
</object> |
|
394 |
</at> |
|
395 |
</object> |
|
396 |
</at> |
|
397 |
</item> |
|
398 |
<item > |
|
399 |
<at name="value"> |
|
400 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
401 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
402 |
<at name="cellconstraints"> |
|
403 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
404 |
<at name="column">5</at> |
|
405 |
<at name="row">8</at> |
|
406 |
<at name="colspan">1</at> |
|
407 |
<at name="rowspan">1</at> |
|
408 |
<at name="halign">default</at> |
|
409 |
<at name="valign">default</at> |
|
410 |
<at name="insets" object="insets">0,0,0,0</at> |
|
411 |
</object> |
|
412 |
</at> |
|
413 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
414 |
</super> |
|
415 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
416 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
417 |
<at name="beanproperties"> |
|
418 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
419 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
420 |
<at name="properties"> |
|
421 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
422 |
<at name="height">12</at> |
|
423 |
<at name="width">890</at> |
|
424 |
<at name="name">lblViewProjection</at> |
|
425 |
<at name="fill"> |
|
426 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
427 |
<at name="name">fill</at> |
|
428 |
</object> |
|
429 |
</at> |
Also available in: Unified diff