Revision 39d00bc0
Added by Patrick Plitzner almost 10 years ago
- removed explicit class package
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/mvc/OriginalLabelDataField.java | ||
---|---|---|
25 | 25 |
import org.eclipse.swt.widgets.Label; |
26 | 26 |
import org.eclipse.swt.widgets.Text; |
27 | 27 |
|
28 |
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit; |
|
28 | 29 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
29 | 30 |
import eu.etaxonomy.taxeditor.ui.element.CdmPropertyChangeEvent; |
30 | 31 |
|
... | ... | |
36 | 37 |
public class OriginalLabelDataField extends Composite { |
37 | 38 |
|
38 | 39 |
private DataBindingContext m_bindingContext; |
39 |
private eu.etaxonomy.cdm.model.occurrence.DerivedUnit derivedUnit = null;
|
|
40 |
private DerivedUnit derivedUnit = null; |
|
40 | 41 |
private final Text originalLabelInfoText; |
41 | 42 |
private CdmFormFactory formFactory; |
42 | 43 |
|
43 |
public OriginalLabelDataField(Composite parent, int style, eu.etaxonomy.cdm.model.occurrence.DerivedUnit newDerivedUnit, CdmFormFactory formFactory) {
|
|
44 |
public OriginalLabelDataField(Composite parent, int style, DerivedUnit newDerivedUnit, CdmFormFactory formFactory) { |
|
44 | 45 |
this(parent, style); |
45 | 46 |
setDerivedUnit(newDerivedUnit); |
46 | 47 |
this.formFactory = formFactory; |
... | ... | |
88 | 89 |
return bindingContext; |
89 | 90 |
} |
90 | 91 |
|
91 |
public eu.etaxonomy.cdm.model.occurrence.DerivedUnit getDerivedUnit() {
|
|
92 |
public DerivedUnit getDerivedUnit() { |
|
92 | 93 |
return derivedUnit; |
93 | 94 |
} |
94 | 95 |
|
95 |
public void setDerivedUnit(eu.etaxonomy.cdm.model.occurrence.DerivedUnit newDerivedUnit) {
|
|
96 |
public void setDerivedUnit(DerivedUnit newDerivedUnit) { |
|
96 | 97 |
setDerivedUnit(newDerivedUnit, true); |
97 | 98 |
} |
98 | 99 |
|
99 |
public void setDerivedUnit(eu.etaxonomy.cdm.model.occurrence.DerivedUnit newDerivedUnit, boolean update) {
|
|
100 |
public void setDerivedUnit(DerivedUnit newDerivedUnit, boolean update) { |
|
100 | 101 |
derivedUnit = newDerivedUnit; |
101 | 102 |
if (update) { |
102 | 103 |
if (m_bindingContext != null) { |
Also available in: Unified diff