Revision 8804
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster.googlemaps/org.gvsig.raster.googlemaps.swing/org.gvsig.raster.googlemaps.swing.impl/src/main/java/org/gvsig/raster/googlemaps/swing/impl/JStreetViewPreferencesView.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/paco/projects/externals/gvsig-desktop/gvSIG_v2.1/org.gvsig.googlemaps/org.gvsig.googlemaps.swing/org.gvsig.googlemaps.swing.impl/src/main/java/org/gvsig/googlemaps/swing/impl/JStreetViewPreferencesView.xml</at> |
|
28 |
<at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,BOTTOM:DEFAULT:GROW(1.0),CENTER:2DLU:NONE</at> |
|
29 |
<at name="colspecs">FILL:4DLU: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">6</at> |
|
40 |
<at name="colspan">3</at> |
|
41 |
<at name="rowspan">1</at> |
|
42 |
<at name="halign">fill</at> |
|
43 |
<at name="valign">bottom</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">javax.swing.JEditorPane</at> |
|
51 |
<at name="beanproperties"> |
|
52 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
53 |
<at name="classname">javax.swing.JEditorPane</at> |
|
54 |
<at name="properties"> |
|
55 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
56 |
<at name="border"> |
|
57 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
58 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
59 |
<at name="name">border</at> |
|
60 |
</super> |
|
61 |
<at name="borders"> |
|
62 |
<object classname="java.util.LinkedList"> |
|
63 |
<item > |
|
64 |
<at name="value"> |
|
65 |
<object classname="com.jeta.forms.store.properties.EmptyBorderProperty"> |
|
66 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
67 |
<at name="name">border</at> |
|
68 |
</super> |
|
69 |
<at name="top">0</at> |
|
70 |
<at name="left">0</at> |
|
71 |
<at name="bottom">0</at> |
|
72 |
<at name="right">0</at> |
|
73 |
</object> |
|
74 |
</at> |
|
75 |
</item> |
|
76 |
</object> |
|
77 |
</at> |
|
78 |
</object> |
|
79 |
</at> |
|
80 |
<at name="selectionStart">1</at> |
|
81 |
<at name="autoscrolls">false</at> |
|
82 |
<at name="opaque">false</at> |
|
83 |
<at name="editable">false</at> |
|
84 |
<at name="name">disclaimerText</at> |
|
85 |
<at name="width">932</at> |
|
86 |
<at name="selectionEnd">1</at> |
|
87 |
<at name="text"><html> |
|
88 |
<head> |
|
89 |
|
|
90 |
</head> |
|
91 |
<body> |
|
92 |
</body> |
|
93 |
</html> |
|
94 |
</at> |
|
95 |
<at name="contentType">text/html</at> |
|
96 |
<at name="scollBars"> |
|
97 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
98 |
<at name="name">scollBars</at> |
|
99 |
<at name="verticalpolicy">21</at> |
|
100 |
<at name="horizontalpolicy">31</at> |
|
101 |
<at name="border"> |
|
102 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
103 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
104 |
<at name="name">border</at> |
|
105 |
</super> |
|
106 |
<at name="borders"> |
|
107 |
<object classname="java.util.LinkedList"> |
|
108 |
<item > |
|
109 |
<at name="value"> |
|
110 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
111 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
112 |
<at name="name">border</at> |
|
113 |
</super> |
|
114 |
</object> |
|
115 |
</at> |
|
116 |
</item> |
|
117 |
</object> |
|
118 |
</at> |
|
119 |
</object> |
|
120 |
</at> |
|
121 |
</object> |
|
122 |
</at> |
|
123 |
<at name="height">12</at> |
|
124 |
</object> |
|
125 |
</at> |
|
126 |
</object> |
|
127 |
</at> |
|
128 |
</object> |
|
129 |
</at> |
|
130 |
</item> |
|
131 |
<item > |
|
132 |
<at name="value"> |
|
133 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
134 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
135 |
<at name="cellconstraints"> |
|
136 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
137 |
<at name="column">4</at> |
|
138 |
<at name="row">4</at> |
|
139 |
<at name="colspan">1</at> |
|
140 |
<at name="rowspan">1</at> |
|
141 |
<at name="halign">default</at> |
|
142 |
<at name="valign">default</at> |
|
143 |
<at name="insets" object="insets">0,0,0,0</at> |
|
144 |
</object> |
|
145 |
</at> |
|
146 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
147 |
</super> |
|
148 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
149 |
<at name="beanclass">javax.swing.JTextField</at> |
|
150 |
<at name="beanproperties"> |
|
151 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
152 |
<at name="classname">javax.swing.JTextField</at> |
|
153 |
<at name="properties"> |
|
154 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
155 |
<at name="border"> |
|
156 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
157 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
158 |
<at name="name">border</at> |
|
159 |
</super> |
|
160 |
<at name="borders"> |
|
161 |
<object classname="java.util.LinkedList"> |
|
162 |
<item > |
|
163 |
<at name="value"> |
|
164 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
165 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
166 |
<at name="name">border</at> |
|
167 |
</super> |
|
168 |
</object> |
|
169 |
</at> |
|
170 |
</item> |
|
171 |
</object> |
|
172 |
</at> |
|
173 |
</object> |
|
174 |
</at> |
|
175 |
<at name="name">apiKeyText</at> |
|
176 |
<at name="width">758</at> |
|
177 |
<at name="height">20</at> |
|
178 |
</object> |
|
179 |
</at> |
|
180 |
</object> |
|
181 |
</at> |
|
182 |
</object> |
|
183 |
</at> |
|
184 |
</item> |
|
185 |
<item > |
|
186 |
<at name="value"> |
|
187 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
188 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
189 |
<at name="cellconstraints"> |
|
190 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
191 |
<at name="column">2</at> |
|
192 |
<at name="row">2</at> |
|
193 |
<at name="colspan">1</at> |
|
194 |
<at name="rowspan">1</at> |
|
195 |
<at name="halign">default</at> |
|
196 |
<at name="valign">default</at> |
|
197 |
<at name="insets" object="insets">0,0,0,0</at> |
|
198 |
</object> |
|
199 |
</at> |
|
200 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
201 |
</super> |
|
202 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
203 |
<at name="beanclass">javax.swing.JCheckBox</at> |
|
204 |
<at name="beanproperties"> |
|
205 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
206 |
<at name="classname">javax.swing.JCheckBox</at> |
|
207 |
<at name="properties"> |
|
208 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
209 |
<at name="border"> |
|
210 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
211 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
212 |
<at name="name">border</at> |
|
213 |
</super> |
|
214 |
<at name="borders"> |
|
215 |
<object classname="java.util.LinkedList"> |
|
216 |
<item > |
|
217 |
<at name="value"> |
|
218 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
219 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
220 |
<at name="name">border</at> |
|
221 |
</super> |
|
222 |
</object> |
|
223 |
</at> |
|
224 |
</item> |
|
225 |
</object> |
|
226 |
</at> |
|
227 |
</object> |
|
228 |
</at> |
|
229 |
<at name="actionCommand">_use_system_browser</at> |
|
230 |
<at name="name">chkUseSystemBrowser</at> |
|
231 |
<at name="width">163</at> |
|
232 |
<at name="text">_use_system_browser</at> |
|
233 |
<at name="height">16</at> |
|
234 |
</object> |
|
235 |
</at> |
|
236 |
</object> |
|
237 |
</at> |
|
238 |
</object> |
|
239 |
</at> |
|
240 |
</item> |
|
241 |
<item > |
|
242 |
<at name="value"> |
|
243 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
244 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
245 |
<at name="cellconstraints"> |
|
246 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
247 |
<at name="column">2</at> |
|
248 |
<at name="row">4</at> |
|
249 |
<at name="colspan">1</at> |
|
250 |
<at name="rowspan">1</at> |
|
251 |
<at name="halign">default</at> |
|
252 |
<at name="valign">default</at> |
|
253 |
<at name="insets" object="insets">0,0,0,0</at> |
|
254 |
</object> |
|
255 |
</at> |
|
256 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
257 |
</super> |
|
258 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
259 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
260 |
<at name="beanproperties"> |
|
261 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
262 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
263 |
<at name="properties"> |
|
264 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
265 |
<at name="border"> |
|
266 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
267 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
268 |
<at name="name">border</at> |
|
269 |
</super> |
|
270 |
<at name="borders"> |
|
271 |
<object classname="java.util.LinkedList"> |
|
272 |
<item > |
|
273 |
<at name="value"> |
|
274 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
275 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
276 |
<at name="name">border</at> |
|
277 |
</super> |
|
278 |
</object> |
|
279 |
</at> |
|
280 |
</item> |
|
281 |
</object> |
|
282 |
</at> |
|
283 |
</object> |
|
284 |
</at> |
|
285 |
<at name="name">apiKeyLbl</at> |
|
286 |
<at name="width">163</at> |
|
287 |
<at name="text">_google_street_view_api_key</at> |
|
288 |
<at name="fill"> |
|
289 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
290 |
<at name="name">fill</at> |
|
291 |
</object> |
|
292 |
</at> |
|
293 |
<at name="height">14</at> |
|
294 |
</object> |
|
295 |
</at> |
|
296 |
</object> |
|
297 |
</at> |
|
298 |
</object> |
|
299 |
</at> |
|
300 |
</item> |
|
301 |
</object> |
|
302 |
</at> |
|
303 |
<at name="properties"> |
|
304 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
305 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
306 |
<at name="properties"> |
|
307 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
308 |
<at name="border"> |
|
309 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
310 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
311 |
<at name="name">border</at> |
|
312 |
</super> |
|
313 |
<at name="borders"> |
|
314 |
<object classname="java.util.LinkedList"/> |
|
315 |
</at> |
|
316 |
</object> |
|
317 |
</at> |
|
318 |
<at name="name"/> |
|
319 |
<at name="fill"> |
|
320 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
321 |
<at name="name">fill</at> |
|
322 |
</object> |
|
323 |
</at> |
|
324 |
<at name="scollBars"> |
|
325 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
326 |
<at name="name">scollBars</at> |
|
327 |
<at name="verticalpolicy">21</at> |
|
328 |
<at name="horizontalpolicy">31</at> |
|
329 |
<at name="border"> |
|
330 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
331 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
332 |
<at name="name">border</at> |
|
333 |
</super> |
|
334 |
<at name="borders"> |
|
335 |
<object classname="java.util.LinkedList"> |
|
336 |
<item > |
|
337 |
<at name="value"> |
|
338 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
339 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
340 |
<at name="name">border</at> |
|
341 |
</super> |
|
342 |
</object> |
|
343 |
</at> |
|
344 |
</item> |
|
345 |
</object> |
|
346 |
</at> |
|
347 |
</object> |
|
348 |
</at> |
|
349 |
</object> |
|
350 |
</at> |
|
351 |
</object> |
|
352 |
</at> |
|
353 |
</object> |
|
354 |
</at> |
|
355 |
<at name="cellpainters"> |
|
356 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
357 |
<at name="rows"> |
|
358 |
<object classname="[Ljava.lang.Object;" size="7"> |
|
359 |
<at name="item" index="0"> |
|
360 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
361 |
</at> |
|
362 |
<at name="item" index="1"> |
|
363 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
364 |
</at> |
|
365 |
<at name="item" index="2"> |
|
366 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
367 |
</at> |
|
368 |
<at name="item" index="3"> |
|
369 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
370 |
</at> |
|
371 |
<at name="item" index="4"> |
|
372 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
373 |
</at> |
|
374 |
<at name="item" index="5"> |
|
375 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
376 |
</at> |
|
377 |
<at name="item" index="6"> |
|
378 |
<object classname="[Ljava.lang.Object;" size="5"/> |
|
379 |
</at> |
|
380 |
</object> |
|
381 |
</at> |
|
382 |
</object> |
|
383 |
</at> |
|
384 |
<at name="rowgroups"> |
|
385 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
386 |
<at name="groups"> |
|
387 |
<object classname="java.util.HashMap"/> |
|
388 |
</at> |
|
389 |
</object> |
|
390 |
</at> |
|
391 |
<at name="colgroups"> |
|
392 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
393 |
<at name="groups"> |
|
394 |
<object classname="java.util.HashMap"/> |
|
395 |
</at> |
|
396 |
</object> |
|
397 |
</at> |
|
398 |
</object> |
|
399 |
</at> |
|
400 |
</object> |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster.googlemaps/org.gvsig.raster.googlemaps.swing/org.gvsig.raster.googlemaps.swing.impl/src/main/java/org/gvsig/raster/googlemaps/swing/impl/JStreetViewPreferencesView.java | ||
---|---|---|
1 |
package org.gvsig.raster.googlemaps.swing.impl; |
|
2 |
|
|
3 |
import com.jgoodies.forms.layout.CellConstraints; |
|
4 |
import com.jgoodies.forms.layout.FormLayout; |
|
5 |
import java.awt.BorderLayout; |
|
6 |
import java.awt.ComponentOrientation; |
|
7 |
import java.awt.Container; |
|
8 |
import java.awt.Dimension; |
|
9 |
import javax.swing.Box; |
|
10 |
import javax.swing.ImageIcon; |
|
11 |
import javax.swing.JCheckBox; |
|
12 |
import javax.swing.JEditorPane; |
|
13 |
import javax.swing.JFrame; |
|
14 |
import javax.swing.JLabel; |
|
15 |
import javax.swing.JPanel; |
|
16 |
import javax.swing.JTextField; |
|
17 |
import javax.swing.border.EmptyBorder; |
|
18 |
|
|
19 |
|
|
20 |
public class JStreetViewPreferencesView extends JPanel |
|
21 |
{ |
|
22 |
JEditorPane disclaimerText = new JEditorPane(); |
|
23 |
JTextField apiKeyText = new JTextField(); |
|
24 |
JCheckBox chkUseSystemBrowser = new JCheckBox(); |
|
25 |
JLabel apiKeyLbl = new JLabel(); |
|
26 |
|
|
27 |
/** |
|
28 |
* Default constructor |
|
29 |
*/ |
|
30 |
public JStreetViewPreferencesView() |
|
31 |
{ |
|
32 |
initializePanel(); |
|
33 |
} |
|
34 |
|
|
35 |
/** |
|
36 |
* Adds fill components to empty cells in the first row and first column of the grid. |
|
37 |
* This ensures that the grid spacing will be the same as shown in the designer. |
|
38 |
* @param cols an array of column indices in the first row where fill components should be added. |
|
39 |
* @param rows an array of row indices in the first column where fill components should be added. |
|
40 |
*/ |
|
41 |
void addFillComponents( Container panel, int[] cols, int[] rows ) |
|
42 |
{ |
|
43 |
Dimension filler = new Dimension(10,10); |
|
44 |
|
|
45 |
boolean filled_cell_11 = false; |
|
46 |
CellConstraints cc = new CellConstraints(); |
|
47 |
if ( cols.length > 0 && rows.length > 0 ) |
|
48 |
{ |
|
49 |
if ( cols[0] == 1 && rows[0] == 1 ) |
|
50 |
{ |
|
51 |
/** add a rigid area */ |
|
52 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,1) ); |
|
53 |
filled_cell_11 = true; |
|
54 |
} |
|
55 |
} |
|
56 |
|
|
57 |
for( int index = 0; index < cols.length; index++ ) |
|
58 |
{ |
|
59 |
if ( cols[index] == 1 && filled_cell_11 ) |
|
60 |
{ |
|
61 |
continue; |
|
62 |
} |
|
63 |
panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) ); |
|
64 |
} |
|
65 |
|
|
66 |
for( int index = 0; index < rows.length; index++ ) |
|
67 |
{ |
|
68 |
if ( rows[index] == 1 && filled_cell_11 ) |
|
69 |
{ |
|
70 |
continue; |
|
71 |
} |
|
72 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) ); |
|
73 |
} |
|
74 |
|
|
75 |
} |
|
76 |
|
|
77 |
/** |
|
78 |
* Helper method to load an image file from the CLASSPATH |
|
79 |
* @param imageName the package and name of the file to load relative to the CLASSPATH |
|
80 |
* @return an ImageIcon instance with the specified image file |
|
81 |
* @throws IllegalArgumentException if the image resource cannot be loaded. |
|
82 |
*/ |
|
83 |
public ImageIcon loadImage( String imageName ) |
|
84 |
{ |
|
85 |
try |
|
86 |
{ |
|
87 |
ClassLoader classloader = getClass().getClassLoader(); |
|
88 |
java.net.URL url = classloader.getResource( imageName ); |
|
89 |
if ( url != null ) |
|
90 |
{ |
|
91 |
ImageIcon icon = new ImageIcon( url ); |
|
92 |
return icon; |
|
93 |
} |
|
94 |
} |
|
95 |
catch( Exception e ) |
|
96 |
{ |
|
97 |
e.printStackTrace(); |
|
98 |
} |
|
99 |
throw new IllegalArgumentException( "Unable to load image: " + imageName ); |
|
100 |
} |
|
101 |
|
|
102 |
/** |
|
103 |
* Method for recalculating the component orientation for |
|
104 |
* right-to-left Locales. |
|
105 |
* @param orientation the component orientation to be applied |
|
106 |
*/ |
|
107 |
public void applyComponentOrientation( ComponentOrientation orientation ) |
|
108 |
{ |
|
109 |
// Not yet implemented... |
|
110 |
// I18NUtils.applyComponentOrientation(this, orientation); |
|
111 |
super.applyComponentOrientation(orientation); |
|
112 |
} |
|
113 |
|
|
114 |
public JPanel createPanel() |
|
115 |
{ |
|
116 |
JPanel jpanel1 = new JPanel(); |
|
117 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,BOTTOM:DEFAULT:GROW(1.0),CENTER:2DLU:NONE"); |
|
118 |
CellConstraints cc = new CellConstraints(); |
|
119 |
jpanel1.setLayout(formlayout1); |
|
120 |
|
|
121 |
disclaimerText.setAutoscrolls(false); |
|
122 |
disclaimerText.setContentType("text/html"); |
|
123 |
disclaimerText.setEditable(false); |
|
124 |
disclaimerText.setName("disclaimerText"); |
|
125 |
disclaimerText.setOpaque(false); |
|
126 |
disclaimerText.setSelectionEnd(1); |
|
127 |
disclaimerText.setSelectionStart(1); |
|
128 |
disclaimerText.setText("<html>\n <head>\n \n </head>\n <body>\n </body>\n</html>\n"); |
|
129 |
EmptyBorder emptyborder1 = new EmptyBorder(0,0,0,0); |
|
130 |
disclaimerText.setBorder(emptyborder1); |
|
131 |
jpanel1.add(disclaimerText,new CellConstraints(2,6,3,1,CellConstraints.FILL,CellConstraints.BOTTOM)); |
|
132 |
|
|
133 |
apiKeyText.setName("apiKeyText"); |
|
134 |
jpanel1.add(apiKeyText,cc.xy(4,4)); |
|
135 |
|
|
136 |
chkUseSystemBrowser.setActionCommand("_use_system_browser"); |
|
137 |
chkUseSystemBrowser.setName("chkUseSystemBrowser"); |
|
138 |
chkUseSystemBrowser.setText("_use_system_browser"); |
|
139 |
jpanel1.add(chkUseSystemBrowser,cc.xy(2,2)); |
|
140 |
|
|
141 |
apiKeyLbl.setName("apiKeyLbl"); |
|
142 |
apiKeyLbl.setText("_google_street_view_api_key"); |
|
143 |
jpanel1.add(apiKeyLbl,cc.xy(2,4)); |
|
144 |
|
|
145 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7 }); |
|
146 |
return jpanel1; |
|
147 |
} |
|
148 |
|
|
149 |
/** |
|
150 |
* Initializer |
|
151 |
*/ |
|
152 |
protected void initializePanel() |
|
153 |
{ |
|
154 |
setLayout(new BorderLayout()); |
|
155 |
add(createPanel(), BorderLayout.CENTER); |
|
156 |
} |
|
157 |
|
|
158 |
|
|
159 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster.googlemaps/org.gvsig.raster.googlemaps.swing/org.gvsig.raster.googlemaps.swing.impl/src/main/java/org/gvsig/raster/googlemaps/swing/impl/GoogleMapsParametersPanelFactory.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2018 gvSIG Association |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.raster.googlemaps.swing.impl; |
|
24 |
|
|
25 |
import org.gvsig.fmap.dal.swing.dataStoreParameters.DataStoreParametersPanel; |
|
26 |
import org.gvsig.fmap.dal.swing.dataStoreParameters.DataStoreParametersPanelFactory_v2; |
|
27 |
import org.gvsig.raster.googlemaps.provider.GoogleMapsRasterProvider; |
|
28 |
import org.gvsig.tools.dynobject.DynObject; |
|
29 |
|
|
30 |
|
|
31 |
/** |
|
32 |
* @author fdiaz |
|
33 |
* |
|
34 |
*/ |
|
35 |
public class GoogleMapsParametersPanelFactory implements DataStoreParametersPanelFactory_v2 { |
|
36 |
|
|
37 |
@Override |
|
38 |
public boolean canBeApplied(DynObject arg0) { |
|
39 |
return true; |
|
40 |
} |
|
41 |
|
|
42 |
@Override |
|
43 |
public DataStoreParametersPanel create(DynObject arg0) { |
|
44 |
return new DefaultGoogleMapsParametersPanelController(); |
|
45 |
} |
|
46 |
|
|
47 |
@Override |
|
48 |
public int getPriority() { |
|
49 |
return 5; |
|
50 |
} |
|
51 |
|
|
52 |
@Override |
|
53 |
public String getName() { |
|
54 |
return GoogleMapsRasterProvider.NAME; |
|
55 |
} |
|
56 |
|
|
57 |
@Override |
|
58 |
public String getProviderName() { |
|
59 |
return GoogleMapsRasterProvider.NAME; |
|
60 |
} |
|
61 |
|
|
62 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster.googlemaps/org.gvsig.raster.googlemaps.swing/org.gvsig.raster.googlemaps.swing.impl/src/main/java/org/gvsig/raster/googlemaps/swing/impl/MapTypesCellRenderer.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 gvSIG Association |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.raster.googlemaps.swing.impl; |
|
24 |
|
|
25 |
import java.awt.Component; |
|
26 |
|
|
27 |
import javax.swing.DefaultListCellRenderer; |
|
28 |
import javax.swing.JLabel; |
|
29 |
import javax.swing.JList; |
|
30 |
import javax.swing.ListCellRenderer; |
|
31 |
|
|
32 |
import org.gvsig.googlemaps.lib.api.MapTypes; |
|
33 |
|
|
34 |
/** |
|
35 |
* Cell renderer for Map Types |
|
36 |
* @author daniel |
|
37 |
* |
|
38 |
*/ |
|
39 |
public class MapTypesCellRenderer implements ListCellRenderer<MapTypes>{ |
|
40 |
|
|
41 |
|
|
42 |
protected DefaultListCellRenderer defaultRenderer = new DefaultListCellRenderer(); |
|
43 |
|
|
44 |
/** |
|
45 |
* Cell Renderer to Map Types |
|
46 |
*/ |
|
47 |
public Component getListCellRendererComponent(JList list, MapTypes value, int index, boolean isSelected, |
|
48 |
boolean cellHasFocus) { |
|
49 |
JLabel renderer = |
|
50 |
(JLabel) defaultRenderer.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); |
|
51 |
renderer.setText(((MapTypes) value).toString()); |
|
52 |
return renderer; |
|
53 |
} |
|
54 |
|
|
55 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster.googlemaps/org.gvsig.raster.googlemaps.swing/org.gvsig.raster.googlemaps.swing.impl/src/main/java/org/gvsig/raster/googlemaps/swing/impl/DefaultGoogleMapsParametersPanelController.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 gvSIG Association |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.raster.googlemaps.swing.impl; |
|
24 |
|
|
25 |
import java.awt.event.ActionEvent; |
|
26 |
import java.awt.event.ActionListener; |
|
27 |
import java.net.URL; |
|
28 |
|
|
29 |
import javax.swing.ComboBoxModel; |
|
30 |
import javax.swing.DefaultComboBoxModel; |
|
31 |
import javax.swing.JComponent; |
|
32 |
import javax.swing.event.HyperlinkEvent; |
|
33 |
import javax.swing.event.HyperlinkListener; |
|
34 |
|
|
35 |
import org.slf4j.Logger; |
|
36 |
import org.slf4j.LoggerFactory; |
|
37 |
|
|
38 |
import org.gvsig.googlemaps.lib.api.GoogleMapsLocator; |
|
39 |
import org.gvsig.googlemaps.lib.api.GoogleMapsManager; |
|
40 |
import org.gvsig.googlemaps.lib.api.MapTypes; |
|
41 |
import org.gvsig.raster.googlemaps.provider.GoogleMapsRasterProviderParameters; |
|
42 |
import org.gvsig.raster.googlemaps.swing.api.GoogleMapsParametersPanel; |
|
43 |
import org.gvsig.raster.googlemaps.swing.api.GoogleMapsSwingLocator; |
|
44 |
import org.gvsig.raster.googlemaps.swing.api.GoogleMapsSwingManager; |
|
45 |
import org.gvsig.tools.ToolsLocator; |
|
46 |
import org.gvsig.tools.dynform.JDynForm; |
|
47 |
import org.gvsig.tools.dynobject.DynObject; |
|
48 |
import org.gvsig.tools.i18n.I18nManager; |
|
49 |
import org.gvsig.tools.swing.api.ActionListenerSupport; |
|
50 |
import org.gvsig.tools.swing.api.ToolsSwingLocator; |
|
51 |
import org.gvsig.webmap.lib.api.WebMapLibrary; |
|
52 |
|
|
53 |
|
|
54 |
/** |
|
55 |
* Implements a parameters panel to generate a Google Map Web layer |
|
56 |
* @author daniel |
|
57 |
* |
|
58 |
*/ |
|
59 |
public class DefaultGoogleMapsParametersPanelController extends DefaultGoogleMapsParametersPanelView implements GoogleMapsParametersPanel { |
|
60 |
/** |
|
61 |
* |
|
62 |
*/ |
|
63 |
private static final long serialVersionUID = -3240423223084879324L; |
|
64 |
private static final String NAME="DefaultGoogleMapsParametersPanelController"; |
|
65 |
private static final Logger logger = LoggerFactory.getLogger(DefaultGoogleMapsParametersPanelController.class); |
|
66 |
I18nManager i18nManager = ToolsLocator.getI18nManager(); |
|
67 |
GoogleMapsManager googleMapsManager=GoogleMapsLocator.getManager(); |
|
68 |
private boolean showCrsWarning = false; |
|
69 |
private ActionListenerSupport listeners = ToolsSwingLocator.getToolsSwingManager().createActionListenerSupport(); |
|
70 |
private PanelAction selectedAction=null; |
|
71 |
private boolean excludeGeometryOptions; |
|
72 |
|
|
73 |
/** |
|
74 |
* creates a DefaultGoogleMapsParametersPanelController |
|
75 |
* @param params |
|
76 |
*/ |
|
77 |
public DefaultGoogleMapsParametersPanelController(){ |
|
78 |
super(); |
|
79 |
initComponents(); |
|
80 |
translate(); |
|
81 |
} |
|
82 |
|
|
83 |
@Override |
|
84 |
public void addActionListener(ActionListener listener) { |
|
85 |
listeners.addActionListener(listener); |
|
86 |
} |
|
87 |
|
|
88 |
@Override |
|
89 |
public void removeActionListener(ActionListener listener) { |
|
90 |
listeners.removeActionListener(listener); |
|
91 |
} |
|
92 |
|
|
93 |
private void translate() { |
|
94 |
|
|
95 |
lblSelectMapType.setText(i18nManager.getTranslation(lblSelectMapType.getText())); |
|
96 |
lblSelectMapType.setToolTipText(i18nManager.getTranslation(lblSelectMapType.getToolTipText())); |
|
97 |
chkboxUseAPIKey.setText(i18nManager.getTranslation(chkboxUseAPIKey.getText())); |
|
98 |
chkboxUseAPIKey.setToolTipText(i18nManager.getTranslation(chkboxUseAPIKey.getToolTipText())); |
|
99 |
cboMapTypes.setToolTipText(i18nManager.getTranslation(cboMapTypes.getToolTipText())); |
|
100 |
txtAPIKey.setToolTipText(i18nManager.getTranslation(txtAPIKey.getToolTipText())); |
|
101 |
chkRefreshLocalCache.setText(i18nManager.getTranslation(chkRefreshLocalCache.getText())); |
|
102 |
chkRefreshLocalCache.setToolTipText(i18nManager.getTranslation(chkRefreshLocalCache.getToolTipText())); |
|
103 |
txtDisclaimer.setText(i18nManager.getTranslation("_google_maps_disclaimer")); |
|
104 |
txtURLDisclaimer.setText(i18nManager.getTranslation("_google_disclaimer_url")); |
|
105 |
txtURLDisclaimer.addHyperlinkListener(new HyperlinkListener() { |
|
106 |
|
|
107 |
|
|
108 |
@Override |
|
109 |
public void hyperlinkUpdate(HyperlinkEvent event) { |
|
110 |
if (!event.getInputEvent().isConsumed() && |
|
111 |
event.getEventType().equals(HyperlinkEvent.EventType.ACTIVATED)){ |
|
112 |
event.getInputEvent().consume(); |
|
113 |
selectedAction=GoogleMapsParametersPanel.PanelAction.SHOW_DISCLAIMER; |
|
114 |
listeners.fireActionEvent(new ActionEvent(DefaultGoogleMapsParametersPanelController.this, 0, "disclaimer")); |
|
115 |
event.getInputEvent().consume(); |
|
116 |
} |
|
117 |
|
|
118 |
} |
|
119 |
}); |
|
120 |
|
|
121 |
if(showCrsWarning){ |
|
122 |
StringBuilder builder = new StringBuilder(); |
|
123 |
builder.append("<html><font color=\"red\">"); |
|
124 |
builder.append(i18nManager.getTranslation("_crs_warning")); |
|
125 |
builder.append("</font></body></html>"); |
|
126 |
txtCrsWarning.setText(builder.toString()); |
|
127 |
} else { |
|
128 |
txtCrsWarning.setText(""); |
|
129 |
} |
|
130 |
} |
|
131 |
|
|
132 |
private void initComponents() { |
|
133 |
ComboBoxModel<MapTypes> MapTypeModel = new DefaultComboBoxModel<MapTypes>(MapTypes.values()); |
|
134 |
|
|
135 |
cboMapTypes.setModel(MapTypeModel); |
|
136 |
cboMapTypes.setRenderer(new MapTypesCellRenderer()); |
|
137 |
|
|
138 |
GoogleMapsSwingManager swingManager = GoogleMapsSwingLocator.getManager(); |
|
139 |
String lastUsedApiKey = swingManager.getLastUsedApiKey(); |
|
140 |
|
|
141 |
if (lastUsedApiKey != null && !lastUsedApiKey.isEmpty()) { |
|
142 |
chkboxUseAPIKey.setSelected(true); |
|
143 |
txtAPIKey.setText(lastUsedApiKey); |
|
144 |
} |
|
145 |
|
|
146 |
txtAPIKey.setEnabled(chkboxUseAPIKey.isSelected()); |
|
147 |
chkboxUseAPIKey.addActionListener(new ActionListener() { |
|
148 |
|
|
149 |
@Override |
|
150 |
public void actionPerformed(ActionEvent e) { |
|
151 |
txtAPIKey.setEnabled(chkboxUseAPIKey.isSelected()); |
|
152 |
} |
|
153 |
}); |
|
154 |
|
|
155 |
} |
|
156 |
|
|
157 |
@Override |
|
158 |
public JComponent asJComponent() { |
|
159 |
return this; |
|
160 |
} |
|
161 |
|
|
162 |
// @Override |
|
163 |
// public OpenDataStoreParameters getParameters() { |
|
164 |
// |
|
165 |
// DataManagerProviderServices manager = DALSPILocator.getDataManagerProviderServices(); |
|
166 |
// DataStoreProviderFactory providerFactory = manager.getStoreProviderFactory("GoogleMaps"); |
|
167 |
// DynObject params = providerFactory.createParameters(); |
|
168 |
// |
|
169 |
// String apiKey=txtAPIKey.getText(); |
|
170 |
// boolean hasApiKey=chkboxUseAPIKey.isSelected(); |
|
171 |
// MapTypes mapType=(MapTypes)cboMapTypes.getSelectedItem(); |
|
172 |
// String idMapType=mapType.getId(); |
|
173 |
// |
|
174 |
// //Parameters used are saved for next time |
|
175 |
// if (apiKey!=null&&!apiKey.isEmpty()){ |
|
176 |
// GoogleMapsSwingLocator.getManager().setLastUsedApiKey(apiKey); |
|
177 |
// } |
|
178 |
// |
|
179 |
// params.setDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_APIKEY_PARAMTER_NAME, apiKey); |
|
180 |
// params.setDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_HASAPIKEY_PARAMTER_NAME, hasApiKey); |
|
181 |
// params.setDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_FORMAT_PARAMTER_NAME, "png32"); |
|
182 |
// params.setDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_LANGUAGE_PARAMTER_NAME, this.getLocale().getLanguage()); |
|
183 |
// params.setDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_MAPTYPE_PARAMTER_NAME, idMapType); |
|
184 |
// params.setDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_REGION_PARAMTER_NAME, this.getLocale().getCountry()); |
|
185 |
// |
|
186 |
// return (OpenDataStoreParameters)params; |
|
187 |
// } |
|
188 |
|
|
189 |
@Override |
|
190 |
public boolean areSettingsValid() { |
|
191 |
if (chkboxUseAPIKey.isSelected()){ |
|
192 |
if (txtAPIKey.getText().isEmpty()){ |
|
193 |
return false; |
|
194 |
} |
|
195 |
} |
|
196 |
return true; |
|
197 |
} |
|
198 |
|
|
199 |
@Override |
|
200 |
public String getName() { |
|
201 |
return NAME; |
|
202 |
} |
|
203 |
|
|
204 |
@Override |
|
205 |
public boolean isSelectedAction(PanelAction action) { |
|
206 |
return action.equals(this.selectedAction); |
|
207 |
} |
|
208 |
|
|
209 |
@Override |
|
210 |
public void dispose() { |
|
211 |
// do nothing |
|
212 |
} |
|
213 |
|
|
214 |
@Override |
|
215 |
public void fetchParameters(DynObject params) { |
|
216 |
String apiKey=txtAPIKey.getText(); |
|
217 |
boolean hasApiKey=chkboxUseAPIKey.isSelected(); |
|
218 |
MapTypes mapType=(MapTypes)cboMapTypes.getSelectedItem(); |
|
219 |
String idMapType=mapType.getId(); |
|
220 |
|
|
221 |
//Parameters used are saved for next time |
|
222 |
if (apiKey!=null&&!apiKey.isEmpty()){ |
|
223 |
GoogleMapsSwingLocator.getManager().setLastUsedApiKey(apiKey); |
|
224 |
} |
|
225 |
|
|
226 |
params.setDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_APIKEY_PARAMTER_NAME, apiKey); |
|
227 |
params.setDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_HASAPIKEY_PARAMTER_NAME, hasApiKey); |
|
228 |
params.setDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_FORMAT_PARAMTER_NAME, "png32"); |
|
229 |
params.setDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_LANGUAGE_PARAMTER_NAME, this.getLocale().getLanguage()); |
|
230 |
params.setDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_MAPTYPE_PARAMTER_NAME, idMapType); |
|
231 |
params.setDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_REGION_PARAMTER_NAME, this.getLocale().getCountry()); |
|
232 |
params.getDynClass().addDynField(WebMapLibrary.LAYER_NAME_PARAMETER_NAME); |
|
233 |
params.setDynValue(WebMapLibrary.LAYER_NAME_PARAMETER_NAME, i18nManager.getTranslation("_google_maps")+" "+mapType.toString()); |
|
234 |
|
|
235 |
} |
|
236 |
@Override |
|
237 |
public boolean getExcludeGeometryOptions() { |
|
238 |
return excludeGeometryOptions; |
|
239 |
} |
|
240 |
@Override |
|
241 |
public JDynForm getForm() { |
|
242 |
return null; |
|
243 |
} |
|
244 |
@Override |
|
245 |
public void putParameters(DynObject params) { |
|
246 |
txtAPIKey.setText((String) params.getDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_APIKEY_PARAMTER_NAME)); |
|
247 |
chkboxUseAPIKey.setSelected((boolean) params.getDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_HASAPIKEY_PARAMTER_NAME)); |
|
248 |
cboMapTypes.setSelectedItem(MapTypes.valueOf((String)params.getDynValue(GoogleMapsRasterProviderParameters.GOOGLEMAPS_MAPTYPE_PARAMTER_NAME))); |
|
249 |
} |
|
250 |
@Override |
|
251 |
public void setExcludeGeometryOptions(boolean excludeGeometryOptions) { |
|
252 |
this.excludeGeometryOptions = excludeGeometryOptions; |
|
253 |
} |
|
254 |
|
|
255 |
@Override |
|
256 |
public boolean refreshLocalCache() { |
|
257 |
return chkRefreshLocalCache.isSelected(); |
|
258 |
} |
|
259 |
|
|
260 |
@Override |
|
261 |
public boolean isTiled() { |
|
262 |
return true; |
|
263 |
} |
|
264 |
|
|
265 |
@Override |
|
266 |
public URL getDisclaimerURL() { |
|
267 |
return GoogleMapsSwingLocator.getManager().getDisclaimerURL(); |
|
268 |
} |
|
269 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster.googlemaps/org.gvsig.raster.googlemaps.swing/org.gvsig.raster.googlemaps.swing.impl/src/main/java/org/gvsig/raster/googlemaps/swing/impl/GoogleMapsSwingImplLibrary.java | ||
---|---|---|
1 |
/* gvSIG. Desktop Geographic Information System. |
|
2 |
* |
|
3 |
* Copyright ? 2007-2016 gvSIG Association |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
18 |
* MA 02110-1301, USA. |
|
19 |
* |
|
20 |
* For any additional information, do not hesitate to contact us |
|
21 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
22 |
*/ |
|
23 |
package org.gvsig.raster.googlemaps.swing.impl; |
|
24 |
|
|
25 |
import org.gvsig.raster.googlemaps.swing.api.GoogleMapsSwingLibrary; |
|
26 |
import org.gvsig.raster.googlemaps.swing.api.GoogleMapsSwingLocator; |
|
27 |
import org.gvsig.tools.library.AbstractLibrary; |
|
28 |
import org.gvsig.tools.library.LibraryException; |
|
29 |
import org.gvsig.webmap.lib.api.WebMapLocator; |
|
30 |
|
|
31 |
/** |
|
32 |
* Google Maps Swing Library |
|
33 |
* @author daniel |
|
34 |
* |
|
35 |
*/ |
|
36 |
public class GoogleMapsSwingImplLibrary extends AbstractLibrary{ |
|
37 |
@Override |
|
38 |
public void doRegistration() { |
|
39 |
registerAsImplementationOf(GoogleMapsSwingLibrary.class); |
|
40 |
} |
|
41 |
|
|
42 |
@Override |
|
43 |
protected void doInitialize() throws LibraryException { |
|
44 |
GoogleMapsSwingLocator.registerManager(DefaultGoogleMapsSwingManager.class); |
|
45 |
|
|
46 |
} |
|
47 |
|
|
48 |
@Override |
|
49 |
protected void doPostInitialize() throws LibraryException { |
|
50 |
// WebMapLocator.getManager().registerDataParametersPanel(new GoogleMapsParametersPanelFactory()); |
|
51 |
} |
|
52 |
} |
org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster.googlemaps/org.gvsig.raster.googlemaps.swing/org.gvsig.raster.googlemaps.swing.impl/src/main/java/org/gvsig/raster/googlemaps/swing/impl/DefaultGoogleMapsParametersPanelView.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/paco/projects/externals/gvsig-desktop/RasterRefactoring/org.gvsig.raster.2.4/org.gvsig.raster.googlemaps/org.gvsig.raster.googlemaps.swing/org.gvsig.raster.googlemaps.swing.impl/src/main/java/org/gvsig/raster/googlemaps/swing/impl/DefaultGoogleMapsParametersPanelView.xml</at> |
|
28 |
<at name="path">RasterRefactoring/org.gvsig.raster.2.4/org.gvsig.raster.googlemaps/org.gvsig.raster.googlemaps.swing/org.gvsig.raster.googlemaps.swing.impl/src/main/java/org/gvsig/raster/googlemaps/swing/impl/DefaultGoogleMapsParametersPanelView.xml</at> |
|
29 |
<at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:GROW(1.0),CENTER:DEFAULT:NONE,CENTER:2DLU:NONE</at> |
|
30 |
<at name="colspecs">FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE</at> |
|
31 |
<at name="components"> |
|
32 |
<object classname="java.util.LinkedList"> |
|
33 |
<item > |
|
34 |
<at name="value"> |
|
35 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
36 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
37 |
<at name="cellconstraints"> |
|
38 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
39 |
<at name="column">2</at> |
|
40 |
<at name="row">2</at> |
|
41 |
<at name="colspan">1</at> |
|
42 |
<at name="rowspan">1</at> |
|
43 |
<at name="halign">default</at> |
|
44 |
<at name="valign">default</at> |
|
45 |
<at name="insets" object="insets">0,0,0,0</at> |
|
46 |
</object> |
|
47 |
</at> |
|
48 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
49 |
</super> |
|
50 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
51 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
52 |
<at name="beanproperties"> |
|
53 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
54 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
55 |
<at name="properties"> |
|
56 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
57 |
<at name="border"> |
|
58 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
59 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
60 |
<at name="name">border</at> |
|
61 |
</super> |
|
62 |
<at name="borders"> |
|
63 |
<object classname="java.util.LinkedList"> |
|
64 |
<item > |
|
65 |
<at name="value"> |
|
66 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
67 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
68 |
<at name="name">border</at> |
|
69 |
</super> |
|
70 |
</object> |
|
71 |
</at> |
|
72 |
</item> |
|
73 |
</object> |
|
74 |
</at> |
|
75 |
</object> |
|
76 |
</at> |
|
77 |
<at name="name">lblSelectMapType</at> |
|
78 |
<at name="width">101</at> |
|
79 |
<at name="text">_select_map_type</at> |
|
80 |
<at name="fill"> |
|
81 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
82 |
<at name="name">fill</at> |
|
83 |
</object> |
|
84 |
</at> |
|
85 |
<at name="toolTipText">_select_map_type</at> |
|
86 |
<at name="height">14</at> |
|
87 |
</object> |
|
88 |
</at> |
|
89 |
</object> |
|
90 |
</at> |
|
91 |
</object> |
|
92 |
</at> |
|
93 |
</item> |
|
94 |
<item > |
|
95 |
<at name="value"> |
|
96 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
97 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
98 |
<at name="cellconstraints"> |
|
99 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
100 |
<at name="column">2</at> |
|
101 |
<at name="row">4</at> |
|
102 |
<at name="colspan">5</at> |
|
103 |
<at name="rowspan">1</at> |
|
104 |
<at name="halign">default</at> |
|
105 |
<at name="valign">default</at> |
|
106 |
<at name="insets" object="insets">0,0,0,0</at> |
|
107 |
</object> |
|
108 |
</at> |
|
109 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
110 |
</super> |
|
111 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
112 |
<at name="beanclass">javax.swing.JCheckBox</at> |
|
113 |
<at name="beanproperties"> |
|
114 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
115 |
<at name="classname">javax.swing.JCheckBox</at> |
|
116 |
<at name="properties"> |
|
117 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
118 |
<at name="border"> |
|
119 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
120 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
121 |
<at name="name">border</at> |
|
122 |
</super> |
|
123 |
<at name="borders"> |
|
124 |
<object classname="java.util.LinkedList"> |
|
125 |
<item > |
|
126 |
<at name="value"> |
|
127 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
128 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
129 |
<at name="name">border</at> |
|
130 |
</super> |
|
131 |
</object> |
|
132 |
</at> |
|
133 |
</item> |
|
134 |
</object> |
|
135 |
</at> |
|
136 |
</object> |
|
137 |
</at> |
|
138 |
<at name="actionCommand">use_api_key</at> |
|
139 |
<at name="name">chkboxUseAPIKey</at> |
|
140 |
<at name="width">914</at> |
|
141 |
<at name="text">_use_api_key</at> |
|
142 |
<at name="toolTipText">_use_api_key_tooltip</at> |
|
143 |
<at name="height">16</at> |
|
144 |
</object> |
|
145 |
</at> |
|
146 |
</object> |
|
147 |
</at> |
|
148 |
</object> |
|
149 |
</at> |
|
150 |
</item> |
|
151 |
<item > |
|
152 |
<at name="value"> |
|
153 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
154 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
155 |
<at name="cellconstraints"> |
|
156 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
157 |
<at name="column">2</at> |
|
158 |
<at name="row">6</at> |
|
159 |
<at name="colspan">5</at> |
|
160 |
<at name="rowspan">1</at> |
|
161 |
<at name="halign">default</at> |
|
162 |
<at name="valign">default</at> |
|
163 |
<at name="insets" object="insets">0,0,0,0</at> |
|
164 |
</object> |
|
165 |
</at> |
|
166 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
167 |
</super> |
|
168 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
169 |
<at name="beanclass">javax.swing.JTextField</at> |
|
170 |
<at name="beanproperties"> |
|
171 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
172 |
<at name="classname">javax.swing.JTextField</at> |
|
173 |
<at name="properties"> |
|
174 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
175 |
<at name="border"> |
|
176 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
177 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
178 |
<at name="name">border</at> |
|
179 |
</super> |
|
180 |
<at name="borders"> |
|
181 |
<object classname="java.util.LinkedList"> |
|
182 |
<item > |
|
183 |
<at name="value"> |
|
184 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
185 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
186 |
<at name="name">border</at> |
|
187 |
</super> |
|
188 |
</object> |
|
189 |
</at> |
|
190 |
</item> |
|
191 |
</object> |
|
192 |
</at> |
|
193 |
</object> |
|
194 |
</at> |
|
195 |
<at name="name">txtAPIKey</at> |
|
196 |
<at name="width">914</at> |
|
197 |
<at name="toolTipText">_api_key</at> |
|
198 |
<at name="height">20</at> |
|
199 |
</object> |
|
200 |
</at> |
|
201 |
</object> |
|
202 |
</at> |
|
203 |
</object> |
|
204 |
</at> |
|
205 |
</item> |
|
206 |
<item > |
|
207 |
<at name="value"> |
|
208 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
209 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
210 |
<at name="cellconstraints"> |
|
211 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
212 |
<at name="column">4</at> |
|
213 |
<at name="row">2</at> |
|
214 |
<at name="colspan">1</at> |
|
215 |
<at name="rowspan">1</at> |
|
216 |
<at name="halign">default</at> |
|
217 |
<at name="valign">default</at> |
|
218 |
<at name="insets" object="insets">0,0,0,0</at> |
|
219 |
</object> |
|
220 |
</at> |
|
221 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
222 |
</super> |
|
223 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
224 |
<at name="beanclass">javax.swing.JComboBox</at> |
|
225 |
<at name="beanproperties"> |
|
226 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
227 |
<at name="classname">javax.swing.JComboBox</at> |
|
228 |
<at name="properties"> |
|
229 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
230 |
<at name="border"> |
|
231 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
232 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
233 |
<at name="name">border</at> |
|
234 |
</super> |
|
235 |
<at name="borders"> |
|
236 |
<object classname="java.util.LinkedList"> |
|
237 |
<item > |
|
238 |
<at name="value"> |
|
239 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
240 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
241 |
<at name="name">border</at> |
|
242 |
</super> |
|
243 |
</object> |
|
244 |
</at> |
|
245 |
</item> |
|
246 |
</object> |
|
247 |
</at> |
|
248 |
</object> |
|
249 |
</at> |
|
250 |
<at name="name">cboMapTypes</at> |
|
251 |
<at name="width">26</at> |
|
252 |
<at name="items"> |
|
253 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
|
254 |
<at name="name">items</at> |
|
255 |
</object> |
|
256 |
</at> |
|
257 |
<at name="toolTipText">_map_type</at> |
|
258 |
<at name="height">20</at> |
|
259 |
</object> |
|
260 |
</at> |
|
261 |
</object> |
|
262 |
</at> |
|
263 |
</object> |
|
264 |
</at> |
|
265 |
</item> |
|
266 |
<item > |
|
267 |
<at name="value"> |
|
268 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
269 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
270 |
<at name="cellconstraints"> |
|
271 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
272 |
<at name="column">2</at> |
|
273 |
<at name="row">10</at> |
|
274 |
<at name="colspan">5</at> |
|
275 |
<at name="rowspan">1</at> |
|
276 |
<at name="halign">default</at> |
|
277 |
<at name="valign">default</at> |
|
278 |
<at name="insets" object="insets">0,0,0,0</at> |
|
279 |
</object> |
|
280 |
</at> |
|
281 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
282 |
</super> |
|
283 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
284 |
<at name="beanclass">javax.swing.JEditorPane</at> |
|
285 |
<at name="beanproperties"> |
|
286 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
287 |
<at name="classname">javax.swing.JEditorPane</at> |
|
288 |
<at name="properties"> |
|
289 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
290 |
<at name="border"> |
|
291 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
292 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
293 |
<at name="name">border</at> |
|
294 |
</super> |
|
295 |
<at name="borders"> |
|
296 |
<object classname="java.util.LinkedList"> |
|
297 |
<item > |
|
298 |
<at name="value"> |
|
299 |
<object classname="com.jeta.forms.store.properties.EmptyBorderProperty"> |
|
300 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
301 |
<at name="name">border</at> |
|
302 |
</super> |
|
303 |
<at name="top">0</at> |
|
304 |
<at name="left">0</at> |
|
305 |
<at name="bottom">0</at> |
|
306 |
<at name="right">0</at> |
|
307 |
</object> |
|
308 |
</at> |
|
309 |
</item> |
|
310 |
</object> |
|
311 |
</at> |
|
312 |
</object> |
|
313 |
</at> |
|
314 |
<at name="selectionStart">24</at> |
|
315 |
<at name="autoscrolls">false</at> |
|
316 |
<at name="opaque">false</at> |
|
317 |
<at name="editable">false</at> |
|
318 |
<at name="name">txtDisclaimer</at> |
|
319 |
<at name="width">914</at> |
|
320 |
<at name="selectionEnd">24</at> |
|
321 |
<at name="text"><html> |
|
322 |
<head> |
|
323 |
|
|
324 |
</head> |
|
325 |
<body> |
|
326 |
_google_maps_disclaimer |
|
327 |
</body> |
|
328 |
</html> |
|
329 |
</at> |
|
330 |
<at name="contentType">text/html</at> |
|
331 |
<at name="scollBars"> |
|
332 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
333 |
<at name="name">scollBars</at> |
|
334 |
<at name="verticalpolicy">21</at> |
|
335 |
<at name="horizontalpolicy">31</at> |
|
336 |
<at name="border"> |
|
337 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
338 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
339 |
<at name="name">border</at> |
|
340 |
</super> |
|
341 |
<at name="borders"> |
|
342 |
<object classname="java.util.LinkedList"> |
|
343 |
<item > |
|
344 |
<at name="value"> |
|
345 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
346 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
347 |
<at name="name">border</at> |
|
348 |
</super> |
|
349 |
</object> |
|
350 |
</at> |
|
351 |
</item> |
|
352 |
</object> |
|
353 |
</at> |
|
354 |
</object> |
|
355 |
</at> |
|
356 |
</object> |
|
357 |
</at> |
|
358 |
<at name="height">17</at> |
|
359 |
</object> |
|
360 |
</at> |
|
361 |
</object> |
|
362 |
</at> |
|
363 |
</object> |
|
364 |
</at> |
|
365 |
</item> |
|
366 |
<item > |
|
367 |
<at name="value"> |
|
368 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
369 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
370 |
<at name="cellconstraints"> |
|
371 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
372 |
<at name="column">2</at> |
|
373 |
<at name="row">14</at> |
|
374 |
<at name="colspan">5</at> |
|
375 |
<at name="rowspan">1</at> |
|
376 |
<at name="halign">default</at> |
|
377 |
<at name="valign">default</at> |
|
378 |
<at name="insets" object="insets">0,0,0,0</at> |
|
379 |
</object> |
|
380 |
</at> |
|
381 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
382 |
</super> |
|
383 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
384 |
<at name="beanclass">javax.swing.JEditorPane</at> |
|
385 |
<at name="beanproperties"> |
|
386 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
387 |
<at name="classname">javax.swing.JEditorPane</at> |
|
388 |
<at name="properties"> |
|
389 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
390 |
<at name="border"> |
|
391 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
392 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
393 |
<at name="name">border</at> |
|
394 |
</super> |
|
395 |
<at name="borders"> |
|
396 |
<object classname="java.util.LinkedList"> |
|
397 |
<item > |
|
398 |
<at name="value"> |
|
399 |
<object classname="com.jeta.forms.store.properties.EmptyBorderProperty"> |
|
400 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
401 |
<at name="name">border</at> |
|
402 |
</super> |
|
403 |
<at name="top">0</at> |
|
404 |
<at name="left">0</at> |
|
405 |
<at name="bottom">0</at> |
|
406 |
<at name="right">0</at> |
|
407 |
</object> |
|
408 |
</at> |
|
409 |
</item> |
|
410 |
</object> |
|
411 |
</at> |
|
412 |
</object> |
|
413 |
</at> |
|
414 |
<at name="selectionStart">13</at> |
|
415 |
<at name="autoscrolls">false</at> |
|
416 |
<at name="opaque">false</at> |
|
417 |
<at name="editable">false</at> |
|
418 |
<at name="selectionEnd">13</at> |
|
419 |
<at name="foreground" object="color">255,0,0</at> |
|
420 |
<at name="name">txtCrsWarning</at> |
|
421 |
<at name="width">914</at> |
|
422 |
<at name="text"><html> |
|
423 |
<head> |
|
424 |
|
|
425 |
</head> |
|
426 |
<body> |
|
427 |
<font color="red">_crs_warning</font> |
|
428 |
</body> |
|
429 |
</html> |
|
430 |
</at> |
|
431 |
<at name="contentType">text/html</at> |
|
432 |
<at name="scollBars"> |
|
433 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
434 |
<at name="name">scollBars</at> |
|
435 |
<at name="verticalpolicy">21</at> |
|
436 |
<at name="horizontalpolicy">31</at> |
|
437 |
<at name="border"> |
|
438 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
439 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
440 |
<at name="name">border</at> |
|
441 |
</super> |
|
442 |
<at name="borders"> |
|
443 |
<object classname="java.util.LinkedList"> |
|
444 |
<item > |
|
445 |
<at name="value"> |
|
446 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
447 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
448 |
<at name="name">border</at> |
|
449 |
</super> |
|
450 |
</object> |
|
451 |
</at> |
|
452 |
</item> |
|
453 |
</object> |
|
454 |
</at> |
|
455 |
</object> |
|
456 |
</at> |
|
457 |
</object> |
|
458 |
</at> |
|
459 |
<at name="height">17</at> |
|
460 |
</object> |
|
461 |
</at> |
|
462 |
</object> |
|
463 |
</at> |
|
464 |
</object> |
|
465 |
</at> |
|
466 |
</item> |
|
467 |
<item > |
|
468 |
<at name="value"> |
|
469 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
Also available in: Unified diff