TimeItem timeItem = new TimeItem("timeItem", "Time");
DateRangeItem dateRangeItem = new DateRangeItem("dri", "Date Range");
dateRangeItem.setAllowRelativeDates(true);
DateRange dateRange = new DateRange();
dateRange.setRelativeStartDate(RelativeDate.TODAY);
dateRange.setRelativeEndDate(new RelativeDate("-1m"));
dateRangeItem.setValue(dateRange);
MiniDateRangeItem miniDateRangeItem = new MiniDateRangeItem("mdri", "Mini Date Range");
RelativeDateItem relativeDateItem = new RelativeDateItem("rdi", "Relative Date");