Revision 793a7b67
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/taxon/TaxonNamePopupEditor.java | ||
---|---|---|
199 | 199 |
*/ |
200 | 200 |
private void updateFieldVisibility(Rank rank) { |
201 | 201 |
boolean isSpeciesOrBelow = !rank.isHigher(Rank.SPECIES()); |
202 |
// TODO use getField() instead and remove field references |
|
202 | 203 |
infraSpecificEpithetField.setVisible(rank.isInfraSpecific()); |
203 | 204 |
specificEpithetField.setVisible(isSpeciesOrBelow); |
204 | 205 |
infraGenericEpithetField.setVisible(rank.isInfraGenericButNotSpeciesGroup()); |
Also available in: Unified diff
ref #6169 ReferenceEditor: field visibility by ReferenceType & inReference field added