BGBM BDI Projects
/
taxeditor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3c582c0
)
fix #10228: open fields for elevation and date in specimen dialog
author
Katja Luther
<k.luther@bgbm.org>
Wed, 18 Jan 2023 13:40:54 +0000
(14:40 +0100)
committer
Katja Luther
<k.luther@bgbm.org>
Wed, 18 Jan 2023 13:40:54 +0000
(14:40 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/GatheringEventUnitElement.java
patch
|
blob
|
history
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/TimePeriodElement.java
patch
|
blob
|
history
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DerivedUnitGeneralDetailElement.java
patch
|
blob
|
history
diff --git
a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/GatheringEventUnitElement.java
b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/GatheringEventUnitElement.java
index 3612cad884da4bcfd6d11ab3b53096e7884186bd..50ca97e19bf878f997bdbc9234ed42f65298545b 100644
(file)
--- a/
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/GatheringEventUnitElement.java
+++ b/
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/GatheringEventUnitElement.java
@@
-105,5
+105,9
@@
public class GatheringEventUnitElement extends AbstractCdmFormElement implements
public void setLabel(String string) {
label.setText(string);
}
public void setLabel(String string) {
label.setText(string);
}
+
+ public void setExpanded(boolean isExpanded) {
+ this.section_minMaxText.setExpanded(isExpanded);
+ }
}
}
diff --git
a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/TimePeriodElement.java
b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/TimePeriodElement.java
index 1a5e0335e7284efdff0e1e99a31c09ee73b0fe05..141ca94a000d2ae50d08f414a348207b72980fe7 100644
(file)
--- a/
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/TimePeriodElement.java
+++ b/
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/TimePeriodElement.java
@@
-49,5
+49,9
@@
public class TimePeriodElement
public boolean isEnabled() {
return isEnabled;
}
public boolean isEnabled() {
return isEnabled;
}
+
+ public void setExpanded(boolean isExpanded) {
+ this.section_dateDetails.setExpanded(isExpanded);
+ }
}
\ No newline at end of file
}
\ No newline at end of file
diff --git
a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DerivedUnitGeneralDetailElement.java
b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DerivedUnitGeneralDetailElement.java
index 44227210e20c99441b62f86347ffbe094f481369..9532cba7ecc7c63a549bce604a12c8e08bebf070 100644
(file)
--- a/
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DerivedUnitGeneralDetailElement.java
+++ b/
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DerivedUnitGeneralDetailElement.java
@@
-98,9
+98,10
@@
public class DerivedUnitGeneralDetailElement extends
entity.getExactLocation(), style);
element_elevation = formFactory.createGatheringEventUnitElement(
formElement, "Elevation : ", entity, MinMaxTextSection.UnitType.ELEVATION, style);
entity.getExactLocation(), style);
element_elevation = formFactory.createGatheringEventUnitElement(
formElement, "Elevation : ", entity, MinMaxTextSection.UnitType.ELEVATION, style);
-
+ element_elevation.setExpanded(true);
element_date = formFactory.createTimePeriodElement(formElement, "Date",
entity.getGatheringPeriod(), style);
element_date = formFactory.createTimePeriodElement(formElement, "Date",
entity.getGatheringPeriod(), style);
+ element_date.setExpanded(true);
selection_collector = formFactory
.createCollectorSelectionElement(
formElement, "Collector",
selection_collector = formFactory
.createCollectorSelectionElement(
formElement, "Collector",
@@
-180,6
+181,8
@@
public class DerivedUnitGeneralDetailElement extends
getEntity().setPreferredStableUri(uriPreferredStableUri.parseText());
} else if (eventSource == checkIsPublish) {
getEntity().innerDerivedUnit().setPublish(checkIsPublish.getSelection());
getEntity().setPreferredStableUri(uriPreferredStableUri.parseText());
} else if (eventSource == checkIsPublish) {
getEntity().innerDerivedUnit().setPublish(checkIsPublish.getSelection());
+ }else if (eventSource == section_status) {
+ firePropertyChangeEvent(this);
}
toggleableText_titleCache.setText(getEntity().getTitleCache());
}
toggleableText_titleCache.setText(getEntity().getTitleCache());