Project

General

Profile

Revision 18c8b6f9

ID18c8b6f9e252b86a0bd0b69ef4ad9b02d9d14f7f
Parent 57a2a42f
Child b527f05c

Added by Patrick Plitzner over 3 years ago

ref #7674 Change label and style for default description

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixLabelStyleConfiguration.java
44 44
                DisplayMode.NORMAL,
45 45
                CharacterMatrix.LABEL_TAXON_AGGREGATED_DESCRIPTION);
46 46

  
47
        Style taxonDefaultDescriptionStyle = new Style();
48
        taxonDefaultDescriptionStyle.setAttributeValue(
49
                CellStyleAttributes.BACKGROUND_COLOR,
50
                GUIHelper.getColor(211, 211, 211));
51
        configRegistry.registerConfigAttribute(
52
                CellConfigAttributes.CELL_STYLE,
53
                taxonDefaultDescriptionStyle,
54
                DisplayMode.NORMAL,
55
                CharacterMatrix.LABEL_TAXON_DESCRIPTION);
56

  
47 57
    }
48 58
}
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/SpecimenColumnPropertyAccessor.java
61 61
        } else if(rowObject instanceof TaxonRowWrapperDTO){
62 62
            TaxonRowWrapperDTO taxonWrapper = (TaxonRowWrapperDTO)rowObject;
63 63
            if(columnIndex==0){
64
                return taxonWrapper.getTaxonNode();
64
                return taxonWrapper.getDescription();
65 65
            }
66 66
            Feature feature = matrix.getIndexToFeatureMap().get(columnIndex);
67 67
            return taxonWrapper.getDataValueForFeature(feature);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)