Revision b66bc2e5
Added by Andreas Müller over 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/TeamDetailElement.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.taxeditor.ui.section.agent; |
11 | 10 |
|
12 | 11 |
import java.util.Arrays; |
... | ... | |
22 | 21 |
import eu.etaxonomy.taxeditor.ui.section.AbstractIdentifiableEntityDetailElement; |
23 | 22 |
|
24 | 23 |
/** |
25 |
* <p> |
|
26 | 24 |
* TeamDetailElement class. |
27 |
* </p> |
|
28 | 25 |
* |
29 | 26 |
* @author n.hoffmann |
30 | 27 |
* @created Apr 26, 2010 |
... | ... | |
39 | 36 |
private boolean isNomenclaturalTeam; |
40 | 37 |
|
41 | 38 |
/** |
42 |
* <p> |
|
43 | 39 |
* Constructor for TeamDetailElement. |
44 |
* </p> |
|
45 |
* |
|
46 |
* @param cdmFormFactory |
|
47 |
* a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} |
|
48 |
* object. |
|
49 |
* @param formElement |
|
50 |
* a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} |
|
51 |
* object. |
|
52 |
* @param style |
|
53 |
* a int. |
|
54 | 40 |
*/ |
55 | 41 |
public TeamDetailElement(CdmFormFactory cdmFormFactory, |
56 | 42 |
ICdmFormElement formElement, int style, boolean isNomenclatural) { |
... | ... | |
58 | 44 |
this.isNomenclaturalTeam = isNomenclatural; |
59 | 45 |
} |
60 | 46 |
|
61 |
/** {@inheritDoc} */ |
|
62 | 47 |
@Override |
63 | 48 |
protected void createControls(ICdmFormElement formElement, Team entity, int style) { |
64 | 49 |
|
... | ... | |
70 | 55 |
section_teamMembers.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
71 | 56 |
} |
72 | 57 |
|
73 |
/** {@inheritDoc} */ |
|
74 | 58 |
@Override |
75 | 59 |
protected void updateContent() { |
76 | 60 |
super.updateContent(); |
... | ... | |
93 | 77 |
} |
94 | 78 |
|
95 | 79 |
section_teamMembers.setEntity(getEntity()); |
96 |
|
|
97 | 80 |
} |
98 | 81 |
|
99 |
/** {@inheritDoc} */ |
|
100 | 82 |
@Override |
101 | 83 |
public void handleEvent(Object eventSource) { |
102 | 84 |
if (eventSource == toggleable_cache) { |
... | ... | |
132 | 114 |
} |
133 | 115 |
} |
134 | 116 |
|
135 |
/** |
|
136 |
* @return the isNomenclaturalTeam |
|
137 |
*/ |
|
138 | 117 |
public boolean isNomenclaturalTeam() { |
139 | 118 |
return isNomenclaturalTeam; |
140 | 119 |
} |
141 |
|
|
142 |
/** |
|
143 |
* @param isNomenclaturalTeam the isNomenclaturalTeam to set |
|
144 |
*/ |
|
145 | 120 |
public void setNomenclaturalTeam(boolean isNomenclaturalTeam) { |
146 | 121 |
this.isNomenclaturalTeam = isNomenclaturalTeam; |
147 | 122 |
} |
148 |
} |
|
123 |
} |
Also available in: Unified diff
cleanup