Revision 45421
branches/org.gvsig.desktop-cvsgis1/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/featureform/swing/impl/DefaultJFeaturesForm.java | ||
---|---|---|
233 | 233 |
} |
234 | 234 |
@Override |
235 | 235 |
public void setPreferredSize(Dimension dimension) { |
236 |
// panel.setPreferredSize(dimension);
|
|
236 |
panel.setPreferredSize(dimension); |
|
237 | 237 |
} |
238 | 238 |
|
239 | 239 |
private void updateForm() { |
240 | 240 |
if (this.formset == null) { |
241 |
this.panel.add(this.getFormset().asJComponent(), BorderLayout.CENTER);
|
|
241 |
this.getFormset();
|
|
242 | 242 |
} |
243 | 243 |
try { |
244 | 244 |
if( this.currentQuery!=null ) { |
... | ... | |
286 | 286 |
this.definition = formManager.getDefinition(definition); |
287 | 287 |
if (formset != null) { |
288 | 288 |
this.panel.remove(formset.asJComponent()); |
289 |
this.panel.revalidate(); |
|
289 | 290 |
this.formset = null; |
290 | 291 |
} |
291 | 292 |
this.store = store; |
292 | 293 |
DisposeUtils.bind(store); |
293 |
this.features = null; |
|
294 |
if(features != null){ |
|
295 |
this.features = null; |
|
296 |
updateForm(); |
|
297 |
} |
|
294 | 298 |
} |
295 | 299 |
|
296 | 300 |
@Override |
... | ... | |
345 | 349 |
} |
346 | 350 |
|
347 | 351 |
this.formset.addListener(new FormSetListener()); |
352 |
ToolsSwingLocator.getToolsSwingManager().removeBorder(this.formset.asJComponent()); |
|
353 |
this.panel.add(this.formset.asJComponent(), BorderLayout.CENTER); |
|
354 |
this.panel.revalidate(); |
|
348 | 355 |
} |
349 | 356 |
updateButtonEnabledStatus(); |
350 | 357 |
return this.formset; |
... | ... | |
541 | 548 |
|
542 | 549 |
@Override |
543 | 550 |
public void showForm(MODE mode) { |
544 |
this.panel.add(this.getFormset().asJComponent(), BorderLayout.CENTER); |
|
545 | 551 |
WindowManager winmgr = ToolsSwingLocator.getWindowManager(); |
546 | 552 |
String title = this.definition.getLabel(); |
547 | 553 |
winmgr.showWindow(this.asJComponent(), title, mode); |
Also available in: Unified diff