Project

General

Profile

Download (1.31 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
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.
8
*/
9
package eu.etaxonomy.taxeditor.editor.name.e4.container;
10

    
11
import org.eclipse.swt.graphics.Font;
12

    
13
import eu.etaxonomy.cdm.model.taxon.Taxon;
14
import eu.etaxonomy.taxeditor.model.AbstractUtility;
15
import eu.etaxonomy.taxeditor.preference.Resources;
16

    
17
public class AcceptedNameContainerE4 extends AbstractGroupedContainerE4<Taxon> {
18

    
19
	private AcceptedGroupE4 acceptedGroup;
20

    
21
	public AcceptedNameContainerE4(Taxon taxon) {
22
		super(taxon);
23
	}
24

    
25
	@Override
26
    public void initializeComposite(){
27
		setFont(getViewerFont());
28

    
29
		initTextViewer();
30
	}
31

    
32
	/** {@inheritDoc} */
33
	@Override
34
	protected Font getViewerFont() {
35
		return AbstractUtility.getFont(Resources.ACCEPTED_TAXON_FONT);
36
	}
37

    
38
	public void setGroup(AcceptedGroupE4 group) {
39
		this.acceptedGroup = group;
40
	}
41

    
42
	@Override
43
	public AbstractGroupE4 getGroup() {
44
		return acceptedGroup;
45
	}
46

    
47
	/** {@inheritDoc} */
48
	@Override
49
	protected void updateNonEditableInfo() {
50
		// not needed
51
	}
52

    
53

    
54
	@Override
55
	protected void updateIcon() {
56
		setIcon(ACCEPTED_ICON);
57
	}
58

    
59
	@Override
60
	protected void updateIndent() {
61
		setIndent(ACCEPTED_INDENT);
62
	}
63

    
64
}
(5-5/10)