Revision 46060 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/SimpleFeaturesTableModelImpl.java
SimpleFeaturesTableModelImpl.java | ||
---|---|---|
35 | 35 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
36 | 36 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
37 | 37 |
import org.gvsig.fmap.dal.feature.FeatureType; |
38 |
import org.gvsig.fmap.dal.feature.ForeingKey; |
|
38 | 39 |
import org.gvsig.fmap.dal.feature.paging.FacadeOfAFeaturePagingHelper; |
39 | 40 |
import org.gvsig.tools.ToolsLocator; |
40 | 41 |
import org.gvsig.tools.dataTypes.Coercion; |
... | ... | |
434 | 435 |
Object value = null; |
435 | 436 |
value = feature.get(attrName); |
436 | 437 |
FeatureAttributeDescriptor attrdesc = this.featureType.getAttributeDescriptor(attrName); |
438 |
if(attrdesc == null && this.featureType.getExtraColumns().get(attrName)!=null) { |
|
439 |
attrdesc = this.featureType.getExtraColumns().get(attrName); |
|
440 |
} |
|
437 | 441 |
if (attrdesc != null) { |
438 | 442 |
if (value == null) { |
439 | 443 |
return null; |
440 | 444 |
} |
441 | 445 |
if (attrdesc.isForeingKey() && attrdesc.getForeingKey().isClosedList()) { |
442 | 446 |
value = attrdesc.getForeingKey().getLabelForValue(value); |
447 |
} |
|
443 | 448 |
} |
444 |
} |
|
445 | 449 |
return value; |
446 | 450 |
} catch (Throwable th) { |
447 | 451 |
this.errors = true; |
Also available in: Unified diff