1 package eu
.etaxonomy
.taxeditor
.propertysheet
;
3 import java
.util
.Collection
;
5 import org
.apache
.log4j
.Logger
;
7 import eu
.etaxonomy
.cdm
.model
.common
.Annotation
;
9 public class AnnotationPropertySource
extends CollectionPropertySource
{
10 private static final Logger logger
= Logger
11 .getLogger(AnnotationPropertySource
.class);
13 public AnnotationPropertySource(Collection collection
) {
18 protected String
getItemDisplayName(Object item
) {
19 // No display names on individual annotations
24 public Object
getPropertyValue(Object id
) {
25 if (id
instanceof Annotation
) {
26 return ((Annotation
) id
).getText();
32 public void setPropertyValue(Object id
, Object value
) {
33 // Fields not editable in property sheet view
37 public String
toString() {
38 // "Annotations" header has no value