2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.taxeditor
.editor
.name
.container
;
11 import org
.eclipse
.swt
.graphics
.Font
;
13 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
14 import eu
.etaxonomy
.taxeditor
.editor
.EditorUtil
;
15 import eu
.etaxonomy
.taxeditor
.preference
.Resources
;
18 * <p>AcceptedNameContainer class.</p>
24 public class AcceptedNameContainer
extends AbstractGroupedContainer
<Taxon
> {
26 private AcceptedGroup acceptedGroup
;
30 * <p>Constructor for AcceptedNameContainer.</p>
32 * @param editor a {@link eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor} object.
33 * @param group a {@link eu.etaxonomy.taxeditor.editor.name.container.AbstractGroup} object.
35 public AcceptedNameContainer(Taxon taxon
) {
41 * <p>initializeComposite</p>
43 public void initializeComposite(){
44 setFont(getViewerFont());
51 protected Font
getViewerFont() {
52 return EditorUtil
.getFont(Resources
.ACCEPTED_TAXON_FONT
);
56 * @see eu.etaxonomy.taxeditor.editor.name.AbstractGroupedContainer#setGroup(eu.etaxonomy.taxeditor.editor.name.AbstractGroup)
58 public void setGroup(AcceptedGroup group
) {
59 this.acceptedGroup
= group
;
63 * @see eu.etaxonomy.taxeditor.editor.name.AbstractGroupedContainer#getGroup()
66 public AbstractGroup
getGroup() {
72 protected void updateNonEditableInfo() {
78 protected void updateIcon() {
79 setIcon(ACCEPTED_ICON
);
84 * @see eu.etaxonomy.taxeditor.editor.name.AbstractGroupedContainer#updateIndent()
87 protected void updateIndent() {
88 setIndent(ACCEPTED_INDENT
);