Revision 3be6ef3e
Added by Niels Hoffmann over 13 years ago
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/forms/DateDetailSection.java | ||
---|---|---|
16 | 16 |
import eu.etaxonomy.cdm.model.common.TimePeriod; |
17 | 17 |
|
18 | 18 |
/** |
19 |
* <p>DateDetailSection class.</p> |
|
20 |
* |
|
19 | 21 |
* @author n.hoffmann |
20 | 22 |
* @created Mar 31, 2010 |
21 | 23 |
* @version 1.0 |
... | ... | |
26 | 28 |
private PartialElement partialElement_end; |
27 | 29 |
private TimePeriod timePeriod; |
28 | 30 |
|
31 |
/** |
|
32 |
* <p>Constructor for DateDetailSection.</p> |
|
33 |
* |
|
34 |
* @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object. |
|
35 |
* @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object. |
|
36 |
* @param style a int. |
|
37 |
*/ |
|
29 | 38 |
protected DateDetailSection(CdmFormFactory formFactory, ICdmFormElement parentElement, |
30 | 39 |
int style) { |
31 | 40 |
super(formFactory, null, parentElement, style); |
... | ... | |
37 | 46 |
formFactory.addPropertyChangeListener(this); |
38 | 47 |
} |
39 | 48 |
|
49 |
/** |
|
50 |
* <p>Setter for the field <code>timePeriod</code>.</p> |
|
51 |
* |
|
52 |
* @param timePeriod a {@link eu.etaxonomy.cdm.model.common.TimePeriod} object. |
|
53 |
*/ |
|
40 | 54 |
public void setTimePeriod(TimePeriod timePeriod) { |
41 | 55 |
this.timePeriod = timePeriod; |
42 | 56 |
|
... | ... | |
44 | 58 |
partialElement_end.setPartial(timePeriod.getEnd()); |
45 | 59 |
} |
46 | 60 |
|
61 |
/** {@inheritDoc} */ |
|
47 | 62 |
@Override |
48 | 63 |
public void propertyChange(PropertyChangeEvent event) { |
49 | 64 |
if(event == null){ |
... | ... | |
79 | 94 |
firePropertyChangeEvent(new CdmPropertyChangeEvent(this, null)); |
80 | 95 |
} |
81 | 96 |
|
97 |
/** |
|
98 |
* <p>Getter for the field <code>timePeriod</code>.</p> |
|
99 |
* |
|
100 |
* @return a {@link eu.etaxonomy.cdm.model.common.TimePeriod} object. |
|
101 |
*/ |
|
82 | 102 |
public TimePeriod getTimePeriod() { |
83 | 103 |
return timePeriod; |
84 | 104 |
} |
... | ... | |
86 | 106 |
/* (non-Javadoc) |
87 | 107 |
* @see eu.etaxonomy.taxeditor.forms.AbstractFormSection#dispose() |
88 | 108 |
*/ |
109 |
/** {@inheritDoc} */ |
|
89 | 110 |
@Override |
90 | 111 |
public void dispose() { |
91 | 112 |
formFactory.removePropertyChangeListener(this); |
Also available in: Unified diff
performed javacscript:fix and worked on documentation