Möglichkeit schaffen, auch bei einem IncompleteDateParameter ein gesetztes Datum wieder zu löschen.
git-svn-id: https://svn.libreccm.org/ccm/trunk@1032 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
439a63568b
commit
6ceadd40d6
|
|
@ -202,7 +202,12 @@ public class Date extends Widget implements BebopConstants {
|
|||
|
||||
m_year.clearOptions();
|
||||
if (this.getParameterModel() instanceof IncompleteDateParameter) {
|
||||
if (((IncompleteDateParameter) this.getParameterModel()).isSkipYearAllowed()) {
|
||||
// Create an empty year entry to unset a date, if either
|
||||
// a) skipYearAllowed is true
|
||||
// b) skipDayAllowed is true and skipMonthAllowed is true, to unset a date
|
||||
if (((IncompleteDateParameter) this.getParameterModel()).isSkipYearAllowed() ||
|
||||
(((IncompleteDateParameter) this.getParameterModel()).isSkipDayAllowed() &&
|
||||
((IncompleteDateParameter) this.getParameterModel()).isSkipMonthAllowed())) {
|
||||
m_year.addOption(new Option("", ""));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue