Revision 226
org.gvsig.educa.thematicmap/trunk/org.gvsig.educa.thematicmap/org.gvsig.educa.thematicmap.lib/org.gvsig.educa.thematicmap.lib.spi/src/main/java/org/gvsig/educa/thematicmap/spi/ThematicMapProvider.java | ||
---|---|---|
1 | 1 |
package org.gvsig.educa.thematicmap.spi; |
2 | 2 |
|
3 |
import javax.swing.JPanel; |
|
4 |
|
|
3 | 5 |
import org.gvsig.tools.service.spi.Provider; |
4 | 6 |
|
5 | 7 |
public interface ThematicMapProvider extends Provider { |
8 |
|
|
9 |
public JPanel getPropertiesPanel(); |
|
6 | 10 |
|
7 | 11 |
} |
org.gvsig.educa.thematicmap/trunk/org.gvsig.educa.thematicmap/org.gvsig.educa.thematicmap.lib/org.gvsig.educa.thematicmap.lib.prov.qresp/src/main/java/org/gvsig/educa/thematicmap/lib/prov/qresp/QRespThematicMapProvider.java | ||
---|---|---|
1 | 1 |
/* gvSIG. Desktop Geographic Information System. |
2 | 2 |
* |
3 |
* Copyright ? 2007-2012 gvSIG Association
|
|
3 |
* Copyright � 2007-2012 gvSIG Association
|
|
4 | 4 |
* |
5 | 5 |
* This program is free software; you can redistribute it and/or |
6 | 6 |
* modify it under the terms of the GNU General Public License |
... | ... | |
22 | 22 |
*/ |
23 | 23 |
package org.gvsig.educa.thematicmap.lib.prov.qresp; |
24 | 24 |
|
25 |
import javax.swing.JPanel; |
|
26 |
|
|
25 | 27 |
import org.gvsig.educa.thematicmap.spi.ThematicMapProvider; |
26 | 28 |
import org.gvsig.tools.dynobject.DynObject; |
27 | 29 |
import org.gvsig.tools.service.spi.AbstractProvider; |
... | ... | |
50 | 52 |
super(providerServices); |
51 | 53 |
this.parameters = parameters; |
52 | 54 |
} |
55 |
|
|
56 |
public JPanel getPropertiesPanel() { |
|
57 |
//TODO: añadir a thematicmapprovider (done) |
|
58 |
return null; |
|
59 |
} |
|
53 | 60 |
|
54 | 61 |
} |
org.gvsig.educa.thematicmap/trunk/org.gvsig.educa.thematicmap/org.gvsig.educa.thematicmap.lib/org.gvsig.educa.thematicmap.lib.prov.qresp/src/main/java/org/gvsig/educa/thematicmap/lib/prov/qresp/QRespThematicMapProviderFactory.java | ||
---|---|---|
1 | 1 |
/* gvSIG. Desktop Geographic Information System. |
2 | 2 |
* |
3 |
* Copyright ? 2007-2012 gvSIG Association
|
|
3 |
* Copyright � 2007-2012 gvSIG Association
|
|
4 | 4 |
* |
5 | 5 |
* This program is free software; you can redistribute it and/or |
6 | 6 |
* modify it under the terms of the GNU General Public License |
... | ... | |
53 | 53 |
PROVIDER_DESCRIPTION); |
54 | 54 |
|
55 | 55 |
dynclass.addDynFieldString("questionLayerName").setMandatory(true); |
56 |
dynclass.addDynFieldString("questionAttributeName").setMandatory( |
|
57 |
true); |
|
56 |
dynclass.addDynFieldString("questionAttributeName").setMandatory(true); |
|
57 |
dynclass.addDynFieldString("questionAttributeID").setMandatory(true); |
|
58 |
dynclass.addDynFieldString("questionAttributeIDAnswerOk").setMandatory(true); |
|
59 |
|
|
58 | 60 |
dynclass.addDynFieldString("answerLayerName").setMandatory(true); |
59 |
dynclass.addDynFieldString("answerAttributeName") |
|
60 |
.setMandatory(true); |
|
61 |
dynclass.addDynFieldString("answerAttributeName").setMandatory(true); |
|
62 |
dynclass.addDynFieldString("answerQuestionID").setMandatory(true); |
|
63 |
|
|
61 | 64 |
dynclass.addDynFieldInt("howManyQuestions") |
62 | 65 |
.setDefaultFieldValue(Integer.valueOf(10)).setMandatory(true); |
63 | 66 |
dynclass.addDynFieldBoolean("random") |
64 | 67 |
.setDefaultFieldValue(Boolean.TRUE).setMandatory(true); |
65 | 68 |
|
66 | 69 |
dynObjectManager.add(dynclass); |
70 |
|
|
71 |
|
|
72 |
/* |
|
73 |
* NombreCapa |
|
74 |
* CampoIdentificadorDeItemGeografico |
|
75 |
* TextoDeLaPregunta |
|
76 |
* NumeroDePreguntas |
|
77 |
* |
|
78 |
*/ |
|
67 | 79 |
} |
68 | 80 |
} |
69 | 81 |
|
Also available in: Unified diff