Revision 3be6ef3e
Added by Niels Hoffmann over 13 years ago
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/forms/TimePeriodElement.java | ||
---|---|---|
18 | 18 |
import eu.etaxonomy.cdm.model.common.TimePeriod; |
19 | 19 |
|
20 | 20 |
/** |
21 |
* <p>TimePeriodElement class.</p> |
|
22 |
* |
|
21 | 23 |
* @author n.hoffmann |
22 | 24 |
* @created Nov 17, 2009 |
23 | 25 |
* @version 1.0 |
... | ... | |
30 | 32 |
private Label emptyLabel; |
31 | 33 |
|
32 | 34 |
/** |
33 |
* @param parent |
|
34 |
* @param listener |
|
35 |
* @param style |
|
35 |
* <p>Constructor for TimePeriodElement.</p> |
|
36 |
* |
|
37 |
* @param style a int. |
|
38 |
* @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object. |
|
39 |
* @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object. |
|
40 |
* @param labelString a {@link java.lang.String} object. |
|
41 |
* @param timePeriod a {@link eu.etaxonomy.cdm.model.common.TimePeriod} object. |
|
36 | 42 |
*/ |
37 | 43 |
public TimePeriodElement(CdmFormFactory formFactory, ICdmFormElement parentElement, String labelString, TimePeriod timePeriod, final int style) { |
38 | 44 |
super(formFactory, parentElement); |
... | ... | |
50 | 56 |
|
51 | 57 |
} |
52 | 58 |
|
59 |
/** {@inheritDoc} */ |
|
53 | 60 |
public void setSelected(boolean selected) { |
54 | 61 |
setBackground(getColor(selected)); |
55 | 62 |
} |
56 | 63 |
|
64 |
/** |
|
65 |
* <p>setEntity</p> |
|
66 |
* |
|
67 |
* @param timePeriod a {@link eu.etaxonomy.cdm.model.common.TimePeriod} object. |
|
68 |
*/ |
|
57 | 69 |
public void setEntity(TimePeriod timePeriod) { |
58 | 70 |
setTimePeriod(timePeriod); |
59 | 71 |
} |
60 | 72 |
|
73 |
/** {@inheritDoc} */ |
|
61 | 74 |
@Override |
62 | 75 |
public void propertyChange(PropertyChangeEvent event) { |
63 | 76 |
if(event == null){ |
... | ... | |
99 | 112 |
} |
100 | 113 |
|
101 | 114 |
/** |
115 |
* <p>Setter for the field <code>timePeriod</code>.</p> |
|
116 |
* |
|
102 | 117 |
* @param timePeriod the timePeriod to set |
103 | 118 |
*/ |
104 | 119 |
public void setTimePeriod(TimePeriod timePeriod) { |
... | ... | |
110 | 125 |
} |
111 | 126 |
|
112 | 127 |
/** |
128 |
* <p>Getter for the field <code>timePeriod</code>.</p> |
|
129 |
* |
|
113 | 130 |
* @return the timePeriod |
114 | 131 |
*/ |
115 | 132 |
public TimePeriod getTimePeriod() { |
116 | 133 |
return timePeriod; |
117 | 134 |
} |
118 | 135 |
|
136 |
/** {@inheritDoc} */ |
|
119 | 137 |
@Override |
120 | 138 |
public void setBackground(Color color) { |
121 | 139 |
emptyLabel.setBackground(color); |
Also available in: Unified diff
performed javacscript:fix and worked on documentation