Revision 44719
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.i18n/src/main/java/org/gvsig/i18n/Messages.java | ||
---|---|---|
750 | 750 |
private static void addNotTranslatedKey(String key, String callerName, boolean log) { |
751 | 751 |
if (!notTranslatedKeys.contains(key)) { |
752 | 752 |
if( log ) { |
753 |
logger.info("[" + callerName + "] Cannot find translation for key '" + key + "'.");
|
|
753 |
logger.trace("[" + callerName + "] Cannot find translation for key '" + key + "'.");
|
|
754 | 754 |
} |
755 | 755 |
notTranslatedKeys.add(key); |
756 | 756 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featuretype/DefaultFeatureAttributesSelectionPanel.java | ||
---|---|---|
254 | 254 |
modelAvailables.addElement(attr); |
255 | 255 |
} |
256 | 256 |
} |
257 |
modelAvailables.setFilter(this.txtColumnsFilter.getText()); |
|
257 | 258 |
modelAvailables.sort(true); |
258 | 259 |
for (String name : this.selecteds) { |
259 | 260 |
modelSelecteds.addElement(featureType.getAttributeDescriptor(name)); |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featuretype/DefaultFeatureAttributePanelView.java | ||
---|---|---|
14 | 14 |
import javax.swing.JComboBox; |
15 | 15 |
import javax.swing.JFrame; |
16 | 16 |
import javax.swing.JLabel; |
17 |
import javax.swing.JList; |
|
17 | 18 |
import javax.swing.JPanel; |
18 | 19 |
import javax.swing.JScrollPane; |
19 | 20 |
import javax.swing.JTabbedPane; |
... | ... | |
97 | 98 |
JButton btnAvailableValuesAdd = new JButton(); |
98 | 99 |
JButton btnAvailableValuesUpdate = new JButton(); |
99 | 100 |
JButton btnAvailableValuesRemove = new JButton(); |
101 |
JButton btnAvailableValuesRemoveAll = new JButton(); |
|
100 | 102 |
JLabel lblAvailableValuesLabel = new JLabel(); |
101 | 103 |
JLabel lblAvailableValuesValue = new JLabel(); |
102 |
JComboBox cboAvailableValues = new JComboBox(); |
|
103 | 104 |
JTextField txtAvailableValuesLabel = new JTextField(); |
104 | 105 |
JTextField txtAvailableValuesValue = new JTextField(); |
106 |
JList lstAvailableValues = new JList(); |
|
105 | 107 |
JLabel lblIsPrimaryKey = new JLabel(); |
106 | 108 |
JCheckBox chkIsPrimaryKey = new JCheckBox(); |
107 | 109 |
JLabel lblIsAutomatic = new JLabel(); |
... | ... | |
657 | 659 |
CellConstraints cc = new CellConstraints(); |
658 | 660 |
jpanel1.setLayout(formlayout1); |
659 | 661 |
|
660 |
jpanel1.add(createPanel15(),cc.xy(3,1));
|
|
662 |
jpanel1.add(createPanel15(),new CellConstraints(3,1,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
|
|
661 | 663 |
jpanel1.add(createPanel16(),cc.xy(1,1)); |
662 | 664 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1 }); |
663 | 665 |
return jpanel1; |
... | ... | |
666 | 668 |
public JPanel createPanel15() |
667 | 669 |
{ |
668 | 670 |
JPanel jpanel1 = new JPanel(); |
669 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,FILL:2DLU:GROW(1.0)");
|
|
671 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,FILL:2DLU:NONE");
|
|
670 | 672 |
CellConstraints cc = new CellConstraints(); |
671 | 673 |
jpanel1.setLayout(formlayout1); |
672 | 674 |
|
... | ... | |
685 | 687 |
btnAvailableValuesRemove.setText("_Remove"); |
686 | 688 |
jpanel1.add(btnAvailableValuesRemove,cc.xy(1,5)); |
687 | 689 |
|
688 |
addFillComponents(jpanel1,new int[0],new int[]{ 2,4,6 }); |
|
690 |
btnAvailableValuesRemoveAll.setActionCommand("_Remove"); |
|
691 |
btnAvailableValuesRemoveAll.setName("btnAvailableValuesRemoveAll"); |
|
692 |
btnAvailableValuesRemoveAll.setText("_Remove_all"); |
|
693 |
jpanel1.add(btnAvailableValuesRemoveAll,cc.xy(1,7)); |
|
694 |
|
|
695 |
addFillComponents(jpanel1,new int[0],new int[]{ 2,4,6,8 }); |
|
689 | 696 |
return jpanel1; |
690 | 697 |
} |
691 | 698 |
|
692 | 699 |
public JPanel createPanel16() |
693 | 700 |
{ |
694 | 701 |
JPanel jpanel1 = new JPanel(); |
695 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
|
|
702 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
|
|
696 | 703 |
CellConstraints cc = new CellConstraints(); |
697 | 704 |
jpanel1.setLayout(formlayout1); |
698 | 705 |
|
... | ... | |
704 | 711 |
lblAvailableValuesValue.setText("_Value"); |
705 | 712 |
jpanel1.add(lblAvailableValuesValue,cc.xy(1,5)); |
706 | 713 |
|
707 |
cboAvailableValues.setName("cboAvailableValues"); |
|
708 |
jpanel1.add(cboAvailableValues,cc.xywh(1,1,3,1)); |
|
709 |
|
|
710 | 714 |
txtAvailableValuesLabel.setName("txtAvailableValuesLabel"); |
711 | 715 |
jpanel1.add(txtAvailableValuesLabel,cc.xy(3,3)); |
712 | 716 |
|
713 | 717 |
txtAvailableValuesValue.setName("txtAvailableValuesValue"); |
714 | 718 |
jpanel1.add(txtAvailableValuesValue,cc.xy(3,5)); |
715 | 719 |
|
720 |
lstAvailableValues.setName("lstAvailableValues"); |
|
721 |
JScrollPane jscrollpane1 = new JScrollPane(); |
|
722 |
jscrollpane1.setViewportView(lstAvailableValues); |
|
723 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
|
724 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
|
725 |
jpanel1.add(jscrollpane1,cc.xywh(1,1,3,1)); |
|
726 |
|
|
716 | 727 |
addFillComponents(jpanel1,new int[]{ 2,3 },new int[]{ 2,4,6 }); |
717 | 728 |
return jpanel1; |
718 | 729 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featuretype/DefaultFeatureAttributePanel.java | ||
---|---|---|
1 | 1 |
package org.gvsig.fmap.dal.swing.impl.featuretype; |
2 | 2 |
|
3 | 3 |
import java.awt.event.ActionEvent; |
4 |
import java.awt.event.ActionListener; |
|
5 | 4 |
import org.gvsig.fmap.dal.swing.featuretype.FeatureTypeAttributePanel; |
6 | 5 |
import java.awt.event.ItemEvent; |
7 |
import java.awt.event.ItemListener; |
|
8 | 6 |
import java.util.ArrayList; |
9 |
import java.util.Comparator; |
|
10 | 7 |
import java.util.List; |
11 | 8 |
import java.util.Objects; |
12 |
import javax.swing.ComboBoxModel; |
|
13 | 9 |
import javax.swing.DefaultComboBoxModel; |
10 |
import javax.swing.DefaultListModel; |
|
14 | 11 |
import javax.swing.JButton; |
15 | 12 |
import javax.swing.JCheckBox; |
16 | 13 |
import javax.swing.JComboBox; |
17 | 14 |
import javax.swing.JComponent; |
15 |
import javax.swing.JList; |
|
18 | 16 |
import javax.swing.JOptionPane; |
19 | 17 |
import javax.swing.JTextField; |
18 |
import javax.swing.ListModel; |
|
20 | 19 |
import javax.swing.SwingUtilities; |
21 | 20 |
import javax.swing.event.ChangeEvent; |
22 |
import javax.swing.event.ChangeListener;
|
|
21 |
import javax.swing.event.ListSelectionEvent;
|
|
23 | 22 |
import javax.swing.text.JTextComponent; |
24 | 23 |
import org.apache.commons.lang3.StringUtils; |
25 | 24 |
import org.cresques.cts.IProjection; |
... | ... | |
127 | 126 |
model.addElement(tableName); |
128 | 127 |
} |
129 | 128 |
this.cboTable.setModel(model); |
130 |
this.cboTable.addItemListener(new ItemListener() { |
|
131 |
@Override |
|
132 |
public void itemStateChanged(ItemEvent e) { |
|
133 |
if (e.getStateChange() != ItemEvent.SELECTED) { |
|
134 |
return; |
|
135 |
} |
|
136 |
Thread th = new Thread(new Runnable() { |
|
137 |
@Override |
|
138 |
public void run() { |
|
139 |
doPopulateComboCode(); |
|
140 |
} |
|
141 |
}, "FeatureTypePanelForeingKeyPopulateComboCode"); |
|
142 |
th.start(); |
|
143 |
} |
|
129 |
this.cboTable.addItemListener((ItemEvent e) -> { |
|
130 |
if (e.getStateChange() != ItemEvent.SELECTED) { |
|
131 |
return; |
|
132 |
} |
|
133 |
Thread th = new Thread(() -> { |
|
134 |
doPopulateComboCode(); |
|
135 |
}, "FeatureTypePanelForeingKeyPopulateComboCode"); |
|
136 |
th.start(); |
|
144 | 137 |
}); |
145 | 138 |
this.btnFormula.setText(""); |
146 | 139 |
this.featureStoreElement = dataSwingManager.createFeatureStoreElement(); |
... | ... | |
189 | 182 |
for (Search.OrderedAttribute attribute : attributes) { |
190 | 183 |
model.addElement(attribute.getDescriptor().getName()); |
191 | 184 |
} |
192 |
SwingUtilities.invokeLater(new Runnable() { |
|
193 |
@Override |
|
194 |
public void run() { |
|
195 |
cboCode.setModel(model); |
|
196 |
cboCode.setSelectedItem(foreingKey.getCodeName()); |
|
197 |
} |
|
185 |
SwingUtilities.invokeLater(() -> { |
|
186 |
cboCode.setModel(model); |
|
187 |
cboCode.setSelectedItem(foreingKey.getCodeName()); |
|
198 | 188 |
}); |
199 | 189 |
} |
200 | 190 |
|
... | ... | |
261 | 251 |
|
262 | 252 |
private static class AvailableValuesController { |
263 | 253 |
|
264 |
private final JComboBox cboValues;
|
|
254 |
private final JList lstValues;
|
|
265 | 255 |
private final JTextComponent txtLabel; |
266 | 256 |
private final JTextComponent txtValue; |
267 | 257 |
private final JButton btnAdd; |
268 | 258 |
private final JButton btnUpdate; |
269 | 259 |
private final JButton btnRemove; |
260 |
private final JButton btnRemoveAll; |
|
270 | 261 |
|
271 | 262 |
public AvailableValuesController( |
272 |
JComboBox cblValues,
|
|
263 |
JList lstValues,
|
|
273 | 264 |
JTextComponent txtLabel, |
274 | 265 |
JTextComponent txtValue, |
275 | 266 |
JButton btnAdd, |
276 | 267 |
JButton btnUpdate, |
277 |
JButton btnRemove |
|
268 |
JButton btnRemove, |
|
269 |
JButton btnRemoveAll |
|
278 | 270 |
) { |
279 |
this.cboValues = cblValues;
|
|
271 |
this.lstValues = lstValues;
|
|
280 | 272 |
this.txtLabel = txtLabel; |
281 | 273 |
this.txtValue = txtValue; |
282 | 274 |
this.btnAdd = btnAdd; |
283 | 275 |
this.btnUpdate = btnUpdate; |
284 | 276 |
this.btnRemove = btnRemove; |
277 |
this.btnRemoveAll = btnRemoveAll; |
|
285 | 278 |
|
286 |
this.cboValues.addItemListener(new ItemListener() { |
|
287 |
@Override |
|
288 |
public void itemStateChanged(ItemEvent e) { |
|
289 |
doValuesChanged(); |
|
290 |
} |
|
279 |
this.lstValues.addListSelectionListener((ListSelectionEvent e) -> { |
|
280 |
doValuesChanged(); |
|
291 | 281 |
}); |
292 |
this.btnAdd.addActionListener(new ActionListener() { |
|
293 |
@Override |
|
294 |
public void actionPerformed(ActionEvent e) { |
|
295 |
doAdd(); |
|
296 |
} |
|
282 |
this.btnAdd.addActionListener((ActionEvent e) -> { |
|
283 |
doAdd(); |
|
297 | 284 |
}); |
298 |
this.btnUpdate.addActionListener(new ActionListener() { |
|
299 |
@Override |
|
300 |
public void actionPerformed(ActionEvent e) { |
|
301 |
doUpdate(); |
|
302 |
} |
|
285 |
this.btnUpdate.addActionListener((ActionEvent e) -> { |
|
286 |
doUpdate(); |
|
303 | 287 |
}); |
304 |
this.btnRemove.addActionListener(new ActionListener() { |
|
305 |
@Override |
|
306 |
public void actionPerformed(ActionEvent e) { |
|
307 |
doRemove(); |
|
308 |
} |
|
288 |
this.btnRemove.addActionListener((ActionEvent e) -> { |
|
289 |
doRemove(); |
|
309 | 290 |
}); |
291 |
this.btnRemoveAll.addActionListener((ActionEvent e) -> { |
|
292 |
doRemoveAll(); |
|
293 |
}); |
|
310 | 294 |
} |
311 | 295 |
|
312 | 296 |
public void clean() { |
313 |
this.cboValues.setModel(new DefaultComboBoxModel());
|
|
297 |
this.lstValues.setModel(new DefaultListModel());
|
|
314 | 298 |
this.txtLabel.setText(""); |
315 | 299 |
this.txtValue.setText(""); |
316 |
this.cboValues.setSelectedIndex(-1);
|
|
300 |
this.lstValues.setSelectedIndex(-1);
|
|
317 | 301 |
} |
318 | 302 |
|
319 | 303 |
public DynObjectValueItem[] get() { |
320 |
ComboBoxModel<DynObjectValueItem> model = this.cboValues.getModel(); |
|
304 |
ListModel<DynObjectValueItem> model = this.lstValues.getModel(); |
|
305 |
if( model.getSize()==0 ) { |
|
306 |
return null; |
|
307 |
} |
|
321 | 308 |
DynObjectValueItem[] values = new DynObjectValueItem[model.getSize()]; |
322 | 309 |
for (int i = 0; i < model.getSize(); i++) { |
323 | 310 |
values[i] = model.getElementAt(i); |
... | ... | |
326 | 313 |
} |
327 | 314 |
|
328 | 315 |
public void set(DynObjectValueItem[] availableValues) { |
329 |
DefaultComboBoxModel model = new DefaultComboBoxModel();
|
|
316 |
DefaultListModel model = new DefaultListModel();
|
|
330 | 317 |
if (availableValues != null) { |
331 | 318 |
for (DynObjectValueItem availableValue : availableValues) { |
332 | 319 |
model.addElement(availableValue); |
333 | 320 |
} |
334 | 321 |
} |
335 |
this.cboValues.setModel(model);
|
|
322 |
this.lstValues.setModel(model);
|
|
336 | 323 |
if (model.getSize() > 0) { |
337 |
this.cboValues.setSelectedIndex(0);
|
|
324 |
this.lstValues.setSelectedIndex(0);
|
|
338 | 325 |
} else { |
339 |
this.cboValues.setSelectedIndex(-1);
|
|
326 |
this.lstValues.setSelectedIndex(-1);
|
|
340 | 327 |
} |
341 | 328 |
} |
342 | 329 |
|
343 | 330 |
public void setEditable(boolean editable) { |
344 |
this.cboValues.setEnabled(editable);
|
|
331 |
this.lstValues.setEnabled(editable);
|
|
345 | 332 |
this.txtLabel.setEditable(editable); |
346 | 333 |
this.txtValue.setEditable(editable); |
347 | 334 |
this.btnAdd.setEnabled(editable); |
348 | 335 |
this.btnUpdate.setEnabled(editable); |
349 | 336 |
this.btnRemove.setEnabled(editable); |
337 |
this.btnRemoveAll.setEnabled(editable); |
|
350 | 338 |
} |
351 | 339 |
|
352 | 340 |
private void doValuesChanged() { |
353 |
DynObjectValueItem value = (DynObjectValueItem) this.cboValues.getSelectedItem();
|
|
341 |
DynObjectValueItem value = (DynObjectValueItem) this.lstValues.getSelectedValue();
|
|
354 | 342 |
if (value == null) { |
355 | 343 |
this.txtLabel.setText(""); |
356 | 344 |
this.txtValue.setText(""); |
... | ... | |
368 | 356 |
|
369 | 357 |
private void doAdd() { |
370 | 358 |
DynObjectValueItem value = new DynObjectValueItem("Value", "Label"); |
371 |
DefaultComboBoxModel model = (DefaultComboBoxModel) this.cboValues.getModel();
|
|
359 |
DefaultListModel model = (DefaultListModel) this.lstValues.getModel();
|
|
372 | 360 |
model.addElement(value); |
373 |
this.cboValues.setSelectedIndex(model.getSize() - 1);
|
|
361 |
this.lstValues.setSelectedIndex(model.getSize() - 1);
|
|
374 | 362 |
} |
375 | 363 |
|
376 | 364 |
private void doUpdate() { |
377 |
DynObjectValueItem value = (DynObjectValueItem) this.cboValues.getSelectedItem();
|
|
365 |
DynObjectValueItem value = (DynObjectValueItem) this.lstValues.getSelectedValue();
|
|
378 | 366 |
if (value == null) { |
379 | 367 |
return; // EEhh?? esto no deberia pasar |
380 | 368 |
} |
... | ... | |
383 | 371 |
} |
384 | 372 |
|
385 | 373 |
private void doRemove() { |
386 |
int n = this.cboValues.getSelectedIndex();
|
|
374 |
int n = this.lstValues.getSelectedIndex();
|
|
387 | 375 |
if (n < 0) { |
388 | 376 |
return; // EEhh?? esto no deberia pasar |
389 | 377 |
} |
390 |
DefaultComboBoxModel model = (DefaultComboBoxModel) this.cboValues.getModel();
|
|
378 |
DefaultListModel model = (DefaultListModel) this.lstValues.getModel();
|
|
391 | 379 |
model.removeElementAt(n); |
392 | 380 |
if (--n < 0) { |
393 | 381 |
n = 0; |
394 | 382 |
} |
395 |
this.cboValues.setSelectedIndex(n);
|
|
383 |
this.lstValues.setSelectedIndex(n);
|
|
396 | 384 |
} |
397 | 385 |
|
386 |
private void doRemoveAll() { |
|
387 |
DefaultListModel model = new DefaultListModel(); |
|
388 |
this.lstValues.setModel(model); |
|
389 |
this.lstValues.setSelectedIndex(-1); |
|
390 |
} |
|
391 |
|
|
398 | 392 |
} |
399 | 393 |
|
400 | 394 |
private final List<ListElement<Integer>> fieldTypes; |
... | ... | |
424 | 418 |
for (DataType dataType : dataManager) { |
425 | 419 |
fieldTypes.add( new ListElement<>(dataType.getName(), dataType.getType()) ); |
426 | 420 |
} |
427 |
fieldTypes.sort(new Comparator<ListElement<Integer>>() { |
|
428 |
@Override |
|
429 |
public int compare(ListElement<Integer> o1, ListElement<Integer> o2) { |
|
430 |
return o1.toString().compareTo(o2.toString()); |
|
431 |
} |
|
432 |
}); |
|
421 |
fieldTypes.sort((ListElement<Integer> o1, ListElement<Integer> o2) -> |
|
422 |
o1.toString().compareTo(o2.toString()) |
|
423 |
); |
|
433 | 424 |
|
434 | 425 |
this.geometryTypes = new ArrayList<>(); |
435 | 426 |
this.geometryTypes.add(new ListElement("Point", Geometry.TYPES.POINT)); |
... | ... | |
438 | 429 |
this.geometryTypes.add(new ListElement("MultiPoint", Geometry.TYPES.MULTIPOINT)); |
439 | 430 |
this.geometryTypes.add(new ListElement("MultiLine", Geometry.TYPES.MULTILINE)); |
440 | 431 |
this.geometryTypes.add(new ListElement("MultiPolygon", Geometry.TYPES.MULTIPOLYGON)); |
441 |
this.geometryTypes.sort(new Comparator<ListElement<Integer>>() { |
|
442 |
@Override |
|
443 |
public int compare(ListElement<Integer> o1, ListElement<Integer> o2) { |
|
444 |
return o1.toString().compareTo(o2.toString()); |
|
445 |
} |
|
446 |
}); |
|
432 |
this.geometryTypes.sort((ListElement<Integer> o1, ListElement<Integer> o2) -> |
|
433 |
o1.toString().compareTo(o2.toString()) |
|
434 |
); |
|
447 | 435 |
|
448 | 436 |
this.geometrySubtypes = new ArrayList<>(); |
449 | 437 |
this.geometrySubtypes.add(new ListElement("2D", Geometry.SUBTYPES.GEOM2D)); |
450 | 438 |
this.geometrySubtypes.add(new ListElement("2DM", Geometry.SUBTYPES.GEOM3D)); |
451 | 439 |
this.geometrySubtypes.add(new ListElement("3D", Geometry.SUBTYPES.GEOM2DM)); |
452 | 440 |
this.geometrySubtypes.add(new ListElement("3DM", Geometry.SUBTYPES.GEOM3DM)); |
453 |
this.geometrySubtypes.sort(new Comparator<ListElement<Integer>>() { |
|
454 |
@Override |
|
455 |
public int compare(ListElement<Integer> o1, ListElement<Integer> o2) { |
|
456 |
return o1.toString().compareTo(o2.toString()); |
|
457 |
} |
|
458 |
}); |
|
441 |
this.geometrySubtypes.sort((ListElement<Integer> o1, ListElement<Integer> o2) -> |
|
442 |
o1.toString().compareTo(o2.toString()) |
|
443 |
); |
|
459 | 444 |
|
460 | 445 |
this.initComponents(); |
461 | 446 |
} |
... | ... | |
517 | 502 |
swingManager.translate(this.btnAvailableValuesAdd); |
518 | 503 |
swingManager.translate(this.btnAvailableValuesUpdate); |
519 | 504 |
swingManager.translate(this.btnAvailableValuesRemove); |
505 |
swingManager.translate(this.btnAvailableValuesRemoveAll); |
|
520 | 506 |
swingManager.translate(this.lblTagsName); |
521 | 507 |
swingManager.translate(this.lblTagsValue); |
522 | 508 |
|
... | ... | |
597 | 583 |
); |
598 | 584 |
|
599 | 585 |
this.availableValuesController = new AvailableValuesController( |
600 |
cboAvailableValues,
|
|
586 |
lstAvailableValues,
|
|
601 | 587 |
txtAvailableValuesLabel, |
602 | 588 |
txtAvailableValuesValue, |
603 | 589 |
btnAvailableValuesAdd, |
604 | 590 |
btnAvailableValuesUpdate, |
605 |
btnAvailableValuesRemove |
|
591 |
btnAvailableValuesRemove, |
|
592 |
btnAvailableValuesRemoveAll |
|
606 | 593 |
); |
607 | 594 |
this.tagsController = new TagsController( |
608 | 595 |
tblTags, |
... | ... | |
621 | 608 |
this.pickerVirtualField = ExpressionEvaluatorSwingLocator.getManager() |
622 | 609 |
.createExpressionPickerController(txtVirtualField, btnVirtualField); |
623 | 610 |
this.pickerVirtualField.addElement(this.featureStoreElement); |
624 |
this.chkVirtualField.addChangeListener(new ChangeListener() { |
|
625 |
@Override |
|
626 |
public void stateChanged(ChangeEvent e) { |
|
627 |
if (chkVirtualField.isSelected()) { |
|
628 |
pickerVirtualField.setEditable(mode==MODE_EDIT_ALL || mode==MODE_EDIT_ONLY_METADATA); |
|
629 |
} else { |
|
630 |
pickerVirtualField.setEditable(false); |
|
631 |
} |
|
632 |
} |
|
611 |
this.chkVirtualField.addChangeListener((ChangeEvent e) -> { |
|
612 |
if (chkVirtualField.isSelected()) { |
|
613 |
pickerVirtualField.setEditable(mode==MODE_EDIT_ALL || mode==MODE_EDIT_ONLY_METADATA); |
|
614 |
} else { |
|
615 |
pickerVirtualField.setEditable(false); |
|
616 |
} |
|
633 | 617 |
}); |
634 | 618 |
|
635 | 619 |
this.pickerCRS = dataSwingManager.createProjectionPickerController( |
636 | 620 |
this.txtCRS, this.btnCRS |
637 | 621 |
); |
638 | 622 |
|
639 |
this.cboFieldType.addItemListener(new ItemListener() { |
|
640 |
@Override |
|
641 |
public void itemStateChanged(ItemEvent e) { |
|
642 |
SwingUtilities.invokeLater(new Runnable() { |
|
643 |
@Override |
|
644 |
public void run() { |
|
645 |
doFieldTypeChanged(); |
|
646 |
} |
|
647 |
}); |
|
648 |
|
|
649 |
} |
|
623 |
this.cboFieldType.addItemListener((ItemEvent e) -> { |
|
624 |
SwingUtilities.invokeLater(() -> { |
|
625 |
doFieldTypeChanged(); |
|
626 |
}); |
|
650 | 627 |
}); |
651 | 628 |
|
652 |
this.pickerPrecision.addChangeListener(new ChangeListener() { |
|
653 |
@Override |
|
654 |
public void stateChanged(ChangeEvent e) { |
|
655 |
doCheckPrecisionAndScale(); |
|
656 |
} |
|
629 |
this.pickerPrecision.addChangeListener((ChangeEvent e) -> { |
|
630 |
doCheckPrecisionAndScale(); |
|
657 | 631 |
}); |
658 |
this.pickerScale.addChangeListener(new ChangeListener() { |
|
659 |
@Override |
|
660 |
public void stateChanged(ChangeEvent e) { |
|
661 |
doCheckPrecisionAndScale(); |
|
662 |
} |
|
632 |
this.pickerScale.addChangeListener((ChangeEvent e) -> { |
|
633 |
doCheckPrecisionAndScale(); |
|
663 | 634 |
}); |
664 | 635 |
|
665 | 636 |
DefaultComboBoxModel dataProfilesModel = new DefaultComboBoxModel<>(); |
... | ... | |
970 | 941 |
} |
971 | 942 |
this.txtMinValue.setText(Objects.toString(descriptor.getMinValue(), "")); |
972 | 943 |
this.txtMinValue.setText(Objects.toString(descriptor.getMaxValue(), "")); |
973 |
this.availableValuesController.set(descriptor.getAvailableValues()); |
|
944 |
if( descriptor.hasConstantAvailableValues() ) { |
|
945 |
this.availableValuesController.set(descriptor.getAvailableValues()); |
|
946 |
} else { |
|
947 |
this.availableValuesController.clean(); |
|
948 |
} |
|
974 | 949 |
this.tagsController.set(descriptor.getTags()); |
975 | 950 |
|
976 | 951 |
this.foreingKeyController.put(descriptor.getForeingKey()); |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featuretype/DefaultFeatureAttributePanelView.xml | ||
---|---|---|
24 | 24 |
</at> |
25 | 25 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
26 | 26 |
</super> |
27 |
<at name="id">/home/jjdelcerro/datos/devel/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featuretype/FeatureTypeAttributePanelView.xml</at> |
|
27 |
<at name="id">/home/jjdelcerro/datos/devel/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featuretype/DefaultFeatureAttributePanelView.xml</at> |
|
28 |
<at name="path">src/main/java/org/gvsig/fmap/dal/swing/impl/featuretype/DefaultFeatureAttributePanelView.xml</at> |
|
28 | 29 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:NONE,CENTER:2DLU:NONE</at> |
29 | 30 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE</at> |
30 | 31 |
<at name="components"> |
... | ... | |
134 | 135 |
</object> |
135 | 136 |
</at> |
136 | 137 |
<at name="name">txtFieldName</at> |
137 |
<at name="width">762</at>
|
|
138 |
<at name="width">908</at>
|
|
138 | 139 |
<at name="height">20</at> |
139 | 140 |
</object> |
140 | 141 |
</at> |
... | ... | |
248 | 249 |
</object> |
249 | 250 |
</at> |
250 | 251 |
<at name="name">cboFieldType</at> |
251 |
<at name="width">762</at>
|
|
252 |
<at name="width">908</at>
|
|
252 | 253 |
<at name="items"> |
253 | 254 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
254 | 255 |
<at name="name">items</at> |
... | ... | |
341 | 342 |
</at> |
342 | 343 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
343 | 344 |
</super> |
344 |
<at name="id">embedded.62860725</at>
|
|
345 |
<at name="id">embedded.1365668982</at>
|
|
345 | 346 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE</at> |
346 | 347 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE</at> |
347 | 348 |
<at name="components"> |
... | ... | |
451 | 452 |
</object> |
452 | 453 |
</at> |
453 | 454 |
<at name="name">txtSize</at> |
454 |
<at name="width">696</at>
|
|
455 |
<at name="width">842</at>
|
|
455 | 456 |
<at name="height">20</at> |
456 | 457 |
</object> |
457 | 458 |
</at> |
... | ... | |
625 | 626 |
</object> |
626 | 627 |
</at> |
627 | 628 |
<at name="name">txtPrecision</at> |
628 |
<at name="width">696</at>
|
|
629 |
<at name="width">842</at>
|
|
629 | 630 |
<at name="height">20</at> |
630 | 631 |
</object> |
631 | 632 |
</at> |
... | ... | |
679 | 680 |
</object> |
680 | 681 |
</at> |
681 | 682 |
<at name="name">txtDefaultValue</at> |
682 |
<at name="width">696</at>
|
|
683 |
<at name="width">842</at>
|
|
683 | 684 |
<at name="height">20</at> |
684 | 685 |
</object> |
685 | 686 |
</at> |
... | ... | |
793 | 794 |
</object> |
794 | 795 |
</at> |
795 | 796 |
<at name="name">cboDataProfile</at> |
796 |
<at name="width">696</at>
|
|
797 |
<at name="width">842</at>
|
|
797 | 798 |
<at name="items"> |
798 | 799 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
799 | 800 |
<at name="name">items</at> |
... | ... | |
880 | 881 |
</at> |
881 | 882 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
882 | 883 |
</super> |
883 |
<at name="id">embedded.258498394</at>
|
|
884 |
<at name="id">embedded.887705616</at>
|
|
884 | 885 |
<at name="rowspecs">CENTER:DEFAULT:NONE</at> |
885 | 886 |
<at name="colspecs">FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE</at> |
886 | 887 |
<at name="components"> |
... | ... | |
990 | 991 |
</object> |
991 | 992 |
</at> |
992 | 993 |
<at name="name">txtVirtualField</at> |
993 |
<at name="width">664</at>
|
|
994 |
<at name="width">810</at>
|
|
994 | 995 |
<at name="height">20</at> |
995 | 996 |
</object> |
996 | 997 |
</at> |
... | ... | |
1186 | 1187 |
</object> |
1187 | 1188 |
</at> |
1188 | 1189 |
<at name="name">txtScale</at> |
1189 |
<at name="width">696</at>
|
|
1190 |
<at name="width">842</at>
|
|
1190 | 1191 |
<at name="height">20</at> |
1191 | 1192 |
</object> |
1192 | 1193 |
</at> |
... | ... | |
1212 | 1213 |
</at> |
1213 | 1214 |
</object> |
1214 | 1215 |
</at> |
1215 |
<at name="name"></at>
|
|
1216 |
<at name="name"/>
|
|
1216 | 1217 |
<at name="fill"> |
1217 | 1218 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
1218 | 1219 |
<at name="name">fill</at> |
... | ... | |
1340 | 1341 |
</at> |
1341 | 1342 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
1342 | 1343 |
</super> |
1343 |
<at name="id">embedded.916491033</at>
|
|
1344 |
<at name="id">embedded.687322088</at>
|
|
1344 | 1345 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE</at> |
1345 | 1346 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE</at> |
1346 | 1347 |
<at name="components"> |
... | ... | |
1570 | 1571 |
</object> |
1571 | 1572 |
</at> |
1572 | 1573 |
<at name="name">cboGeometryType</at> |
1573 |
<at name="width">674</at>
|
|
1574 |
<at name="width">820</at>
|
|
1574 | 1575 |
<at name="items"> |
1575 | 1576 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
1576 | 1577 |
<at name="name">items</at> |
... | ... | |
1629 | 1630 |
</object> |
1630 | 1631 |
</at> |
1631 | 1632 |
<at name="name">cboGeometrySubtype</at> |
1632 |
<at name="width">674</at>
|
|
1633 |
<at name="width">820</at>
|
|
1633 | 1634 |
<at name="items"> |
1634 | 1635 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
1635 | 1636 |
<at name="name">items</at> |
... | ... | |
1660 | 1661 |
</at> |
1661 | 1662 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
1662 | 1663 |
</super> |
1663 |
<at name="id">embedded.459678845</at>
|
|
1664 |
<at name="id">embedded.1613674854</at>
|
|
1664 | 1665 |
<at name="rowspecs">CENTER:DEFAULT:NONE</at> |
1665 | 1666 |
<at name="colspecs">FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE</at> |
1666 | 1667 |
<at name="components"> |
... | ... | |
1770 | 1771 |
</object> |
1771 | 1772 |
</at> |
1772 | 1773 |
<at name="name">txtCRS</at> |
1773 |
<at name="width">642</at>
|
|
1774 |
<at name="width">788</at>
|
|
1774 | 1775 |
<at name="height">20</at> |
1775 | 1776 |
</object> |
1776 | 1777 |
</at> |
... | ... | |
1991 | 1992 |
</at> |
1992 | 1993 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
1993 | 1994 |
</super> |
1994 |
<at name="id">embedded.614718678</at>
|
|
1995 |
<at name="id">embedded.1279426265</at>
|
|
1995 | 1996 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE</at> |
1996 | 1997 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE</at> |
1997 | 1998 |
<at name="components"> |
... | ... | |
2104 | 2105 |
<at name="editable">true</at> |
2105 | 2106 |
<at name="requestFocusEnabled">false</at> |
2106 | 2107 |
<at name="name">cboDateFormat</at> |
2107 |
<at name="width">711</at>
|
|
2108 |
<at name="width">857</at>
|
|
2108 | 2109 |
<at name="items"> |
2109 | 2110 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
2110 | 2111 |
<at name="name">items</at> |
... | ... | |
2195 | 2196 |
</at> |
2196 | 2197 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
2197 | 2198 |
</super> |
2198 |
<at name="id">embedded.1600991146</at>
|
|
2199 |
<at name="id">embedded.801045275</at>
|
|
2199 | 2200 |
<at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE</at> |
2200 | 2201 |
<at name="colspecs">FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE</at> |
2201 | 2202 |
<at name="components"> |
... | ... | |
2365 | 2366 |
</object> |
2366 | 2367 |
</at> |
2367 | 2368 |
<at name="name">txtIntervalStart</at> |
2368 |
<at name="width">634</at>
|
|
2369 |
<at name="width">780</at>
|
|
2369 | 2370 |
<at name="height">20</at> |
2370 | 2371 |
</object> |
2371 | 2372 |
</at> |
... | ... | |
2539 | 2540 |
</object> |
2540 | 2541 |
</at> |
2541 | 2542 |
<at name="name">txtIntervalEnd</at> |
2542 |
<at name="width">634</at>
|
|
2543 |
<at name="width">780</at>
|
|
2543 | 2544 |
<at name="height">20</at> |
2544 | 2545 |
</object> |
2545 | 2546 |
</at> |
... | ... | |
2763 | 2764 |
</at> |
2764 | 2765 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
2765 | 2766 |
</super> |
2766 |
<at name="id">embedded.1700297535</at>
|
|
2767 |
<at name="id">embedded.433813708</at>
|
|
2767 | 2768 |
<at name="rowspecs">FILL:DEFAULT:GROW(1.0)</at> |
2768 | 2769 |
<at name="colspecs">FILL:DEFAULT:GROW(1.0)</at> |
2769 | 2770 |
<at name="components"> |
... | ... | |
2785 | 2786 |
</at> |
2786 | 2787 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
2787 | 2788 |
</super> |
2788 |
<at name="id">embedded.351533311</at>
|
|
2789 |
<at name="id">embedded.1654681924</at>
|
|
2789 | 2790 |
<at name="rowspecs">FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE</at> |
2790 | 2791 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE</at> |
2791 | 2792 |
<at name="components"> |
... | ... | |
2958 | 2959 |
<at name="editable">true</at> |
2959 | 2960 |
<at name="requestFocusEnabled">false</at> |
2960 | 2961 |
<at name="name">cboTagsName</at> |
2961 |
<at name="width">644</at>
|
|
2962 |
<at name="width">790</at>
|
|
2962 | 2963 |
<at name="items"> |
2963 | 2964 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
2964 | 2965 |
<at name="name">items</at> |
... | ... | |
3017 | 3018 |
</object> |
3018 | 3019 |
</at> |
3019 | 3020 |
<at name="name">tblTags</at> |
3020 |
<at name="width">692</at>
|
|
3021 |
<at name="width">838</at>
|
|
3021 | 3022 |
<at name="scollBars"> |
3022 | 3023 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
3023 | 3024 |
<at name="name">scollBars</at> |
... | ... | |
3098 | 3099 |
</object> |
3099 | 3100 |
</at> |
3100 | 3101 |
<at name="name">lblTagsDescription</at> |
3101 |
<at name="width">644</at>
|
|
3102 |
<at name="width">790</at>
|
|
3102 | 3103 |
<at name="fill"> |
3103 | 3104 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
3104 | 3105 |
<at name="name">fill</at> |
... | ... | |
3129 | 3130 |
</at> |
3130 | 3131 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
3131 | 3132 |
</super> |
3132 |
<at name="id">embedded.1919037274</at>
|
|
3133 |
<at name="id">embedded.112149022</at>
|
|
3133 | 3134 |
<at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE</at> |
3134 | 3135 |
<at name="colspecs">FILL:DEFAULT:NONE</at> |
3135 | 3136 |
<at name="components"> |
... | ... | |
3444 | 3445 |
<at name="editable">true</at> |
3445 | 3446 |
<at name="requestFocusEnabled">false</at> |
3446 | 3447 |
<at name="name">cboTagsValue</at> |
3447 |
<at name="width">644</at>
|
|
3448 |
<at name="width">790</at>
|
|
3448 | 3449 |
<at name="items"> |
3449 | 3450 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
3450 | 3451 |
<at name="name">items</at> |
... | ... | |
3667 | 3668 |
</at> |
3668 | 3669 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
3669 | 3670 |
</super> |
3670 |
<at name="id">embedded.1807325198</at>
|
|
3671 |
<at name="id">embedded.1329835184</at>
|
|
3671 | 3672 |
<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:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE</at> |
3672 | 3673 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE</at> |
3673 | 3674 |
<at name="components"> |
... | ... | |
3718 | 3719 |
</at> |
3719 | 3720 |
<at name="actionCommand">_is_foreing_key</at> |
3720 | 3721 |
<at name="name">chkIsForeingKey</at> |
3721 |
<at name="width">743</at>
|
|
3722 |
<at name="width">889</at>
|
|
3722 | 3723 |
<at name="text">_is_foreing_key</at> |
3723 | 3724 |
<at name="height">16</at> |
3724 | 3725 |
</object> |
... | ... | |
3956 | 3957 |
<at name="editable">true</at> |
3957 | 3958 |
<at name="requestFocusEnabled">false</at> |
3958 | 3959 |
<at name="name">cboForeingKeyTableName</at> |
3959 |
<at name="width">701</at>
|
|
3960 |
<at name="width">847</at>
|
|
3960 | 3961 |
<at name="items"> |
3961 | 3962 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
3962 | 3963 |
<at name="name">items</at> |
... | ... | |
4018 | 4019 |
<at name="editable">true</at> |
4019 | 4020 |
<at name="requestFocusEnabled">false</at> |
4020 | 4021 |
<at name="name">cboForeingKeyCodeName</at> |
4021 |
<at name="width">701</at>
|
|
4022 |
<at name="width">847</at>
|
|
4022 | 4023 |
<at name="items"> |
4023 | 4024 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
4024 | 4025 |
<at name="name">items</at> |
... | ... | |
4077 | 4078 |
</object> |
4078 | 4079 |
</at> |
4079 | 4080 |
<at name="name">txtForeingKeyFormula</at> |
4080 |
<at name="width">646</at>
|
|
4081 |
<at name="width">792</at>
|
|
4081 | 4082 |
<at name="height">20</at> |
4082 | 4083 |
</object> |
4083 | 4084 |
</at> |
... | ... | |
4247 | 4248 |
</object> |
4248 | 4249 |
</at> |
4249 | 4250 |
<at name="name">chkIsClosedList</at> |
4250 |
<at name="width">646</at>
|
|
4251 |
<at name="width">792</at>
|
|
4251 | 4252 |
<at name="height">15</at> |
4252 | 4253 |
</object> |
4253 | 4254 |
</at> |
... | ... | |
4398 | 4399 |
</at> |
4399 | 4400 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
4400 | 4401 |
</super> |
4401 |
<at name="id">embedded.2020396537</at>
|
|
4402 |
<at name="id">embedded.1731062180</at>
|
|
4402 | 4403 |
<at name="rowspecs">FILL:DEFAULT:GROW(1.0)</at> |
4403 | 4404 |
<at name="colspecs">FILL:DEFAULT:GROW(1.0)</at> |
4404 | 4405 |
<at name="components"> |
... | ... | |
4483 | 4484 |
</at> |
4484 | 4485 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
4485 | 4486 |
</super> |
4486 |
<at name="id">embedded.1633181583</at>
|
|
4487 |
<at name="id">embedded.825471361</at>
|
|
4487 | 4488 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(0.2)</at> |
4488 | 4489 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE</at> |
4489 | 4490 |
<at name="components"> |
... | ... | |
4656 | 4657 |
<at name="editable">true</at> |
4657 | 4658 |
<at name="requestFocusEnabled">false</at> |
4658 | 4659 |
<at name="name">cboGroup</at> |
4659 |
<at name="width">624</at>
|
|
4660 |
<at name="width">770</at>
|
|
4660 | 4661 |
<at name="items"> |
4661 | 4662 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
4662 | 4663 |
<at name="name">items</at> |
... | ... | |
4715 | 4716 |
</object> |
4716 | 4717 |
</at> |
4717 | 4718 |
<at name="name">txtOrder</at> |
4718 |
<at name="width">624</at>
|
|
4719 |
<at name="width">770</at>
|
|
4719 | 4720 |
<at name="height">20</at> |
4720 | 4721 |
</object> |
4721 | 4722 |
</at> |
... | ... | |
4829 | 4830 |
</object> |
4830 | 4831 |
</at> |
4831 | 4832 |
<at name="name">chkHidden</at> |
4832 |
<at name="width">624</at>
|
|
4833 |
<at name="width">770</at>
|
|
4833 | 4834 |
<at name="height">15</at> |
4834 | 4835 |
</object> |
4835 | 4836 |
</at> |
... | ... | |
4943 | 4944 |
</object> |
4944 | 4945 |
</at> |
4945 | 4946 |
<at name="name">txtLabel</at> |
4946 |
<at name="width">624</at>
|
|
4947 |
<at name="width">770</at>
|
|
4947 | 4948 |
<at name="height">20</at> |
4948 | 4949 |
</object> |
4949 | 4950 |
</at> |
... | ... | |
5060 | 5061 |
<at name="scrollableTracksViewportHeight">true</at> |
5061 | 5062 |
<at name="scrollableTracksViewportWidth">true</at> |
5062 | 5063 |
<at name="name">txtDescription</at> |
5063 |
<at name="width">622</at>
|
|
5064 |
<at name="width">768</at>
|
|
5064 | 5065 |
<at name="scollBars"> |
5065 | 5066 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
5066 | 5067 |
<at name="name">scollBars</at> |
... | ... | |
5088 | 5089 |
</at> |
5089 | 5090 |
</object> |
5090 | 5091 |
</at> |
5091 |
<at name="height">124</at>
|
|
5092 |
<at name="height">178</at>
|
|
5092 | 5093 |
</object> |
5093 | 5094 |
</at> |
5094 | 5095 |
</object> |
... | ... | |
5235 | 5236 |
</at> |
5236 | 5237 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
5237 | 5238 |
</super> |
5238 |
<at name="id">embedded.1714958103</at>
|
|
5239 |
<at name="id">embedded.531561865</at>
|
|
5239 | 5240 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE</at> |
5240 | 5241 |
<at name="colspecs">FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE</at> |
5241 | 5242 |
<at name="components"> |
... | ... | |
5345 | 5346 |
</object> |
5346 | 5347 |
</at> |
5347 | 5348 |
<at name="name">txtMinValue</at> |
5348 |
<at name="width">598</at>
|
|
5349 |
<at name="width">744</at>
|
|
5349 | 5350 |
<at name="height">20</at> |
5350 | 5351 |
</object> |
5351 | 5352 |
</at> |
... | ... | |
5459 | 5460 |
</object> |
5460 | 5461 |
</at> |
5461 | 5462 |
<at name="name">txtMaxValue</at> |
5462 |
<at name="width">598</at>
|
|
5463 |
<at name="width">744</at>
|
|
5463 | 5464 |
<at name="height">20</at> |
5464 | 5465 |
</object> |
5465 | 5466 |
</at> |
... | ... | |
5513 | 5514 |
</object> |
5514 | 5515 |
</at> |
5515 | 5516 |
<at name="name">lblAvailableValues</at> |
5516 |
<at name="width">705</at>
|
|
5517 |
<at name="width">851</at>
|
|
5517 | 5518 |
<at name="text">_List_of_values</at> |
5518 | 5519 |
<at name="fill"> |
5519 | 5520 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
... | ... | |
5545 | 5546 |
</at> |
5546 | 5547 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
5547 | 5548 |
</super> |
5548 |
<at name="id">embedded.1118087027</at>
|
|
5549 |
<at name="id">embedded.1307706723</at>
|
|
5549 | 5550 |
<at name="rowspecs">CENTER:DEFAULT:NONE</at> |
5550 | 5551 |
<at name="colspecs">FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE</at> |
5551 | 5552 |
<at name="components"> |
... | ... | |
5561 | 5562 |
<at name="colspan">1</at> |
5562 | 5563 |
<at name="rowspan">1</at> |
5563 | 5564 |
<at name="halign">default</at> |
5564 |
<at name="valign">default</at>
|
|
5565 |
<at name="valign">top</at>
|
|
5565 | 5566 |
<at name="insets" object="insets">0,0,0,0</at> |
5566 | 5567 |
</object> |
5567 | 5568 |
</at> |
5568 | 5569 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
5569 | 5570 |
</super> |
5570 |
<at name="id">embedded.125612514</at>
|
|
5571 |
<at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,FILL:2DLU:GROW(1.0)</at>
|
|
5571 |
<at name="id">embedded.1837116421</at>
|
|
5572 |
<at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,FILL:2DLU:NONE</at>
|
|
5572 | 5573 |
<at name="colspecs">FILL:DEFAULT:NONE</at> |
5573 | 5574 |
<at name="components"> |
5574 | 5575 |
<object classname="java.util.LinkedList"> |
... | ... | |
5618 | 5619 |
</at> |
5619 | 5620 |
<at name="actionCommand">_Add</at> |
5620 | 5621 |
<at name="name">btnAvailableValuesAdd</at> |
5621 |
<at name="width">83</at>
|
|
5622 |
<at name="width">102</at>
|
|
5622 | 5623 |
<at name="text">_Add</at> |
5623 | 5624 |
<at name="height">22</at> |
5624 | 5625 |
</object> |
... | ... | |
5674 | 5675 |
</at> |
5675 | 5676 |
<at name="actionCommand">_Update</at> |
5676 | 5677 |
<at name="name">btnAvailableValuesUpdate</at> |
5677 |
<at name="width">83</at>
|
|
5678 |
<at name="width">102</at>
|
|
5678 | 5679 |
<at name="text">_Update</at> |
5679 | 5680 |
<at name="height">22</at> |
5680 | 5681 |
</object> |
... | ... | |
5730 | 5731 |
</at> |
5731 | 5732 |
<at name="actionCommand">_Remove</at> |
5732 | 5733 |
<at name="name">btnAvailableValuesRemove</at> |
5733 |
<at name="width">83</at>
|
|
5734 |
<at name="width">102</at>
|
|
5734 | 5735 |
<at name="text">_Remove</at> |
5735 | 5736 |
<at name="height">22</at> |
5736 | 5737 |
</object> |
... | ... | |
5740 | 5741 |
</object> |
5741 | 5742 |
</at> |
5742 | 5743 |
</item> |
5744 |
<item > |
|
5745 |
<at name="value"> |
|
5746 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
5747 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
5748 |
<at name="cellconstraints"> |
|
5749 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
5750 |
<at name="column">1</at> |
|
5751 |
<at name="row">7</at> |
|
5752 |
<at name="colspan">1</at> |
|
5753 |
<at name="rowspan">1</at> |
|
5754 |
<at name="halign">default</at> |
|
5755 |
<at name="valign">default</at> |
|
5756 |
<at name="insets" object="insets">0,0,0,0</at> |
|
5757 |
</object> |
|
5758 |
</at> |
|
5759 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
5760 |
</super> |
|
5761 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
5762 |
<at name="beanclass">javax.swing.JButton</at> |
|
5763 |
<at name="beanproperties"> |
|
5764 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
5765 |
<at name="classname">javax.swing.JButton</at> |
|
5766 |
<at name="properties"> |
|
5767 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
5768 |
<at name="border"> |
|
5769 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
5770 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
5771 |
<at name="name">border</at> |
|
5772 |
</super> |
|
5773 |
<at name="borders"> |
|
5774 |
<object classname="java.util.LinkedList"> |
|
5775 |
<item > |
|
5776 |
<at name="value"> |
|
5777 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
5778 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
5779 |
<at name="name">border</at> |
|
5780 |
</super> |
|
5781 |
</object> |
|
5782 |
</at> |
|
5783 |
</item> |
|
5784 |
</object> |
|
5785 |
</at> |
|
5786 |
</object> |
|
5787 |
</at> |
|
5788 |
<at name="actionCommand">_Remove</at> |
|
5789 |
<at name="name">btnAvailableValuesRemoveAll</at> |
|
5790 |
<at name="width">102</at> |
|
5791 |
<at name="text">_Remove_all</at> |
|
5792 |
<at name="height">22</at> |
|
5793 |
</object> |
|
5794 |
</at> |
|
5795 |
</object> |
|
5796 |
</at> |
|
5797 |
</object> |
|
5798 |
</at> |
|
5799 |
</item> |
|
5743 | 5800 |
</object> |
5744 | 5801 |
</at> |
5745 | 5802 |
<at name="properties"> |
... | ... | |
5757 | 5814 |
</at> |
5758 | 5815 |
</object> |
5759 | 5816 |
</at> |
5760 |
<at name="name"/>
|
|
5817 |
<at name="name"></at>
|
|
5761 | 5818 |
<at name="fill"> |
5762 | 5819 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
5763 | 5820 |
<at name="name">fill</at> |
... | ... | |
5797 | 5854 |
<at name="cellpainters"> |
5798 | 5855 |
<object classname="com.jeta.forms.store.support.Matrix"> |
5799 | 5856 |
<at name="rows"> |
5800 |
<object classname="[Ljava.lang.Object;" size="6">
|
|
5857 |
<object classname="[Ljava.lang.Object;" size="8">
|
|
5801 | 5858 |
<at name="item" index="0"> |
5802 | 5859 |
<object classname="[Ljava.lang.Object;" size="1"/> |
5803 | 5860 |
</at> |
... | ... | |
5816 | 5873 |
<at name="item" index="5"> |
5817 | 5874 |
<object classname="[Ljava.lang.Object;" size="1"/> |
5818 | 5875 |
</at> |
5876 |
<at name="item" index="6"> |
|
5877 |
<object classname="[Ljava.lang.Object;" size="1"/> |
|
5878 |
</at> |
|
5879 |
<at name="item" index="7"> |
|
5880 |
<object classname="[Ljava.lang.Object;" size="1"/> |
|
5881 |
</at> |
|
5819 | 5882 |
</object> |
5820 | 5883 |
</at> |
5821 | 5884 |
</object> |
... | ... | |
5854 | 5917 |
</at> |
5855 | 5918 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
5856 | 5919 |
</super> |
5857 |
<at name="id">embedded.1906003713</at>
|
|
5858 |
<at name="rowspecs">CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE</at>
|
|
5920 |
<at name="id">embedded.1649194242</at>
|
|
5921 |
<at name="rowspecs">FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE</at>
|
|
5859 | 5922 |
<at name="colspecs">FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0)</at> |
5860 | 5923 |
<at name="components"> |
5861 | 5924 |
<object classname="java.util.LinkedList"> |
... | ... | |
5985 | 6048 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
5986 | 6049 |
<at name="cellconstraints"> |
5987 | 6050 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
5988 |
<at name="column">1</at>
|
|
5989 |
<at name="row">1</at>
|
|
5990 |
<at name="colspan">3</at>
|
|
6051 |
<at name="column">3</at>
|
|
6052 |
<at name="row">3</at>
|
|
6053 |
<at name="colspan">1</at>
|
|
5991 | 6054 |
<at name="rowspan">1</at> |
5992 | 6055 |
<at name="halign">default</at> |
5993 | 6056 |
<at name="valign">default</at> |
... | ... | |
5997 | 6060 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
5998 | 6061 |
</super> |
5999 | 6062 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
6000 |
<at name="beanclass">javax.swing.JComboBox</at>
|
|
6063 |
<at name="beanclass">javax.swing.JTextField</at>
|
|
6001 | 6064 |
<at name="beanproperties"> |
6002 | 6065 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
6003 |
<at name="classname">javax.swing.JComboBox</at>
|
|
6066 |
<at name="classname">javax.swing.JTextField</at>
|
|
6004 | 6067 |
<at name="properties"> |
6005 | 6068 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
6006 | 6069 |
<at name="border"> |
... | ... | |
6023 | 6086 |
</at> |
6024 | 6087 |
</object> |
6025 | 6088 |
</at> |
6026 |
<at name="name">cboAvailableValues</at> |
|
6027 |
<at name="width">596</at> |
|
6028 |
<at name="items"> |
|
6029 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
|
6030 |
<at name="name">items</at> |
|
6031 |
</object> |
|
6032 |
</at> |
|
6089 |
<at name="name">txtAvailableValuesLabel</at> |
|
6090 |
<at name="width">675</at> |
|
6033 | 6091 |
<at name="height">20</at> |
6034 | 6092 |
</object> |
6035 | 6093 |
</at> |
... | ... | |
6045 | 6103 |
<at name="cellconstraints"> |
6046 | 6104 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
6047 | 6105 |
<at name="column">3</at> |
6048 |
<at name="row">3</at>
|
|
6106 |
<at name="row">5</at>
|
|
6049 | 6107 |
<at name="colspan">1</at> |
6050 | 6108 |
<at name="rowspan">1</at> |
6051 | 6109 |
<at name="halign">default</at> |
... | ... | |
6082 | 6140 |
</at> |
6083 | 6141 |
</object> |
6084 | 6142 |
</at> |
6085 |
<at name="name">txtAvailableValuesLabel</at>
|
|
6086 |
<at name="width">548</at>
|
|
6143 |
<at name="name">txtAvailableValuesValue</at>
|
|
6144 |
<at name="width">675</at>
|
|
6087 | 6145 |
<at name="height">20</at> |
6088 | 6146 |
</object> |
6089 | 6147 |
</at> |
... | ... | |
6098 | 6156 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
6099 | 6157 |
<at name="cellconstraints"> |
6100 | 6158 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
6101 |
<at name="column">3</at>
|
|
6102 |
<at name="row">5</at>
|
|
6103 |
<at name="colspan">1</at>
|
|
6159 |
<at name="column">1</at>
|
|
6160 |
<at name="row">1</at>
|
|
6161 |
<at name="colspan">3</at>
|
|
6104 | 6162 |
<at name="rowspan">1</at> |
6105 | 6163 |
<at name="halign">default</at> |
6106 | 6164 |
<at name="valign">default</at> |
... | ... | |
6110 | 6168 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
6111 | 6169 |
</super> |
6112 | 6170 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
6113 |
<at name="beanclass">javax.swing.JTextField</at>
|
|
6171 |
<at name="beanclass">javax.swing.JList</at>
|
|
6114 | 6172 |
<at name="beanproperties"> |
6115 | 6173 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
6116 |
<at name="classname">javax.swing.JTextField</at>
|
|
6174 |
<at name="classname">javax.swing.JList</at>
|
|
6117 | 6175 |
<at name="properties"> |
6118 | 6176 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
6119 | 6177 |
<at name="border"> |
... | ... | |
6136 | 6194 |
</at> |
6137 | 6195 |
</object> |
6138 | 6196 |
</at> |
6139 |
<at name="name">txtAvailableValuesValue</at> |
|
6140 |
<at name="width">548</at> |
|
6141 |
<at name="height">20</at> |
|
6197 |
<at name="scrollableTracksViewportHeight">true</at> |
|
6198 |
<at name="scrollableTracksViewportWidth">true</at> |
|
6199 |
<at name="name">lstAvailableValues</at> |
|
6200 |
<at name="width">721</at> |
|
6201 |
<at name="items"> |
|
6202 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
|
6203 |
<at name="name">items</at> |
|
6204 |
</object> |
|
6205 |
</at> |
|
6206 |
<at name="scollBars"> |
|
6207 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
6208 |
<at name="name">scollBars</at> |
|
6209 |
<at name="verticalpolicy">20</at> |
|
6210 |
<at name="horizontalpolicy">30</at> |
|
6211 |
</object> |
|
6212 |
</at> |
|
6213 |
<at name="height">78</at> |
|
6142 | 6214 |
</object> |
6143 | 6215 |
</at> |
6144 | 6216 |
</object> |
... | ... | |
6431 | 6503 |
</at> |
6432 | 6504 |
</object> |
6433 | 6505 |
</at> |
6434 |
<at name="width">812</at>
|
|
6506 |
<at name="width">958</at>
|
|
6435 | 6507 |
<at name="tabCount">2</at> |
6436 |
<at name="height">287</at>
|
|
6508 |
<at name="height">341</at>
|
|
6437 | 6509 |
</object> |
6438 | 6510 |
</at> |
6439 | 6511 |
</object> |
... | ... | |
6529 | 6601 |
</at> |
6530 | 6602 |
</object> |
6531 | 6603 |
</at> |
6532 |
<at name="width">843</at>
|
|
6604 |
<at name="width">989</at>
|
|
6533 | 6605 |
<at name="tabCount">6</at> |
6534 |
<at name="height">363</at>
|
|
6606 |
<at name="height">417</at>
|
|
6535 | 6607 |
</object> |
6536 | 6608 |
</at> |
6537 | 6609 |
</object> |
... | ... | |
6556 | 6628 |
</at> |
6557 | 6629 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
6558 | 6630 |
</super> |
6559 |
<at name="id">embedded.372352468</at>
|
|
6631 |
<at name="id">embedded.1562975748</at>
|
|
6560 | 6632 |
<at name="rowspecs">CENTER:DEFAULT:NONE</at> |
6561 | 6633 |
<at name="colspecs">FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE</at> |
6562 | 6634 |
<at name="components"> |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featurequery/DefaultFeatureQueryGroupByPanel.java | ||
---|---|---|
5 | 5 |
import java.awt.Dimension; |
6 | 6 |
import java.net.URL; |
7 | 7 |
import javax.swing.DefaultComboBoxModel; |
8 |
import javax.swing.DefaultListModel; |
|
9 | 8 |
import javax.swing.ImageIcon; |
10 | 9 |
import javax.swing.JComponent; |
11 | 10 |
import javax.swing.JLabel; |
... | ... | |
32 | 31 |
import org.gvsig.tools.swing.api.ToolsSwingManager; |
33 | 32 |
import org.gvsig.tools.swing.icontheme.IconTheme; |
34 | 33 |
import org.gvsig.fmap.dal.swing.featurequery.FeatureQueryGroupByPanel; |
34 |
import org.gvsig.tools.swing.api.FilteredListModel; |
|
35 | 35 |
|
36 | 36 |
/** |
37 | 37 |
* |
... | ... | |
94 | 94 |
this.featureType = store.getDefaultFeatureType(); |
95 | 95 |
this.store = store; |
96 | 96 |
this.query = store.createFeatureQuery(); |
97 |
this.groupByPanel.setFeatureType(featureType); |
|
98 |
this.groupByPanel.setSelectedNames(query.getGroupByColumns()); |
|
97 | 99 |
this.updateControls(); |
98 | 100 |
} catch (DataException ex) { |
99 | 101 |
throw new RuntimeException("Can't assign store", ex); |
... | ... | |
157 | 159 |
} |
158 | 160 |
|
159 | 161 |
private void updateControls() { |
162 |
int indexAttributes = this.lstAttributes.getSelectedIndex(); |
|
160 | 163 |
if( this.cboAggretateFunctions.getModel().getSize() < 1 ) { |
161 | 164 |
DefaultComboBoxModel<String> model = new DefaultComboBoxModel<>(); |
162 | 165 |
model.addElement("<NULL>"); |
... | ... | |
177 | 180 |
this.cboAggretateFunctions.setSelectedIndex(0); |
178 | 181 |
this.txtCurrentAttributeName.setText(""); |
179 | 182 |
} |
180 |
this.groupByPanel.setFeatureType(featureType); |
|
181 |
this.groupByPanel.setSelectedNames(query.getGroupByColumns()); |
|
182 |
DefaultListModel<FeatureAttributeDescriptor> model = new DefaultListModel<>(); |
|
183 |
ToolsSwingManager toolsSwingManager = ToolsSwingLocator.getToolsSwingManager(); |
|
184 |
FilteredListModel model = toolsSwingManager.createFilteredListModel(); |
|
183 | 185 |
for (FeatureAttributeDescriptor attr : featureType) { |
184 | 186 |
model.addElement(attr); |
185 | 187 |
} |
188 |
model.setFilter(this.txtAttributesFilter.getText()); |
|
189 |
model.sort(true); |
|
186 | 190 |
this.lstAttributes.setModel(model); |
191 |
this.lstAttributes.setSelectedIndex(indexAttributes); |
|
187 | 192 |
this.txtCurrentAttributeName.setText(""); |
188 | 193 |
this.cboAggretateFunctions.setSelectedIndex(0); |
189 | 194 |
} |
... | ... | |
194 | 199 |
return this.query.getCopy(); |
195 | 200 |
} |
196 | 201 |
query.getGroupByColumns().clear(); |
197 |
query.getGroupByColumns().addAll(this.query.getGroupByColumns());
|
|
202 |
query.getGroupByColumns().addAll(this.groupByPanel.getSelectedNames());
|
|
198 | 203 |
query.getAggregateFunctions().clear(); |
199 | 204 |
query.getAggregateFunctions().putAll(this.query.getAggregateFunctions()); |
200 | 205 |
return query; |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featuretable/table/DynFieldFacadeOfAFeatureAttributeDescriptor.java | ||
---|---|---|
7 | 7 |
import java.util.List; |
8 | 8 |
import java.util.Locale; |
9 | 9 |
import java.util.Objects; |
10 |
import org.apache.commons.lang3.ArrayUtils; |
|
10 | 11 |
import org.apache.commons.lang3.StringUtils; |
11 | 12 |
import org.cresques.cts.IProjection; |
12 |
import org.gvsig.fmap.dal.DataTypes; |
|
13 | 13 |
import org.gvsig.fmap.dal.feature.DataProfile; |
14 | 14 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
15 | 15 |
import org.gvsig.fmap.dal.feature.FeatureAttributeEmulator; |
... | ... | |
290 | 290 |
} |
291 | 291 |
|
292 | 292 |
@Override |
293 |
public boolean hasConstantAvailableValues() { |
|
294 |
DynObjectValueItem[] values = this.field.getAvailableValues(); |
|
295 |
return ! ArrayUtils.isEmpty(values); |
|
296 |
} |
|
297 |
|
|
298 |
@Override |
|
293 | 299 |
public Object getMinValue() { |
294 | 300 |
return this.field.getMinValue(); |
295 | 301 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/test/java/org/gvsig/fmap/dal/feature/DummyFeatureAttributeDescriptor.java | ||
---|---|---|
252 | 252 |
} |
253 | 253 |
|
254 | 254 |
@Override |
255 |
public boolean hasConstantAvailableValues() { |
|
256 |
return false; |
|
257 |
} |
|
258 |
|
|
259 |
@Override |
|
255 | 260 |
public Object getMinValue() { |
256 | 261 |
return null; |
257 | 262 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/main/java/org/gvsig/fmap/dal/feature/FeatureAttributeDescriptor.java | ||
---|---|---|
380 | 380 |
* @return |
381 | 381 |
*/ |
382 | 382 |
public Object get(String name); |
383 |
|
|
383 |
|
|
384 |
public boolean hasConstantAvailableValues(); |
|
384 | 385 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/main/java/org/gvsig/fmap/dal/DataManager.java | ||
---|---|---|
536 | 536 |
*/ |
537 | 537 |
public String createUniqueID(); |
538 | 538 |
|
539 |
public void clearAvailableValuesCache(); |
|
540 |
|
|
541 |
|
|
539 | 542 |
} |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureAttributeDescriptor.java | ||
---|---|---|
876 | 876 |
} |
877 | 877 |
|
878 | 878 |
@Override |
879 |
public boolean hasConstantAvailableValues() { |
|
880 |
return this.availableValues != null; |
|
881 |
} |
|
882 |
|
|
883 |
@Override |
|
879 | 884 |
public DynObjectValueItem[] getAvailableValues() { |
880 | 885 |
if (this.availableValues == null) { |
881 | 886 |
if (this.isForeingKey() && this.foreingKey.isClosedList()) { |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/impl/DefaultDataManager.java | ||
---|---|---|
1152 | 1152 |
private Map<String,DynObjectValueItem[]> availableValues = null; |
1153 | 1153 |
|
1154 | 1154 |
@Override |
1155 |
public void clearAvailableValuesCache() { |
|
1156 |
this.availableValues = null; |
|
1157 |
} |
|
1158 |
|
|
1159 |
@Override |
|
1155 | 1160 |
public DynObjectValueItem[] getAvailableValues(FeatureStore myStore, FeatureAttributeDescriptor descriptor) { |
1156 | 1161 |
String keyName = myStore.getFullName() + ":columnName=" + descriptor.getName(); |
1157 | 1162 |
if( this.availableValues==null ) { |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/extension/TableEditAttributes.java | ||
---|---|---|
42 | 42 |
import org.gvsig.app.project.documents.table.TableManager; |
43 | 43 |
import org.gvsig.app.project.documents.table.gui.FeatureTableDocumentPanel; |
44 | 44 |
import org.gvsig.configurableactions.ConfigurableActionsMamager; |
45 |
import org.gvsig.fmap.dal.DALLocator; |
|
46 |
import org.gvsig.fmap.dal.DataManager; |
|
45 | 47 |
import org.gvsig.fmap.dal.DataStoreProviderFactory; |
46 | 48 |
import org.gvsig.fmap.dal.DataTypes; |
47 | 49 |
import org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor; |
... | ... | |
93 | 95 |
final I18nManager i18n = ToolsLocator.getI18nManager(); |
94 | 96 |
final WindowManager_v2 winManager = (WindowManager_v2) ToolsSwingLocator.getWindowManager(); |
95 | 97 |
final DataSwingManager dataSwingManager = DALSwingLocator.getSwingManager(); |
98 |
final DataManager dataMamager = DALLocator.getDataManager(); |
|
96 | 99 |
final ApplicationManager application = ApplicationLocator.getManager(); |
97 | 100 |
|
98 | 101 |
TableDocument tabledoc = (TableDocument) application.getActiveDocument(TableManager.TYPENAME); |
... | ... | |
130 | 133 |
null, |
131 | 134 |
WindowManager_v2.BUTTONS_OK_CANCEL |
132 | 135 |
); |
133 |
panel.addChangeListener(new ChangeListener() { |
|
134 |
@Override |
|
135 |
public void stateChanged(ChangeEvent e) { |
|
136 |
if (panel.isModifyingAField()) { |
|
137 |
dialog.setButtonEnabled(WindowManager_v2.BUTTON_OK, false); |
|
138 |
} else { |
|
139 |
dialog.setButtonEnabled(WindowManager_v2.BUTTON_OK, true); |
|
140 |
} |
|
141 |
} |
|
136 |
panel.addChangeListener((ChangeEvent e) -> { |
|
137 |
if (panel.isModifyingAField()) { |
|
138 |
dialog.setButtonEnabled(WindowManager_v2.BUTTON_OK, false); |
|
139 |
} else { |
|
140 |
dialog.setButtonEnabled(WindowManager_v2.BUTTON_OK, true); |
|
141 |
} |
|
142 | 142 |
}); |
143 |
dialog.addActionListener(new ActionListener() { |
|
144 |
@Override |
|
145 |
public void actionPerformed(ActionEvent e) { |
|
146 |
if (dialog.getAction() != WindowManager_v2.BUTTON_OK) { |
|
147 |
return; |
|
148 |
} |
|
149 |
try { |
|
150 |
panel.fetch(editableFeatureType); |
|
151 |
featureStore.update(editableFeatureType); |
|
152 |
} catch (Exception ex) { |
|
153 |
logger.warn("Problems updating featuretype.", ex); |
|
154 |
} |
|
155 |
} |
|
143 |
dialog.addActionListener((ActionEvent e) -> { |
|
144 |
if (dialog.getAction() != WindowManager_v2.BUTTON_OK) { |
|
145 |
return; |
|
146 |
} |
|
147 |
try { |
|
148 |
panel.fetch(editableFeatureType); |
|
149 |
featureStore.update(editableFeatureType); |
|
150 |
dataMamager.clearAvailableValuesCache(); |
|
151 |
} catch (Exception ex) { |
|
152 |
logger.warn("Problems updating featuretype.", ex); |
|
153 |
} |
|
156 | 154 |
}); |
157 | 155 |
dialog.show(WindowManager.MODE.WINDOW); |
158 | 156 |
} catch (Exception ex) { |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/resources-plugin/i18n/text.properties | ||
---|---|---|
1427 | 1427 |
_Order_by=Ordenar por... |
1428 | 1428 |
_Group_by=Agrupar por... |
1429 | 1429 |
_Calculated_columns=Columnas calculadas |
1430 |
_Remove_all=Eliminar todo |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties | ||
---|---|---|
1345 | 1345 |
_Databaseworkspace=Database workspace |
1346 | 1346 |
_Order_by=Order by... |
1347 | 1347 |
_Group_by=Group by... |
1348 |
_Calculated_columns=Calculated columns |
|
1348 |
_Calculated_columns=Calculated columns |
|
1349 |
_Remove_all=Remove all |
Also available in: Unified diff