Revision 38806
branches/v2_0_0_prep/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/ImportPictureMarkerSymbolsPanelLayout.java | ||
---|---|---|
130 | 130 |
public JPanel createPanel() |
131 | 131 |
{ |
132 | 132 |
JPanel jpanel1 = new JPanel(); |
133 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
|
|
133 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,FILL:PREF:GROW(1.0),CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
|
|
134 | 134 |
CellConstraints cc = new CellConstraints(); |
135 | 135 |
jpanel1.setLayout(formlayout1); |
136 | 136 |
|
137 | 137 |
labelTitle.setName("labelTitle"); |
138 |
labelTitle.setText("_Import_images_as_point_symbols");
|
|
138 |
labelTitle.setText("_Import_images_as_picture_marker_symbols");
|
|
139 | 139 |
jpanel1.add(labelTitle,cc.xywh(2,2,6,1)); |
140 | 140 |
|
141 | 141 |
labelImagesToImport.setName("labelImagesToImport"); |
... | ... | |
143 | 143 |
jpanel1.add(labelImagesToImport,cc.xywh(2,4,6,1)); |
144 | 144 |
|
145 | 145 |
labelFolderName.setName("labelFolderName"); |
146 |
labelFolderName.setText("_Folder_name_for_import_the_images");
|
|
146 |
labelFolderName.setText("_Folder_name_for_creatimg_the_symbols");
|
|
147 | 147 |
jpanel1.add(labelFolderName,cc.xywh(2,7,6,1)); |
148 | 148 |
|
149 | 149 |
ctrltFolderName.setName("ctrltFolderName"); |
... | ... | |
154 | 154 |
jscrollpane1.setViewportView(ctrlExistingFolders); |
155 | 155 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
156 | 156 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
157 |
jpanel1.add(jscrollpane1,cc.xywh(3,9,5,1));
|
|
157 |
jpanel1.add(jscrollpane1,new CellConstraints(3,9,5,1,CellConstraints.FILL,CellConstraints.TOP));
|
|
158 | 158 |
|
159 | 159 |
labelSize.setName("labelSize"); |
160 | 160 |
labelSize.setText("_Default_size_to_use_in_symbols"); |
... | ... | |
188 | 188 |
jscrollpane2.setViewportView(ctrlImagesToImport); |
189 | 189 |
jscrollpane2.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
190 | 190 |
jscrollpane2.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
191 |
jpanel1.add(jscrollpane2,cc.xywh(3,5,5,1));
|
|
191 |
jpanel1.add(jscrollpane2,new CellConstraints(3,5,5,1,CellConstraints.DEFAULT,CellConstraints.TOP));
|
|
192 | 192 |
|
193 | 193 |
ctrlBrowseImagesToImport.setActionCommand("_Browse"); |
194 | 194 |
ctrlBrowseImagesToImport.setName("ctrlBrowseImagesToImport"); |
195 | 195 |
ctrlBrowseImagesToImport.setText("_Select_images"); |
196 |
jpanel1.add(ctrlBrowseImagesToImport,cc.xywh(5,6,3,1));
|
|
196 |
jpanel1.add(ctrlBrowseImagesToImport,new CellConstraints(3,6,5,1,CellConstraints.RIGHT,CellConstraints.DEFAULT));
|
|
197 | 197 |
|
198 | 198 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 }); |
199 | 199 |
return jpanel1; |
branches/v2_0_0_prep/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/ImportPictureMarkerSymbolsProcess.java | ||
---|---|---|
1 | 1 |
package org.gvsig.symbology.app.importsymbols; |
2 | 2 |
|
3 |
import java.awt.Component; |
|
3 | 4 |
import java.io.File; |
4 | 5 |
import java.io.FileOutputStream; |
5 | 6 |
import java.io.IOException; |
... | ... | |
54 | 55 |
private double symbolSize = 18; |
55 | 56 |
|
56 | 57 |
protected ImportPictureMarkerSymbolsProcess() { |
57 |
super("Import_point_symbols");
|
|
58 |
super(false);
|
|
58 | 59 |
this.application = ApplicationLocator.getManager(); |
59 |
this.setName(application.translate(this.getName()));
|
|
60 |
this.setTaskName(application.translate("_Import_picture_marker_symbols"));
|
|
60 | 61 |
} |
61 | 62 |
|
62 | 63 |
public Set<String> getAllowedFileExtensions() { |
... | ... | |
130 | 131 |
status.cancel(); |
131 | 132 |
return; |
132 | 133 |
} |
134 |
status.add(); |
|
133 | 135 |
status.setRangeOfValues(1, this.getSelectedImageFiles().size()); |
134 | 136 |
for (int i = 1; i < this.getSelectedImageFiles().size(); i++) { |
135 | 137 |
if (status.isCancellationRequested()) { |
... | ... | |
169 | 171 |
status.terminate(); |
170 | 172 |
} |
171 | 173 |
} |
174 |
application.refreshMenusAndToolBars(); |
|
172 | 175 |
} |
173 | 176 |
} |
174 | 177 |
|
175 | 178 |
private void preProcess() { |
176 | 179 |
if (this.isQuietMode() && this.getOverwrite() == YesNoAsk.ASK) { |
177 | 180 |
this.setOverwrite(YesNoAsk.YES); |
178 |
// } else {
|
|
179 |
// Component dlg = application.createComponent(ImportPointSymbolsPanel.class, this);
|
|
180 |
// application.showDialog(dlg, this.getName());
|
|
181 |
} else { |
|
182 |
Component dlg = application.createComponent(ImportPictureMarkerSymbolsPanel.class, this);
|
|
183 |
application.showDialog(dlg, this.getName()); |
|
181 | 184 |
} |
182 | 185 |
} |
183 | 186 |
|
branches/v2_0_0_prep/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/ImportPictureMarkerSymbolsPanel.java | ||
---|---|---|
1 | 1 |
package org.gvsig.symbology.app.importsymbols; |
2 | 2 |
|
3 |
import java.awt.Component; |
|
4 |
import java.awt.Container; |
|
3 | 5 |
import java.awt.event.ActionEvent; |
4 | 6 |
import java.awt.event.ActionListener; |
5 | 7 |
import java.io.File; |
... | ... | |
8 | 10 |
import java.util.Arrays; |
9 | 11 |
import java.util.List; |
10 | 12 |
|
13 |
import javax.swing.AbstractButton; |
|
11 | 14 |
import javax.swing.ComboBoxModel; |
15 |
import javax.swing.JButton; |
|
12 | 16 |
import javax.swing.JFileChooser; |
17 |
import javax.swing.JLabel; |
|
13 | 18 |
import javax.swing.JOptionPane; |
19 |
import javax.swing.JTextArea; |
|
20 |
import javax.swing.JTextField; |
|
14 | 21 |
import javax.swing.ListModel; |
15 | 22 |
import javax.swing.SpinnerNumberModel; |
16 | 23 |
import javax.swing.event.ListDataListener; |
17 | 24 |
import javax.swing.event.ListSelectionEvent; |
18 | 25 |
import javax.swing.event.ListSelectionListener; |
19 | 26 |
import javax.swing.filechooser.FileFilter; |
27 |
import javax.swing.text.JTextComponent; |
|
20 | 28 |
|
21 | 29 |
import org.apache.commons.io.FilenameUtils; |
22 | 30 |
import org.gvsig.app.ApplicationLocator; |
... | ... | |
76 | 84 |
} |
77 | 85 |
} |
78 | 86 |
|
87 |
private void translate(Container container) { |
|
88 |
for (int n = 0; n < container.getComponentCount(); n++) { |
|
89 |
Component component = container.getComponent(n); |
|
90 |
try { |
|
91 |
if (component instanceof JLabel) { |
|
92 |
JLabel label = (JLabel) component; |
|
93 |
if( label.getText().startsWith("_") ) { |
|
94 |
label.setText(application.translate(label.getText())); |
|
95 |
} |
|
96 |
} else if (component instanceof AbstractButton) { |
|
97 |
AbstractButton button = (AbstractButton) component; |
|
98 |
if( button.getText().startsWith("_") ) { |
|
99 |
button.setText(application.translate(button.getText())); |
|
100 |
} |
|
101 |
} else if (component instanceof JTextComponent) { |
|
102 |
JTextComponent text = (JTextComponent) component; |
|
103 |
if( text.getText().startsWith("_") ) { |
|
104 |
text.setText(application.translate(text.getText())); |
|
105 |
} |
|
106 |
} else if (component instanceof Container) { |
|
107 |
translate((Container) component); |
|
108 |
} |
|
109 |
} catch (Throwable e) { |
|
110 |
// Ignore if |
|
111 |
} |
|
112 |
} |
|
113 |
} |
|
114 |
|
|
79 | 115 |
private void initComponents() { |
116 |
translate(this); |
|
80 | 117 |
// ------------------------------------------------------------ |
81 | 118 |
// Image file names |
82 | 119 |
this.ctrlBrowseImagesToImport.addActionListener(new ActionListener() { |
... | ... | |
139 | 176 |
// ------------------------------------------------------------ |
140 | 177 |
// Overwrite options |
141 | 178 |
final OverwriteItem[] overwriteItems = new OverwriteItem[] { |
142 |
new OverwriteItem(application.translate("_Ask_to_the user"), YesNoAsk.ASK),
|
|
179 |
new OverwriteItem(application.translate("_Ask_to_the_user"), YesNoAsk.ASK),
|
|
143 | 180 |
new OverwriteItem(application.translate("_Dont_overwrite"), YesNoAsk.NO), |
144 | 181 |
new OverwriteItem(application.translate("_Overwrite_always"), YesNoAsk.YES) |
145 | 182 |
}; |
... | ... | |
188 | 225 |
private void doImport() { |
189 | 226 |
if( this.ctrltFolderName.getText().trim().length()==0 ) { |
190 | 227 |
application.messageDialog( |
191 |
application.translate("_Select_a_folder_name"), |
|
228 |
application.translate("_Should_select_a_folder_name"),
|
|
192 | 229 |
this.process.getName(), |
193 | 230 |
JOptionPane.WARNING_MESSAGE); |
194 | 231 |
return; |
195 | 232 |
} |
196 | 233 |
if( this.selectedFiles==null || this.selectedFiles.size()==0 ) { |
197 | 234 |
application.messageDialog( |
198 |
application.translate("_Select_images"),
|
|
235 |
application.translate("_Should_select_the_images_to_import"),
|
|
199 | 236 |
this.process.getName(), |
200 | 237 |
JOptionPane.WARNING_MESSAGE); |
201 | 238 |
return; |
... | ... | |
217 | 254 |
JFileChooser fc = new JFileChooser(); |
218 | 255 |
fc.setFileFilter(filter); |
219 | 256 |
fc.setMultiSelectionEnabled(multiselect); |
220 |
int r = fc.showDialog(application.getRootComponent(), application.translate("_Select_symbols"));
|
|
257 |
int r = fc.showDialog(application.getRootComponent(),title);
|
|
221 | 258 |
if( r == JFileChooser.APPROVE_OPTION ) { |
222 | 259 |
return Arrays.asList(fc.getSelectedFiles()); |
223 | 260 |
} |
... | ... | |
225 | 262 |
} |
226 | 263 |
|
227 | 264 |
private void doBrowseImagesToImport() { |
228 |
List<File> files = fileChooser(application.translate("_Select_symbols"), true, new FileFilter() {
|
|
265 |
List<File> files = fileChooser(application.translate("_Select_the_images"), true, new FileFilter() {
|
|
229 | 266 |
public String getDescription() { |
230 | 267 |
StringBuffer buffer = new StringBuffer(); |
231 | 268 |
List<String> extensions = new ArrayList<String>(); |
branches/v2_0_0_prep/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/ImportPictureMarkerSymbolsExtension.java | ||
---|---|---|
26 | 26 |
if (process != null && process.isAlive()) { |
27 | 27 |
application.messageDialog( |
28 | 28 |
application.translate("_Import_process_already_running_Wait_to_terminate"), |
29 |
application.translate("_Import_point_symbols"),
|
|
29 |
application.translate("_Import_picture_marker_symbols"),
|
|
30 | 30 |
JOptionPane.WARNING_MESSAGE); |
31 | 31 |
return; |
32 | 32 |
} |
33 | 33 |
process = new ImportPictureMarkerSymbolsProcess(); |
34 |
/* |
|
34 | 35 |
Component dlg = application.createComponent(ImportPictureMarkerSymbolsPanel.class, process); |
35 | 36 |
application.showDialog(dlg, application.translate("_Import_point_symbols")); |
37 |
*/ |
|
36 | 38 |
if( !process.isCancellationRequested() ) { |
37 | 39 |
process.start(); |
38 | 40 |
} |
branches/v2_0_0_prep/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/ImportPictureMarkerSymbolsPanelLayout.xml | ||
---|---|---|
26 | 26 |
</super> |
27 | 27 |
<at name="id">/home/jjdelcerro/workspaces/gvsig-desktop-2.0.0-20120418/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/ImportPictureMarkerSymbolsPanelLayout.xml</at> |
28 | 28 |
<at name="path">gvsig-desktop-2.0.0-20120418/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/ImportPictureMarkerSymbolsPanelLayout.xml</at> |
29 |
<at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE</at>
|
|
29 |
<at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,FILL:PREF:GROW(1.0),CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE</at>
|
|
30 | 30 |
<at name="colspecs">FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE</at> |
31 | 31 |
<at name="components"> |
32 | 32 |
<object classname="java.util.LinkedList"> |
... | ... | |
54 | 54 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
55 | 55 |
<at name="properties"> |
56 | 56 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
57 |
<at name="text">_Import_images_as_point_symbols</at>
|
|
57 |
<at name="text">_Import_images_as_picture_marker_symbols</at>
|
|
58 | 58 |
<at name="height">17</at> |
59 |
<at name="width">751</at>
|
|
59 |
<at name="width">631</at>
|
|
60 | 60 |
<at name="name">labelTitle</at> |
61 | 61 |
<at name="fill"> |
62 | 62 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
... | ... | |
116 | 116 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
117 | 117 |
<at name="text">_Images_to_import</at> |
118 | 118 |
<at name="height">17</at> |
119 |
<at name="width">751</at>
|
|
119 |
<at name="width">631</at>
|
|
120 | 120 |
<at name="name">labelImagesToImport</at> |
121 | 121 |
<at name="fill"> |
122 | 122 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
... | ... | |
174 | 174 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
175 | 175 |
<at name="properties"> |
176 | 176 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
177 |
<at name="text">_Folder_name_for_import_the_images</at>
|
|
177 |
<at name="text">_Folder_name_for_creatimg_the_symbols</at>
|
|
178 | 178 |
<at name="height">17</at> |
179 |
<at name="width">751</at>
|
|
179 |
<at name="width">631</at>
|
|
180 | 180 |
<at name="name">labelFolderName</at> |
181 | 181 |
<at name="fill"> |
182 | 182 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
... | ... | |
235 | 235 |
<at name="properties"> |
236 | 236 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
237 | 237 |
<at name="height">21</at> |
238 |
<at name="width">735</at>
|
|
238 |
<at name="width">615</at>
|
|
239 | 239 |
<at name="name">ctrltFolderName</at> |
240 | 240 |
<at name="border"> |
241 | 241 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
... | ... | |
274 | 274 |
<at name="row">9</at> |
275 | 275 |
<at name="colspan">5</at> |
276 | 276 |
<at name="rowspan">1</at> |
277 |
<at name="halign">default</at>
|
|
278 |
<at name="valign">default</at>
|
|
277 |
<at name="halign">fill</at>
|
|
278 |
<at name="valign">top</at>
|
|
279 | 279 |
<at name="insets" object="insets">0,0,0,0</at> |
280 | 280 |
</object> |
281 | 281 |
</at> |
... | ... | |
295 | 295 |
<at name="name">items</at> |
296 | 296 |
</object> |
297 | 297 |
</at> |
298 |
<at name="width">733</at>
|
|
298 |
<at name="width">613</at>
|
|
299 | 299 |
<at name="name">ctrlExistingFolders</at> |
300 | 300 |
<at name="scollBars"> |
301 | 301 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
... | ... | |
378 | 378 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
379 | 379 |
<at name="text">_Default_size_to_use_in_symbols</at> |
380 | 380 |
<at name="height">17</at> |
381 |
<at name="width">751</at>
|
|
381 |
<at name="width">631</at>
|
|
382 | 382 |
<at name="name">labelSize</at> |
383 | 383 |
<at name="fill"> |
384 | 384 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
... | ... | |
437 | 437 |
<at name="properties"> |
438 | 438 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
439 | 439 |
<at name="height">24</at> |
440 |
<at name="width">735</at>
|
|
440 |
<at name="width">615</at>
|
|
441 | 441 |
<at name="name">ctrlDefaultSize</at> |
442 | 442 |
</object> |
443 | 443 |
</at> |
... | ... | |
584 | 584 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
585 | 585 |
<at name="text">_Overwrite_options</at> |
586 | 586 |
<at name="height">17</at> |
587 |
<at name="width">751</at>
|
|
587 |
<at name="width">631</at>
|
|
588 | 588 |
<at name="name">labelOverwriteOptions</at> |
589 | 589 |
<at name="fill"> |
590 | 590 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
... | ... | |
714 | 714 |
</at> |
715 | 715 |
</object> |
716 | 716 |
</at> |
717 |
<at name="width">735</at>
|
|
717 |
<at name="width">615</at>
|
|
718 | 718 |
<at name="name">ctrlOverwriteOptions</at> |
719 | 719 |
<at name="itemCount">3</at> |
720 | 720 |
<at name="border"> |
... | ... | |
755 | 755 |
<at name="colspan">5</at> |
756 | 756 |
<at name="rowspan">1</at> |
757 | 757 |
<at name="halign">default</at> |
758 |
<at name="valign">default</at>
|
|
758 |
<at name="valign">top</at>
|
|
759 | 759 |
<at name="insets" object="insets">0,0,0,0</at> |
760 | 760 |
</object> |
761 | 761 |
</at> |
... | ... | |
769 | 769 |
<at name="properties"> |
770 | 770 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
771 | 771 |
<at name="scrollableTracksViewportWidth">true</at> |
772 |
<at name="height">165</at>
|
|
772 |
<at name="height">78</at>
|
|
773 | 773 |
<at name="items"> |
774 | 774 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
775 | 775 |
<at name="name">items</at> |
776 | 776 |
</object> |
777 | 777 |
</at> |
778 |
<at name="width">733</at>
|
|
778 |
<at name="width">613</at>
|
|
779 | 779 |
<at name="name">ctrlImagesToImport</at> |
780 | 780 |
<at name="scollBars"> |
781 | 781 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
... | ... | |
818 | 818 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
819 | 819 |
<at name="cellconstraints"> |
820 | 820 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
821 |
<at name="column">5</at>
|
|
821 |
<at name="column">3</at>
|
|
822 | 822 |
<at name="row">6</at> |
823 |
<at name="colspan">3</at>
|
|
823 |
<at name="colspan">5</at>
|
|
824 | 824 |
<at name="rowspan">1</at> |
825 |
<at name="halign">default</at>
|
|
825 |
<at name="halign">right</at>
|
|
826 | 826 |
<at name="valign">default</at> |
827 | 827 |
<at name="insets" object="insets">0,0,0,0</at> |
828 | 828 |
</object> |
... | ... | |
838 | 838 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
839 | 839 |
<at name="text">_Select_images</at> |
840 | 840 |
<at name="height">22</at> |
841 |
<at name="width">144</at>
|
|
841 |
<at name="width">119</at>
|
|
842 | 842 |
<at name="name">ctrlBrowseImagesToImport</at> |
843 | 843 |
<at name="actionCommand">_Browse</at> |
844 | 844 |
<at name="border"> |
branches/v2_0_0_prep/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/resources/locale/text.properties | ||
---|---|---|
1 |
make_plugin_package=Crear paquete instalaci?n de plugin |
|
2 |
make_plugin_package_description=Crea un paquete de instalaci?n de un plugin instalado |
|
3 |
install_package=Instalar un nuevo paquete |
|
4 |
install_package_description=instala un nuevo paquete (plugin, traducciones, tema, etc.) en gvSIG |
|
5 |
install_package_extension_warning=Herramienta en desarrollo no exenta de fallos. ?Desea continuar? |
|
6 |
select_an_option=Seleccione una opci?n |
|
1 |
_Import_images_as_picture_marker_symbols=Importar imagenes como simbolos puntuales de imagen |
|
2 |
_Images_to_import=Imagenes a importar |
|
3 |
_Folder_name_for_creatimg_the_symbols=Nombre de la carpeta donde crear los simbolos |
|
4 |
_Default_size_to_use_in_symbols=Tama?o por defecto a usar para los nuevos simbolos |
|
5 |
_import=Importar |
|
6 |
_Overwrite_options=Opciones de sobreescritura |
|
7 |
_Select_images=Seleccione las imagenes |
|
8 |
_Ask_to_the_user=Preguntar al usuario |
|
9 |
_Dont_overwrite=No sobreescribir |
|
10 |
_Overwrite_always=Sobreescribir siempre |
|
11 |
_Import_picture_marker_symbols=Importar simbolos de imagen puntual |
|
12 |
_Should_select_a_folder_name=Debera seleccionar un nombre de carpeta |
|
13 |
_Should_select_the_images_to_import=Debera seleccionar las imagenes a importar |
|
14 |
_Select_the_images=Seleccione las imagenes |
|
15 |
_Images=Imagenes |
|
16 |
_Import_process_already_running_Wait_to_terminate_and_retry=El proceso de importacion esta ejecutandose.Espere a que termine y reintentelo de nuevo. |
branches/v2_0_0_prep/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/resources/locale/text_en.properties | ||
---|---|---|
1 |
make_plugin_package=Create plugin installation package |
|
2 |
make_plugin_package_description=Create an installation package from an already installed plugin |
|
3 |
install_package=Install a new package |
|
4 |
install_package_description=Installs a new package (plugin, translations, theme, etc.) in gvSIG |
|
5 |
install_package_extension_warning=Tool under development. It may contain errors. Continue anyway? |
|
6 |
select_an_option=Select an Option |
|
1 |
_Import_images_as_picture_marker_symbols=Import images as picture marker symbols |
|
2 |
_Images_to_import=Images to import |
|
3 |
_Folder_name_for_creatimg_the_symbols=Folder name for creating the symbols |
|
4 |
_Default_size_to_use_in_symbols=Default size to use in symbols |
|
5 |
_import=Import |
|
6 |
_Overwrite_options=Overwrite options |
|
7 |
_Select_images=Select images |
|
8 |
_Ask_to_the_user=Ask to the user |
|
9 |
_Dont_overwrite=Don't overwrite |
|
10 |
_Overwrite_always=Overwrite always |
|
11 |
_Import_picture_marker_symbols=Import picture marker symbols |
|
12 |
_Should_select_a_folder_name=Should select a folder name |
|
13 |
_Should_select_the_images_to_import=Should select the images to import |
|
14 |
_Select_the_images=Select the images |
|
15 |
_Images=Images |
|
16 |
_Import_process_already_running_Wait_to_terminate_and_retry=Import process already running. Wait to terminate and retry. |
branches/v2_0_0_prep/frameworks/_fwAndami/src/org/gvsig/andami/ui/mdiFrame/DefaultThreadSafeDialogs.java | ||
---|---|---|
7 | 7 |
import java.awt.event.ComponentEvent; |
8 | 8 |
import java.awt.event.ComponentListener; |
9 | 9 |
import java.lang.reflect.Constructor; |
10 |
import java.util.Arrays; |
|
11 | 10 |
|
12 | 11 |
import javax.swing.JOptionPane; |
13 | 12 |
import javax.swing.JPanel; |
... | ... | |
294 | 293 |
|
295 | 294 |
} |
296 | 295 |
|
297 |
/* |
|
298 |
* private class ConfirmDialog implements Runnable { private int value; |
|
299 |
* private String message; private String title; private int messageType; |
|
300 |
* private int optionType; |
|
301 |
* |
|
302 |
* public int show(final String message, final String title, int optionType, |
|
303 |
* final int messageType) { this.message = message; this.title = title; |
|
304 |
* this.optionType = optionType; this.messageType = messageType; if |
|
305 |
* (SwingUtilities.isEventDispatchThread()) { this.run(); } else { try { |
|
306 |
* SwingUtilities.invokeAndWait(this); } catch (Exception e) { |
|
307 |
* logger.info("Can't show message dialog '" |
|
308 |
* +message+"'. redirect to status bar", e); } } return this.value; } |
|
309 |
* |
|
310 |
* public void run() { this.value = |
|
311 |
* JOptionPane.showConfirmDialog(getRootComponent(), message, title, |
|
312 |
* optionType, messageType); } } |
|
313 |
* |
|
314 |
* private class inputDialog implements Runnable { private String value; |
|
315 |
* private String message; private String title; private int messageType; |
|
316 |
* private String initialValue; |
|
317 |
* |
|
318 |
* public String show(final String message, final String title) { return |
|
319 |
* show(message, title, JOptionPane.QUESTION_MESSAGE, null); } |
|
320 |
* |
|
321 |
* public String show(final String message, final String title, final int |
|
322 |
* messageType, String initialValue) { this.message = message; this.title = |
|
323 |
* title; this.messageType = messageType; this.initialValue = initialValue; |
|
324 |
* if (SwingUtilities.isEventDispatchThread()) { this.run(); } else { try { |
|
325 |
* SwingUtilities.invokeAndWait(this); } catch (Exception e) { |
|
326 |
* logger.info("Can't show message dialog '" |
|
327 |
* +message+"'. redirect to status bar", e); } } return this.value; } |
|
328 |
* |
|
329 |
* public void run() { this.value = (String) |
|
330 |
* JOptionPane.showInputDialog(getRootComponent(), message, title, |
|
331 |
* messageType, null, null, initialValue); } } |
|
332 |
*/ |
|
333 | 296 |
public Component createComponent(final Class<? extends Component> theClass, |
334 | 297 |
final Object... parameters) { |
335 | 298 |
return createComponentWithParams(theClass, parameters); |
branches/v2_0_0_prep/frameworks/_fwAndami/src/org/gvsig/andami/ui/mdiFrame/MDIFrame.java | ||
---|---|---|
1177 | 1177 |
if (!SwingUtilities.isEventDispatchThread()) { |
1178 | 1178 |
SwingUtilities.invokeLater(new Runnable() { |
1179 | 1179 |
public void run() { |
1180 |
enableControls();
|
|
1180 |
refreshControls();
|
|
1181 | 1181 |
} |
1182 | 1182 |
}); |
1183 | 1183 |
return; |
branches/v2_0_0_prep/frameworks/_fwAndami/src/org/gvsig/andami/Launcher.java | ||
---|---|---|
547 | 547 |
} |
548 | 548 |
}); |
549 | 549 |
|
550 |
createDefaultIconTheme(); |
|
551 |
|
|
552 | 550 |
frame.message(Messages.getString("StatusBar.Aplicacion_iniciada"), JOptionPane.INFORMATION_MESSAGE); |
553 | 551 |
|
554 | 552 |
splashWindow.close(); |
... | ... | |
579 | 577 |
} |
580 | 578 |
} |
581 | 579 |
|
582 |
private void createDefaultIconTheme() { |
|
583 |
PluginsManager pluginsManager = PluginsLocator.getManager(); |
|
584 |
IconThemeManager iconManager = ToolsSwingLocator.getIconThemeManager(); |
|
585 |
|
|
586 |
File f = new File(pluginsManager.getApplicationHomeFolder(),"icon-theme"); |
|
587 |
if( !f.exists() ) { |
|
588 |
f.mkdir(); |
|
589 |
} |
|
590 |
IconTheme theme = iconManager.getDefault(); |
|
591 |
File f2 = new File(f,theme.getID()) ; |
|
592 |
if( !f2.exists() ) { |
|
593 |
logger.info("Creating default icon theme in "+f.getAbsolutePath()); |
|
594 |
theme.export(f); |
|
595 |
} |
|
596 |
} |
|
580 |
|
|
597 | 581 |
|
598 | 582 |
/** |
599 | 583 |
* |
... | ... | |
2980 | 2964 |
|
2981 | 2965 |
File f = new File(pluginsManager.getApplicationFolder(),"icon-theme"); |
2982 | 2966 |
if( !f.exists() ) { |
2983 |
f.mkdir(); |
|
2967 |
try { |
|
2968 |
f.mkdir(); |
|
2969 |
} catch(Exception ex) { |
|
2970 |
// Do nothing |
|
2971 |
} |
|
2984 | 2972 |
} |
2985 | 2973 |
iconManager.getRepository().add(f,"_Global"); |
2986 | 2974 |
|
2987 | 2975 |
f = new File(pluginsManager.getApplicationHomeFolder(),"icon-theme"); |
2988 | 2976 |
if( !f.exists() ) { |
2989 |
f.mkdir(); |
|
2977 |
try { |
|
2978 |
f.mkdir(); |
|
2979 |
} catch(Exception ex) { |
|
2980 |
// Do nothing |
|
2981 |
} |
|
2990 | 2982 |
} |
2991 | 2983 |
iconManager.getRepository().add(f,"_User"); |
2992 | 2984 |
|
2993 |
// TODO: falta por cargar de algun fichero de config el nombre del tema |
|
2994 |
// por deecto a usar y seleccionarlo aqui como tema corriente. |
|
2995 |
// |
|
2985 |
Preferences prefs = Preferences.userRoot().node("gvsig.icontheme"); |
|
2986 |
String defaultThemeID = prefs.get("default-theme", null); |
|
2987 |
if( defaultThemeID != null ) { |
|
2988 |
IconTheme iconTheme = iconManager.get(defaultThemeID); |
|
2989 |
if( iconTheme != null ) { |
|
2990 |
iconManager.setCurrent(iconTheme); |
|
2991 |
} |
|
2992 |
} |
|
2996 | 2993 |
} |
2997 | 2994 |
|
2998 | 2995 |
/** |
branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/ApplicationManager.java | ||
---|---|---|
309 | 309 |
|
310 | 310 |
public Component getRootComponent(); |
311 | 311 |
|
312 |
public void refreshMenusAndToolBars(); |
|
313 |
|
|
312 | 314 |
} |
branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/imp/DefaultAppgvSIGManager.java | ||
---|---|---|
464 | 464 |
} |
465 | 465 |
|
466 | 466 |
public String translate(String message, String... args) { |
467 |
String msg = message; |
|
468 |
if (msg == null) { |
|
469 |
return ""; |
|
470 |
} |
|
471 |
msg = org.gvsig.i18n.Messages.getText(msg, args); |
|
472 |
if (msg == null) { |
|
473 |
msg = "_" + message.replace("_", " "); |
|
474 |
} |
|
475 |
return msg; |
|
467 |
return org.gvsig.i18n.Messages.translate(message, args); |
|
476 | 468 |
} |
477 | 469 |
|
478 | 470 |
public Component getRootComponent() { |
479 | 471 |
return (Component) PluginServices.getMainFrame(); |
480 | 472 |
} |
473 |
|
|
474 |
public void refreshMenusAndToolBars() { |
|
475 |
PluginServices.getMainFrame().refreshControls(); |
|
476 |
} |
|
481 | 477 |
} |
branches/v2_0_0_prep/libraries/libInternationalization/src/org/gvsig/i18n/Messages.java | ||
---|---|---|
154 | 154 |
} |
155 | 155 |
return translation; |
156 | 156 |
} |
157 |
|
|
158 |
public static String translate(String message, String[] args) { |
|
159 |
String msg = message; |
|
160 |
if (msg == null) { |
|
161 |
return ""; |
|
162 |
} |
|
163 |
msg = getText(msg, args); |
|
164 |
if (msg == null) { |
|
165 |
msg = "_" + message.replace("_", " "); |
|
166 |
} |
|
167 |
return msg; |
|
168 |
} |
|
157 | 169 |
|
170 |
public static String translate(String message) { |
|
171 |
String msg = message; |
|
172 |
if (msg == null) { |
|
173 |
return ""; |
|
174 |
} |
|
175 |
msg = getText(msg, (String[]) null); |
|
176 |
if (msg == null) { |
|
177 |
msg = "_" + message.replace("_", " "); |
|
178 |
} |
|
179 |
return msg; |
|
180 |
} |
|
181 |
|
|
158 | 182 |
/** |
159 | 183 |
* <p>Gets the localized message associated with the provided key. |
160 | 184 |
* If the key is not in the dictionary or the translation is empty, |
... | ... | |
173 | 197 |
return getText(key, arguments, _CLASSNAME); |
174 | 198 |
} |
175 | 199 |
|
200 |
|
|
176 | 201 |
/** |
177 | 202 |
* <p>Gets the localized message associated with the provided key. |
178 | 203 |
* If the key is not in the dictionary or the translation is empty, |
branches/v2_0_0_prep/libraries/libCorePlugin/src/org/gvsig/coreplugin/PreferencesExtension.java | ||
---|---|---|
20 | 20 |
import org.gvsig.coreplugin.preferences.general.ExtensionsPage; |
21 | 21 |
import org.gvsig.coreplugin.preferences.general.FolderingPage; |
22 | 22 |
import org.gvsig.coreplugin.preferences.general.GeneralPage; |
23 |
import org.gvsig.coreplugin.preferences.general.IconThemePage; |
|
23 | 24 |
import org.gvsig.coreplugin.preferences.general.LanguagePage; |
24 | 25 |
import org.gvsig.coreplugin.preferences.general.ScreenSettingsPage; |
25 | 26 |
import org.gvsig.coreplugin.preferences.general.SkinPreferences; |
... | ... | |
124 | 125 |
ep.append("FolderingPage", "", new FolderingPage()); |
125 | 126 |
ep.append("ScreenSettingsPage", "", new ScreenSettingsPage()); |
126 | 127 |
ep.append("SkinPreferences", "", new SkinPreferences()); |
128 |
ep.append("IconThemePage", "", new IconThemePage()); |
|
127 | 129 |
|
128 | 130 |
// this.extensionPoints.add("AplicationPreferences","GeneralPage", new GeneralPage()); |
129 | 131 |
// this.extensionPoints.add("AplicationPreferences","NetworkPage", new NetworkPage()); |
branches/v2_0_0_prep/libraries/libCorePlugin/src/org/gvsig/coreplugin/preferences/general/IconThemePanelPage.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">N593826fD13838cef220CB8000</at> |
|
28 |
<at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE</at> |
|
29 |
<at name="colspecs">FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT: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">3</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">_Icon_themes_availables</at> |
|
57 |
<at name="height">17</at> |
|
58 |
<at name="width">878</at> |
|
59 |
<at name="name">label_title</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="border"> |
|
66 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
67 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
68 |
<at name="name">border</at> |
|
69 |
</super> |
|
70 |
<at name="borders"> |
|
71 |
<object classname="java.util.LinkedList"> |
|
72 |
<item > |
|
73 |
<at name="value"> |
|
74 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
75 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
76 |
<at name="name">border</at> |
|
77 |
</super> |
|
78 |
</object> |
|
79 |
</at> |
|
80 |
</item> |
|
81 |
</object> |
|
82 |
</at> |
|
83 |
</object> |
|
84 |
</at> |
|
85 |
</object> |
|
86 |
</at> |
|
87 |
</object> |
|
88 |
</at> |
|
89 |
</object> |
|
90 |
</at> |
|
91 |
</item> |
|
92 |
<item > |
|
93 |
<at name="value"> |
|
94 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
95 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
96 |
<at name="cellconstraints"> |
|
97 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
98 |
<at name="column">2</at> |
|
99 |
<at name="row">3</at> |
|
100 |
<at name="colspan">3</at> |
|
101 |
<at name="rowspan">1</at> |
|
102 |
<at name="halign">default</at> |
|
103 |
<at name="valign">default</at> |
|
104 |
<at name="insets" object="insets">0,0,0,0</at> |
|
105 |
</object> |
|
106 |
</at> |
|
107 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
108 |
</super> |
|
109 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
110 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
111 |
<at name="beanproperties"> |
|
112 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
113 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
114 |
<at name="properties"> |
|
115 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
116 |
<at name="text">_Select_an_icon_theme_as_default_for_use_in_the_application</at> |
|
117 |
<at name="height">17</at> |
|
118 |
<at name="width">878</at> |
|
119 |
<at name="name">label_selection</at> |
|
120 |
<at name="fill"> |
|
121 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
122 |
<at name="name">fill</at> |
|
123 |
</object> |
|
124 |
</at> |
|
125 |
<at name="border"> |
|
126 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
127 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
128 |
<at name="name">border</at> |
|
129 |
</super> |
|
130 |
<at name="borders"> |
|
131 |
<object classname="java.util.LinkedList"> |
|
132 |
<item > |
|
133 |
<at name="value"> |
|
134 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
135 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
136 |
<at name="name">border</at> |
|
137 |
</super> |
|
138 |
</object> |
|
139 |
</at> |
|
140 |
</item> |
|
141 |
</object> |
|
142 |
</at> |
|
143 |
</object> |
|
144 |
</at> |
|
145 |
</object> |
|
146 |
</at> |
|
147 |
</object> |
|
148 |
</at> |
|
149 |
</object> |
|
150 |
</at> |
|
151 |
</item> |
|
152 |
<item > |
|
153 |
<at name="value"> |
|
154 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
155 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
156 |
<at name="cellconstraints"> |
|
157 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
158 |
<at name="column">2</at> |
|
159 |
<at name="row">6</at> |
|
160 |
<at name="colspan">3</at> |
|
161 |
<at name="rowspan">1</at> |
|
162 |
<at name="halign">default</at> |
|
163 |
<at name="valign">default</at> |
|
164 |
<at name="insets" object="insets">0,0,0,0</at> |
|
165 |
</object> |
|
166 |
</at> |
|
167 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
168 |
</super> |
|
169 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
170 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
171 |
<at name="beanproperties"> |
|
172 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
173 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
174 |
<at name="properties"> |
|
175 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
176 |
<at name="text">_You_can_export_the_default_icon_theme_to_use_as_base_for_create_a_custom_icon_theme</at> |
|
177 |
<at name="height">17</at> |
|
178 |
<at name="width">878</at> |
|
179 |
<at name="name">label_export</at> |
|
180 |
<at name="fill"> |
|
181 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
182 |
<at name="name">fill</at> |
|
183 |
</object> |
|
184 |
</at> |
|
185 |
<at name="border"> |
|
186 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
187 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
188 |
<at name="name">border</at> |
|
189 |
</super> |
|
190 |
<at name="borders"> |
|
191 |
<object classname="java.util.LinkedList"> |
|
192 |
<item > |
|
193 |
<at name="value"> |
|
194 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
195 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
196 |
<at name="name">border</at> |
|
197 |
</super> |
|
198 |
</object> |
|
199 |
</at> |
|
200 |
</item> |
|
201 |
</object> |
|
202 |
</at> |
|
203 |
</object> |
|
204 |
</at> |
|
205 |
</object> |
|
206 |
</at> |
|
207 |
</object> |
|
208 |
</at> |
|
209 |
</object> |
|
210 |
</at> |
|
211 |
</item> |
|
212 |
<item > |
|
213 |
<at name="value"> |
|
214 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
215 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
216 |
<at name="cellconstraints"> |
|
217 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
218 |
<at name="column">3</at> |
|
219 |
<at name="row">4</at> |
|
220 |
<at name="colspan">1</at> |
|
221 |
<at name="rowspan">1</at> |
|
222 |
<at name="halign">default</at> |
|
223 |
<at name="valign">default</at> |
|
224 |
<at name="insets" object="insets">0,0,0,0</at> |
|
225 |
</object> |
|
226 |
</at> |
|
227 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
228 |
</super> |
|
229 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
230 |
<at name="beanclass">javax.swing.JComboBox</at> |
|
231 |
<at name="beanproperties"> |
|
232 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
233 |
<at name="classname">javax.swing.JComboBox</at> |
|
234 |
<at name="properties"> |
|
235 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
236 |
<at name="height">23</at> |
|
237 |
<at name="items"> |
|
238 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
|
239 |
<at name="name">items</at> |
|
240 |
</object> |
|
241 |
</at> |
|
242 |
<at name="width">846</at> |
|
243 |
<at name="name">combo_selection</at> |
|
244 |
<at name="border"> |
|
245 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
246 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
247 |
<at name="name">border</at> |
|
248 |
</super> |
|
249 |
<at name="borders"> |
|
250 |
<object classname="java.util.LinkedList"> |
|
251 |
<item > |
|
252 |
<at name="value"> |
|
253 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
254 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
255 |
<at name="name">border</at> |
|
256 |
</super> |
|
257 |
</object> |
|
258 |
</at> |
|
259 |
</item> |
|
260 |
</object> |
|
261 |
</at> |
|
262 |
</object> |
|
263 |
</at> |
|
264 |
</object> |
|
265 |
</at> |
|
266 |
</object> |
|
267 |
</at> |
|
268 |
</object> |
|
269 |
</at> |
|
270 |
</item> |
|
271 |
<item > |
|
272 |
<at name="value"> |
|
273 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
274 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
275 |
<at name="cellconstraints"> |
|
276 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
277 |
<at name="column">3</at> |
|
278 |
<at name="row">8</at> |
|
279 |
<at name="colspan">1</at> |
|
280 |
<at name="rowspan">1</at> |
|
281 |
<at name="halign">left</at> |
|
282 |
<at name="valign">default</at> |
|
283 |
<at name="insets" object="insets">0,0,0,0</at> |
|
284 |
</object> |
|
285 |
</at> |
|
286 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
287 |
</super> |
|
288 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
289 |
<at name="beanclass">javax.swing.JButton</at> |
|
290 |
<at name="beanproperties"> |
|
291 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
292 |
<at name="classname">javax.swing.JButton</at> |
|
293 |
<at name="properties"> |
|
294 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
295 |
<at name="text">_Export_default_icon_theme</at> |
|
296 |
<at name="height">22</at> |
|
297 |
<at name="width">212</at> |
|
298 |
<at name="name">button_export</at> |
|
299 |
<at name="actionCommand">_Export_default_icon_theme</at> |
|
300 |
<at name="border"> |
|
301 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
302 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
303 |
<at name="name">border</at> |
|
304 |
</super> |
|
305 |
<at name="borders"> |
|
306 |
<object classname="java.util.LinkedList"> |
|
307 |
<item > |
|
308 |
<at name="value"> |
|
309 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
310 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
311 |
<at name="name">border</at> |
|
312 |
</super> |
|
313 |
</object> |
|
314 |
</at> |
|
315 |
</item> |
|
316 |
</object> |
|
317 |
</at> |
|
318 |
</object> |
|
319 |
</at> |
|
320 |
</object> |
|
321 |
</at> |
|
322 |
</object> |
|
323 |
</at> |
|
324 |
</object> |
|
325 |
</at> |
|
326 |
</item> |
|
327 |
</object> |
|
328 |
</at> |
|
329 |
<at name="properties"> |
|
330 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
331 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
332 |
<at name="properties"> |
|
333 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
334 |
<at name="name"></at> |
|
335 |
<at name="fill"> |
|
336 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
337 |
<at name="name">fill</at> |
|
338 |
</object> |
|
339 |
</at> |
|
340 |
<at name="scollBars"> |
|
341 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
342 |
<at name="name">scollBars</at> |
|
343 |
<at name="verticalpolicy">21</at> |
|
344 |
<at name="horizontalpolicy">31</at> |
|
345 |
</object> |
|
346 |
</at> |
|
347 |
<at name="border"> |
|
348 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
349 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
350 |
<at name="name">border</at> |
|
351 |
</super> |
|
352 |
<at name="borders"> |
|
353 |
<object classname="java.util.LinkedList"/> |
|
354 |
</at> |
|
355 |
</object> |
|
356 |
</at> |
|
357 |
</object> |
|
358 |
</at> |
|
359 |
</object> |
|
360 |
</at> |
|
361 |
<at name="cellpainters"> |
|
362 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
363 |
<at name="rows"> |
|
364 |
<object classname="[Ljava.lang.Object;" size="9"> |
|
365 |
<at name="item" index="0"> |
|
366 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
367 |
</at> |
|
368 |
<at name="item" index="1"> |
|
369 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
370 |
</at> |
|
371 |
<at name="item" index="2"> |
|
372 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
373 |
</at> |
|
374 |
<at name="item" index="3"> |
|
375 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
376 |
</at> |
|
377 |
<at name="item" index="4"> |
|
378 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
379 |
</at> |
|
380 |
<at name="item" index="5"> |
|
381 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
382 |
</at> |
|
383 |
<at name="item" index="6"> |
|
384 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
385 |
</at> |
|
386 |
<at name="item" index="7"> |
|
387 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
388 |
</at> |
|
389 |
<at name="item" index="8"> |
|
390 |
<object classname="[Ljava.lang.Object;" size="4"/> |
|
391 |
</at> |
|
392 |
</object> |
|
393 |
</at> |
|
394 |
</object> |
|
395 |
</at> |
|
396 |
<at name="rowgroups"> |
|
397 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
398 |
<at name="groups"> |
|
399 |
<object classname="java.util.HashMap"/> |
|
400 |
</at> |
|
401 |
</object> |
|
402 |
</at> |
|
403 |
<at name="colgroups"> |
|
404 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
405 |
<at name="groups"> |
|
406 |
<object classname="java.util.HashMap"/> |
|
407 |
</at> |
|
408 |
</object> |
|
409 |
</at> |
|
410 |
</object> |
|
411 |
</at> |
|
412 |
</object> |
branches/v2_0_0_prep/libraries/libCorePlugin/src/org/gvsig/coreplugin/preferences/general/IconThemeExtensionsPage.java | ||
---|---|---|
1 |
package org.gvsig.coreplugin.preferences.general; |
|
2 |
|
|
3 |
import java.awt.BorderLayout; |
|
4 |
import java.util.ArrayList; |
|
5 |
import java.util.Iterator; |
|
6 |
import java.util.List; |
|
7 |
|
|
8 |
import javax.swing.ComboBoxModel; |
|
9 |
import javax.swing.DefaultComboBoxModel; |
|
10 |
import javax.swing.ImageIcon; |
|
11 |
import javax.swing.JPanel; |
|
12 |
|
|
13 |
import org.gvsig.andami.PluginServices; |
|
14 |
import org.gvsig.andami.preferences.AbstractPreferencePage; |
|
15 |
import org.gvsig.tools.swing.api.ToolsSwingLocator; |
|
16 |
import org.gvsig.tools.swing.icontheme.IconTheme; |
|
17 |
import org.gvsig.tools.swing.icontheme.IconThemeManager; |
|
18 |
|
|
19 |
public class IconThemeExtensionsPage extends AbstractPreferencePage { |
|
20 |
|
|
21 |
/** |
|
22 |
* |
|
23 |
*/ |
|
24 |
private static final long serialVersionUID = 4369071892027860769L; |
|
25 |
|
|
26 |
private String id; |
|
27 |
private boolean changed = false; |
|
28 |
|
|
29 |
public IconThemeExtensionsPage() { |
|
30 |
super(); |
|
31 |
initialize(); |
|
32 |
id = this.getClass().getName(); |
|
33 |
setParentID(GeneralPage.class.getName()); |
|
34 |
} |
|
35 |
|
|
36 |
public String getID() { |
|
37 |
return id; |
|
38 |
} |
|
39 |
|
|
40 |
public String getTitle() { |
|
41 |
return PluginServices.getText(this, "_Icon_theme"); |
|
42 |
} |
|
43 |
|
|
44 |
public JPanel getPanel() { |
|
45 |
return this; |
|
46 |
} |
|
47 |
|
|
48 |
public void initializeValues() { |
|
49 |
} |
|
50 |
|
|
51 |
public void storeValues() { |
|
52 |
} |
|
53 |
|
|
54 |
public void initializeDefaults() { |
|
55 |
|
|
56 |
} |
|
57 |
|
|
58 |
public ImageIcon getIcon() { |
|
59 |
return PluginServices.getIconTheme().get("edit-setup-icontheme"); |
|
60 |
} |
|
61 |
|
|
62 |
public boolean isValueChanged() { |
|
63 |
return changed; |
|
64 |
} |
|
65 |
|
|
66 |
public void setChangesApplied() { |
|
67 |
changed = false; |
|
68 |
} |
|
69 |
|
|
70 |
private void initialize() { |
|
71 |
IconThemeManager iconManager = ToolsSwingLocator.getIconThemeManager(); |
|
72 |
this.setLayout(new BorderLayout()); |
|
73 |
|
|
74 |
IconThemePanelPage panel = new IconThemePanelPage(); |
|
75 |
|
|
76 |
// LLenar la lista con los temas disponibles |
|
77 |
List<IconTheme> themes = new ArrayList<IconTheme>(); |
|
78 |
Iterator<IconTheme> themesIt = iconManager.iterator(); |
|
79 |
while( themesIt.hasNext() ) { |
|
80 |
IconTheme theme = themesIt.next(); |
|
81 |
themes.add(theme); |
|
82 |
} |
|
83 |
ComboBoxModel model = new DefaultComboBoxModel(themes.toArray()); |
|
84 |
panel.combo_selection.setModel(model); |
|
85 |
|
|
86 |
// Traducir las etiquetas del panel |
|
87 |
panel.label_title.setText(translate(panel.label_title.getText())); |
|
88 |
panel.label_selection.setText(translate(panel.label_selection.getText())); |
|
89 |
|
|
90 |
this.add(panel, BorderLayout.CENTER); |
|
91 |
} |
|
92 |
|
|
93 |
private String translate(String s) { |
|
94 |
return PluginServices.getText(this,s); |
|
95 |
} |
|
96 |
|
|
97 |
} |
|
98 |
|
branches/v2_0_0_prep/libraries/libCorePlugin/src/org/gvsig/coreplugin/preferences/general/IconThemePanelPage.java | ||
---|---|---|
1 |
package org.gvsig.coreplugin.preferences.general; |
|
2 |
|
|
3 |
//import com.jeta.open.i18n.I18NUtils; |
|
4 |
import java.awt.BorderLayout; |
|
5 |
import java.awt.ComponentOrientation; |
|
6 |
import java.awt.Container; |
|
7 |
import java.awt.Dimension; |
|
8 |
|
|
9 |
import javax.swing.Box; |
|
10 |
import javax.swing.ImageIcon; |
|
11 |
import javax.swing.JButton; |
|
12 |
import javax.swing.JComboBox; |
|
13 |
import javax.swing.JLabel; |
|
14 |
import javax.swing.JPanel; |
|
15 |
|
|
16 |
import com.jgoodies.forms.layout.CellConstraints; |
|
17 |
import com.jgoodies.forms.layout.FormLayout; |
|
18 |
|
|
19 |
public class IconThemePanelPage extends JPanel { |
|
20 |
/** |
|
21 |
* |
|
22 |
*/ |
|
23 |
private static final long serialVersionUID = 732724276675072878L; |
|
24 |
|
|
25 |
JLabel label_title = new JLabel(); |
|
26 |
JLabel label_selection = new JLabel(); |
|
27 |
JLabel label_export = new JLabel(); |
|
28 |
JComboBox combo_selection = new JComboBox(); |
|
29 |
JButton button_export = new JButton(); |
|
30 |
|
|
31 |
/** |
|
32 |
* Default constructor |
|
33 |
*/ |
|
34 |
public IconThemePanelPage() { |
|
35 |
initializePanel(); |
|
36 |
} |
|
37 |
|
|
38 |
/** |
|
39 |
* Adds fill components to empty cells in the first row and first column of |
|
40 |
* the grid. This ensures that the grid spacing will be the same as shown in |
|
41 |
* the designer. |
|
42 |
* |
|
43 |
* @param cols |
|
44 |
* an array of column indices in the first row where fill |
|
45 |
* components should be added. |
|
46 |
* @param rows |
|
47 |
* an array of row indices in the first column where fill |
|
48 |
* components should be added. |
|
49 |
*/ |
|
50 |
void addFillComponents(Container panel, int[] cols, int[] rows) { |
|
51 |
Dimension filler = new Dimension(10, 10); |
|
52 |
|
|
53 |
boolean filled_cell_11 = false; |
|
54 |
CellConstraints cc = new CellConstraints(); |
|
55 |
if (cols.length > 0 && rows.length > 0) { |
|
56 |
if (cols[0] == 1 && rows[0] == 1) { |
|
57 |
/** add a rigid area */ |
|
58 |
panel.add(Box.createRigidArea(filler), cc.xy(1, 1)); |
|
59 |
filled_cell_11 = true; |
|
60 |
} |
|
61 |
} |
|
62 |
|
|
63 |
for (int index = 0; index < cols.length; index++) { |
|
64 |
if (cols[index] == 1 && filled_cell_11) { |
|
65 |
continue; |
|
66 |
} |
|
67 |
panel.add(Box.createRigidArea(filler), cc.xy(cols[index], 1)); |
|
68 |
} |
|
69 |
|
|
70 |
for (int index = 0; index < rows.length; index++) { |
|
71 |
if (rows[index] == 1 && filled_cell_11) { |
|
72 |
continue; |
|
73 |
} |
|
74 |
panel.add(Box.createRigidArea(filler), cc.xy(1, rows[index])); |
|
75 |
} |
|
76 |
|
|
77 |
} |
|
78 |
|
|
79 |
/** |
|
80 |
* Helper method to load an image file from the CLASSPATH |
|
81 |
* |
|
82 |
* @param imageName |
|
83 |
* the package and name of the file to load relative to the |
|
84 |
* CLASSPATH |
|
85 |
* @return an ImageIcon instance with the specified image file |
|
86 |
* @throws IllegalArgumentException |
|
87 |
* if the image resource cannot be loaded. |
|
88 |
*/ |
|
89 |
public ImageIcon loadImage(String imageName) { |
|
90 |
try { |
|
91 |
ClassLoader classloader = getClass().getClassLoader(); |
|
92 |
java.net.URL url = classloader.getResource(imageName); |
|
93 |
if (url != null) { |
|
94 |
ImageIcon icon = new ImageIcon(url); |
|
95 |
return icon; |
|
96 |
} |
|
97 |
} catch (Exception e) { |
|
98 |
e.printStackTrace(); |
|
99 |
} |
|
100 |
throw new IllegalArgumentException("Unable to load image: " + imageName); |
|
101 |
} |
|
102 |
|
|
103 |
/** |
|
104 |
* Method for recalculating the component orientation for right-to-left |
|
105 |
* Locales. |
|
106 |
* |
|
107 |
* @param orientation |
|
108 |
* the component orientation to be applied |
|
109 |
*/ |
|
110 |
public void applyComponentOrientation(ComponentOrientation orientation) { |
|
111 |
// Not yet implemented... |
|
112 |
// I18NUtils.applyComponentOrientation(this, orientation); |
|
113 |
super.applyComponentOrientation(orientation); |
|
114 |
} |
|
115 |
|
|
116 |
public JPanel createPanel() { |
|
117 |
JPanel jpanel1 = new JPanel(); |
|
118 |
FormLayout formlayout1 = new FormLayout( |
|
119 |
"FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE", |
|
120 |
"CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE"); |
|
121 |
CellConstraints cc = new CellConstraints(); |
|
122 |
jpanel1.setLayout(formlayout1); |
|
123 |
|
|
124 |
label_title.setName("label_title"); |
|
125 |
label_title.setText("_Icon_themes_availables"); |
|
126 |
jpanel1.add(label_title, cc.xywh(2, 2, 3, 1)); |
|
127 |
|
|
128 |
label_selection.setName("label_selection"); |
|
129 |
label_selection |
|
130 |
.setText("_Select_an_icon_theme_as_default_for_use_in_the_application"); |
|
131 |
jpanel1.add(label_selection, cc.xywh(2, 3, 3, 1)); |
|
132 |
|
|
133 |
label_export.setName("label_export"); |
|
134 |
label_export |
|
135 |
.setText("_You_can_export_the_default_icon_theme_to_use_as_base_for_create_a_custom_icon_theme"); |
|
136 |
jpanel1.add(label_export, cc.xywh(2, 6, 3, 1)); |
|
137 |
|
|
138 |
combo_selection.setName("combo_selection"); |
|
139 |
jpanel1.add(combo_selection, cc.xy(3, 4)); |
|
140 |
|
|
141 |
button_export.setActionCommand("_Export_default_icon_theme"); |
|
142 |
button_export.setName("button_export"); |
|
143 |
button_export.setText("_Export_default_icon_theme"); |
|
144 |
jpanel1.add(button_export, new CellConstraints(3, 8, 1, 1, |
|
145 |
CellConstraints.LEFT, CellConstraints.DEFAULT)); |
|
146 |
|
|
147 |
addFillComponents(jpanel1, new int[] { 1, 2, 3, 4 }, new int[] { 1, 2, |
|
148 |
3, 4, 5, 6, 7, 8, 9 }); |
|
149 |
return jpanel1; |
|
150 |
} |
|
151 |
|
|
152 |
/** |
|
153 |
* Initializer |
|
154 |
*/ |
|
155 |
protected void initializePanel() { |
|
156 |
setLayout(new BorderLayout()); |
|
157 |
add(createPanel(), BorderLayout.CENTER); |
|
158 |
} |
|
159 |
|
|
160 |
} |
branches/v2_0_0_prep/libraries/libCorePlugin/src/org/gvsig/coreplugin/preferences/general/IconThemePageLayout.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">N593826fD13838cef220CB8000</at> |
|
28 |
<at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE</at> |
|
29 |
<at name="colspecs">FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT: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">3</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">_Icon_themes_availables</at> |
|
57 |
<at name="height">17</at> |
|
58 |
<at name="width">878</at> |
|
59 |
<at name="name">label_title</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="border"> |
|
66 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
67 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
68 |
<at name="name">border</at> |
|
69 |
</super> |
|
70 |
<at name="borders"> |
|
71 |
<object classname="java.util.LinkedList"> |
|
72 |
<item > |
|
73 |
<at name="value"> |
|
74 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
75 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
76 |
<at name="name">border</at> |
|
77 |
</super> |
|
78 |
</object> |
|
79 |
</at> |
|
80 |
</item> |
|
81 |
</object> |
|
82 |
</at> |
|
83 |
</object> |
|
84 |
</at> |
|
85 |
</object> |
|
86 |
</at> |
|
87 |
</object> |
|
88 |
</at> |
|
89 |
</object> |
|
90 |
</at> |
|
91 |
</item> |
|
92 |
<item > |
|
93 |
<at name="value"> |
|
94 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
95 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
96 |
<at name="cellconstraints"> |
|
97 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
98 |
<at name="column">2</at> |
|
99 |
<at name="row">3</at> |
|
100 |
<at name="colspan">3</at> |
|
101 |
<at name="rowspan">1</at> |
|
102 |
<at name="halign">default</at> |
|
103 |
<at name="valign">default</at> |
|
104 |
<at name="insets" object="insets">0,0,0,0</at> |
|
105 |
</object> |
|
106 |
</at> |
|
107 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
108 |
</super> |
|
109 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
110 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
Also available in: Unified diff