Revision a1fbc94a
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/PartialElement.java | ||
---|---|---|
19 | 19 |
import org.joda.time.Partial; |
20 | 20 |
|
21 | 21 |
import eu.etaxonomy.cdm.model.common.TimePeriod; |
22 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
|
23 |
import eu.etaxonomy.taxeditor.preference.Resources; |
|
22 | 24 |
|
23 | 25 |
/** |
24 | 26 |
* <p>PartialElement class.</p> |
... | ... | |
154 | 156 |
this.number_day.setEnabled(enabled); |
155 | 157 |
this.number_month.setEnabled(enabled); |
156 | 158 |
this.number_year.setEnabled(enabled); |
159 |
if (!enabled){ |
|
160 |
this.number_year.getMainControl().setBackground(AbstractUtility.getColor(Resources.COLOR_TEXT_DISABLED_BACKGROUND)); |
|
161 |
this.number_month.getMainControl().setBackground(AbstractUtility.getColor(Resources.COLOR_TEXT_DISABLED_BACKGROUND)); |
|
162 |
this.number_day.getMainControl().setBackground(AbstractUtility.getColor(Resources.COLOR_TEXT_DISABLED_BACKGROUND)); |
|
163 |
}else{ |
|
164 |
this.number_year.getMainControl().setBackground(getPersistentBackground()); |
|
165 |
this.number_month.getMainControl().setBackground(getPersistentBackground()); |
|
166 |
this.number_day.getMainControl().setBackground(getPersistentBackground()); |
|
167 |
} |
|
157 | 168 |
} |
158 | 169 |
|
159 | 170 |
/** |
Also available in: Unified diff
fix #7717: color of end fields in partial element are grey if disabled