Revision 4601cb73
Added by Katja Luther over 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/TaxonNodeDetailElement.java | ||
---|---|---|
76 | 76 |
|
77 | 77 |
private CheckboxElement checkbox_excluded; |
78 | 78 |
private CheckboxElement checkbox_publish; |
79 |
private CheckboxElement checkbox_placementDoubtful; |
|
79 | 80 |
|
80 | 81 |
|
81 | 82 |
|
... | ... | |
87 | 88 |
|
88 | 89 |
private boolean excluded = false; |
89 | 90 |
private boolean unplaced = false; |
91 |
private boolean placementDoubtful = false; |
|
90 | 92 |
|
91 | 93 |
private EntitySelectionElement<TaxonName> selection_reuseExistingName; |
92 | 94 |
|
... | ... | |
186 | 188 |
} |
187 | 189 |
parentTreeNode = entity.getParent(); |
188 | 190 |
|
189 |
if (entity instanceof TaxonNode ) { |
|
190 |
checkbox_publish = formFactory.createCheckbox(formElement, |
|
191 |
checkbox_placementDoubtful = formFactory.createCheckbox(formElement, |
|
192 |
"Placement is doubtful", entity.isDoubtful(), style); |
|
193 |
|
|
194 |
checkbox_publish = formFactory.createCheckbox(formElement, |
|
191 | 195 |
"Taxon is published", entity.getTaxon().isPublish(), style); |
192 |
}else{ |
|
193 |
checkbox_publish = formFactory.createCheckbox(formElement, |
|
194 |
"Taxon is published", true, style); |
|
195 |
} |
|
196 | 196 |
|
197 | 197 |
checkbox_publish.setEnabled(isCreateNew()); |
198 |
|
|
198 | 199 |
if(isCreateNew()){ |
199 | 200 |
setParentTreeNode(entity.getParent()); |
200 | 201 |
|
... | ... | |
216 | 217 |
|
217 | 218 |
complete = true; |
218 | 219 |
} |
219 |
if (entity instanceof TaxonNode) { |
|
220 |
checkbox_unplaced = formFactory.createCheckbox(formElement,
|
|
220 |
|
|
221 |
checkbox_unplaced = formFactory.createCheckbox(formElement, |
|
221 | 222 |
"Taxon is unplaced", entity.isUnplaced(), style); |
222 |
}else{ |
|
223 |
checkbox_unplaced = formFactory.createCheckbox(formElement, |
|
224 |
"Taxon is unplaced", false, style); |
|
225 |
} |
|
223 |
|
|
226 | 224 |
if (isCreateNew()){ |
227 | 225 |
preFillTaxonName(); |
228 | 226 |
} |
... | ... | |
336 | 334 |
unplaced = checkbox_unplaced.getSelection(); |
337 | 335 |
getEntity().setUnplaced(unplaced); |
338 | 336 |
|
337 |
} |
|
338 |
|
|
339 |
if (eventSource == checkbox_placementDoubtful) { |
|
340 |
placementDoubtful = checkbox_placementDoubtful.getSelection(); |
|
341 |
getEntity().setDoubtful(placementDoubtful); |
|
342 |
|
|
339 | 343 |
} |
340 | 344 |
if (eventSource == textNewTaxonName) { |
341 | 345 |
boolean enabled = CdmUtils.isBlank(textNewTaxonName.getText()); |
... | ... | |
480 | 484 |
return createNew; |
481 | 485 |
} |
482 | 486 |
|
483 |
public boolean isExcluded() { |
|
484 |
return excluded; |
|
485 |
} |
|
486 | 487 |
|
487 |
public boolean isUnplaced() { |
|
488 |
return unplaced; |
|
489 |
} |
|
490 | 488 |
|
491 | 489 |
public boolean is_publish() { |
492 | 490 |
boolean isPublishPreference = true; |
Also available in: Unified diff
ref #8282: adapt editor to new doubtful attribute in taxonnode