Revision ceee3276
Added by Katja Luther almost 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/TeamDetailElement.java | ||
---|---|---|
38 | 38 |
private CheckboxElement hasAdditionalMembers; |
39 | 39 |
|
40 | 40 |
private TeamMemberSection section_teamMembers; |
41 |
private final boolean isNomenclaturalTeam;
|
|
41 |
private boolean isNomenclaturalTeam; |
|
42 | 42 |
|
43 | 43 |
/** |
44 | 44 |
* <p> |
... | ... | |
75 | 75 |
@Override |
76 | 76 |
protected void updateContent() { |
77 | 77 |
super.updateContent(); |
78 |
|
|
79 |
toggleable_cache.setEnabled(getEntity().isProtectedTitleCache()); |
|
80 |
toggleable_nomenclaturalTitleCache.setEnabled(getEntity() |
|
78 |
if (toggleable_cache != null){ |
|
79 |
toggleable_cache.setEnabled(getEntity().isProtectedTitleCache()); |
|
80 |
} |
|
81 |
if (toggleable_nomenclaturalTitleCache != null){ |
|
82 |
toggleable_nomenclaturalTitleCache.setEnabled(getEntity() |
|
81 | 83 |
.isProtectedNomenclaturalTitleCache()); |
82 |
setIrrelevant( |
|
83 |
toggleable_cache.getState(), |
|
84 |
Arrays.asList(new Object[] { toggleable_cache, |
|
85 |
toggleable_nomenclaturalTitleCache , hasAdditionalMembers})); |
|
84 |
} |
|
85 |
if (toggleable_nomenclaturalTitleCache != null && toggleable_cache != null){ |
|
86 |
setIrrelevant( |
|
87 |
toggleable_cache.getState(), |
|
88 |
Arrays.asList(new Object[] { toggleable_cache, |
|
89 |
toggleable_nomenclaturalTitleCache , hasAdditionalMembers})); |
|
90 |
} else if (toggleable_cache != null){ |
|
91 |
setIrrelevant( |
|
92 |
toggleable_cache.getState(), |
|
93 |
Arrays.asList(new Object[] { toggleable_cache, hasAdditionalMembers})); |
|
94 |
} |
|
86 | 95 |
|
87 | 96 |
section_teamMembers.setEntity(getEntity()); |
88 | 97 |
|
... | ... | |
123 | 132 |
toggleable_nomenclaturalTitleCache.setText(getEntity().getNomenclaturalTitle()); |
124 | 133 |
} |
125 | 134 |
} |
135 |
|
|
136 |
/** |
|
137 |
* @return the isNomenclaturalTeam |
|
138 |
*/ |
|
139 |
public boolean isNomenclaturalTeam() { |
|
140 |
return isNomenclaturalTeam; |
|
141 |
} |
|
142 |
|
|
143 |
/** |
|
144 |
* @param isNomenclaturalTeam the isNomenclaturalTeam to set |
|
145 |
*/ |
|
146 |
public void setNomenclaturalTeam(boolean isNomenclaturalTeam) { |
|
147 |
this.isNomenclaturalTeam = isNomenclaturalTeam; |
|
148 |
} |
|
126 | 149 |
} |
Also available in: Unified diff
minor