Revision 10608 trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/panels/WFSParamsPanel.java

View differences:

WFSParamsPanel.java
67 67
 *
68 68
 * $Id$
69 69
 * $Log$
70
 * Revision 1.37  2007-03-01 13:12:09  ppiqueras
70
 * Revision 1.38  2007-03-05 13:49:42  ppiqueras
71
 * Si una capa WFS no tiene campos (y por tanto no tiene un campo obligatorio de tipo geometr?a), que avise al usuario y no permita que se intente cargar dicha capa.
72
 *
73
 * Revision 1.37  2007/03/01 13:12:09  ppiqueras
71 74
 * Mejorado el filtrado por ?rea.
72 75
 *
73 76
 * Revision 1.36  2007/02/22 12:30:59  ppiqueras
......
447 450
	 * Selected feature
448 451
	 */
449 452
	public void refreshData(WFSLayerNode feature){
453
		boolean refreshed = false;
454
		
450 455
		if (feature != null){
451 456
			feature = (WFSLayerNode)data.getFeatureInfo(feature.getName(),feature.getNameSpace());
452
			jTabbedPane.setEnabledAt(indFields,true);
453
			jTabbedPane.setEnabledAt(indFilter,true);
454
			jTabbedPane.setEnabledAt(indArea,true);
455
			fieldsPanel.refresh(feature);
456
			optionsPanel.refresh(feature);
457
			filterPanel.refresh(feature);
457
			
458
			refreshed = filterPanel.refresh(feature);
459
		
460
			if (refreshed) {
461
				jTabbedPane.setEnabledAt(indFields,true);
462
				jTabbedPane.setEnabledAt(indFilter,true);
463
				jTabbedPane.setEnabledAt(indArea,true);
464
				fieldsPanel.refresh(feature);
465
				optionsPanel.refresh(feature);
466
			}
467
			else {
468
				featurePanel.unselectAllFeatures();
469
			}
458 470
		}
459
		listenerSupport.callStateChanged(isCorretlyConfigured());
471
		
472
		if (refreshed)
473
			listenerSupport.callStateChanged(isCorretlyConfigured());
460 474

  
461 475
	}
462 476

  
......
716 730
				this.advanceCurrentTab();
717 731
		}
718 732
	}
719
	
733

  
720 734
	/**
721 735
	 * Selects the next tab
722 736
	 */

Also available in: Unified diff