Add a day decorator

@param decorator decorator to add
167272
public void addDecorator(DayViewDecorator decorator) {
    if (decorator == null) {
      return;
    }
    dayViewDecorators.add(decorator);
    adapter.setDecorators(dayViewDecorators);
  }
107292
public void setDayFormatter(DayFormatter formatter) {
    adapter.setDayFormatter(formatter == null ? DayFormatter.DEFAULT : formatter);
  }
1179765
public void addFloatingDate(ICalProperty property, ICalDate date) {
		floatingDates.add(new TimezonedDate(date, property));
	}
1342783
public final U setDecorators(
            List<Function<Service<HttpRequest, HttpResponse>,
                    ? extends Service<HttpRequest, HttpResponse>>> decorators) {
        this.decorators = requireNonNull(decorators, "decorators");
        return self();
    }
334178
public static <T> Decoration<T> of(Decorator<T> decorator, T data) {
        Validate.notNull(decorator, "The decorator is required");
        Validate.notNull(data, "The decoration data is required");
        return new Decoration<>(decorator, data, null);
    }
1336275
protected <T> List<? extends Decoration> getDecorations(ProjectEntity entity, Decorator<T> decorator) {
        try {
            return decorator.getDecorations(entity);
        } catch (Exception ex) {
            return Collections.singletonList(
                    Decoration.error(decorator, getErrorMessage(ex))
            );
        }
    }
1211092
public void addValidator(Validator validator)
    {
        if (validator == null)
        {
            throw new NullPointerException("validator");
        }
        
        if (_validatorList == null)
        {
            //normally add user 0-3 validators: 
            _validatorList = new _DeltaList<Validator>(new ArrayList<Validator>(3));
        }

        _validatorList.add(validator);
        
        // The argument validator must be inspected for the presence of the ResourceDependency annotation.
        //_handleAnnotations(FacesContext.getCurrentInstance(), validator);
    }
651292
public void addLabelDecorator(ILabelDecorator decorator)
	{
		if (fLabelDecorators == null)
		{
			fLabelDecorators = new ArrayList<ILabelDecorator>(2);
		}
		fLabelDecorators.add(decorator);
	}
1120470
function applyDecoration(constructor, key, options) {

		if (options.kind == 'method') {
			return Fn.setMethod(constructor, key, options.descriptor);
		}

		throw new Error('Decorating ' + options.kind + ' is not yet implemented');
	}
1115345
@VisibleForTesting
    static List<DecoratorAndOrder> collectDecorators(Class<?> clazz, Method method) {
        final List<DecoratorAndOrder> decorators = new ArrayList<>();

        // Class-level decorators are applied before method-level decorators.
        collectDecorators(decorators, getAllAnnotations(clazz));
        collectDecorators(decorators, getAllAnnotations(method));

        // Sort decorators by "order" attribute values.
        decorators.sort(Comparator.comparing(DecoratorAndOrder::order));

        return decorators;
    }
1280000
function dayOffsetToDate(dayOffset) {
		var date = cloneDate(t.visStart);
		addDays(date, dayOffset);
		return date;
	}
55716
public static LocalDateTime addDays(String localDate, long days) {
        LocalDateTime parse = parse(localDate, DEFAULT_PATTERN);
        return parse.plusDays(days);
    }
222038
public static Date addDays(long dt, int days)
    {
        Calendar c = getCalendar();
        if(dt > 0L)
            c.setTimeInMillis(dt);
        c.add(Calendar.DATE, days);
        return c.getTime();
    }
725635
public void addDateField(String name, long date) {
        String d = DateGenerator.formatDate(date);
        add(name, d);
    }
656684
@Deprecated
    public final U setDecorator(
            Function<Service<HttpRequest, HttpResponse>,
                    ? extends Service<HttpRequest, HttpResponse>> decorator) {
        return setDecorators(requireNonNull(decorator, "decorator"));
    }
1252015
private void processExceptionDays(ProjectCalendar mpxjCalendar, List<net.sf.mpxj.planner.schema.Day> dayList)
   {
      for (ProjectCalendarException mpxjCalendarException : mpxjCalendar.getCalendarExceptions())
      {
         Date rangeStartDay = mpxjCalendarException.getFromDate();
         Date rangeEndDay = mpxjCalendarException.getToDate();
         if (DateHelper.getDayStartDate(rangeStartDay).getTime() == DateHelper.getDayEndDate(rangeEndDay).getTime())
         {
            //
            // Exception covers a single day
            //
            net.sf.mpxj.planner.schema.Day day = m_factory.createDay();
            dayList.add(day);
            day.setType("day-type");
            day.setDate(getDateString(mpxjCalendarException.getFromDate()));
            day.setId(mpxjCalendarException.getWorking() ? "0" : "1");
         }
         else
         {
            //
            // Exception covers a range of days
            //
            Calendar cal = DateHelper.popCalendar(rangeStartDay);

            while (cal.getTime().getTime() < rangeEndDay.getTime())
            {
               net.sf.mpxj.planner.schema.Day day = m_factory.createDay();
               dayList.add(day);
               day.setType("day-type");
               day.setDate(getDateString(cal.getTime()));
               day.setId(mpxjCalendarException.getWorking() ? "0" : "1");
               cal.add(Calendar.DAY_OF_YEAR, 1);
            }
            
            DateHelper.pushCalendar(cal);
         }

         /**
          * @TODO we need to deal with date ranges here
          */
      }
   }
500133
public void setDay(Day d)
   {
      if (m_day != null)
      {
         m_parentCalendar.removeHoursFromDay(this);
      }

      m_day = d;

      m_parentCalendar.attachHoursToDay(this);
   }