Revision 44579
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 | ||
---|---|---|
1303 | 1303 |
return false; |
1304 | 1304 |
} |
1305 | 1305 |
|
1306 |
@Override |
|
1307 |
public boolean hasLabel() { |
|
1308 |
return StringUtils.isNotBlank(this.label); |
|
1309 |
} |
|
1310 |
|
|
1311 |
@Override |
|
1312 |
public boolean hasShortLabel() { |
|
1313 |
return StringUtils.isNotBlank(this.shortLabel); |
|
1314 |
} |
|
1315 |
|
|
1316 |
@Override |
|
1317 |
public boolean hasDescription() { |
|
1318 |
return StringUtils.isNotBlank(this.description); |
|
1319 |
} |
|
1320 |
|
|
1306 | 1321 |
private class ConstantValueEvaluator extends AbstractEvaluator { |
1307 | 1322 |
|
1308 | 1323 |
@Override |
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 | ||
---|---|---|
4 | 4 |
import java.text.DateFormat; |
5 | 5 |
import java.util.List; |
6 | 6 |
import java.util.Objects; |
7 |
import org.apache.commons.lang3.StringUtils; |
|
7 | 8 |
import org.cresques.cts.IProjection; |
8 | 9 |
import org.gvsig.fmap.dal.feature.DataProfile; |
9 | 10 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
... | ... | |
609 | 610 |
return false; |
610 | 611 |
} |
611 | 612 |
|
613 |
@Override |
|
614 |
public boolean hasLabel() { |
|
615 |
return StringUtils.isNotBlank(((DynField_v2) this.field).getLabel()); |
|
616 |
} |
|
617 |
|
|
618 |
@Override |
|
619 |
public boolean hasShortLabel() { |
|
620 |
return StringUtils.isNotBlank(((DynField_v2) this.field).getShortLabel()); |
|
621 |
} |
|
622 |
|
|
623 |
@Override |
|
624 |
public boolean hasDescription() { |
|
625 |
return StringUtils.isNotBlank(this.field.getDescription()); |
|
626 |
} |
|
627 |
|
|
612 | 628 |
} |
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 | ||
---|---|---|
578 | 578 |
public boolean hasOnlyMetadataChanges(FeatureAttributeDescriptor other) { |
579 | 579 |
return false; |
580 | 580 |
} |
581 |
|
|
582 |
@Override |
|
583 |
public boolean hasLabel() { |
|
584 |
return false; |
|
585 |
} |
|
586 |
|
|
587 |
@Override |
|
588 |
public boolean hasShortLabel() { |
|
589 |
return false; |
|
590 |
} |
|
591 |
|
|
592 |
@Override |
|
593 |
public boolean hasDescription() { |
|
594 |
return false; |
|
595 |
} |
|
581 | 596 |
|
582 | 597 |
} |
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 | ||
---|---|---|
273 | 273 |
|
274 | 274 |
public boolean hasOnlyMetadataChanges(FeatureAttributeDescriptor other); |
275 | 275 |
|
276 |
public boolean hasLabel(); |
|
277 |
|
|
278 |
public boolean hasShortLabel(); |
|
279 |
|
|
280 |
public boolean hasDescription(); |
|
281 |
|
|
276 | 282 |
} |
Also available in: Unified diff