StyleGroup.selectedStyleGroup(3), dateRanges.getRolloverSelectedDayClass());
disableExcluded = dateRanges.isDisableExcludes();
disableIncluded = dateRanges.isDisableIncludes();
List<UIComponent> allRanges = dateRanges.getChildren();
for (Object dateRangeObj : allRanges) {
AbstractDateRange dateRange = (AbstractDateRange) dateRangeObj;
if (dateRange instanceof SimpleDateRange) {
String styleClassName = Styles.getCSSClass(context, calendar, dateRange.getDayStyle(),
StyleGroup.regularStyleGroup(5), dateRange.getDayClass(), DEFAULT_DATE_RANGE_CLASS);
String rolloverStyleClassName = Styles.getCSSClass(context, calendar, dateRange.getRolloverDayStyle(),
StyleGroup.rolloverStyleGroup(5), dateRange.getRolloverDayClass(), DEFAULT_ROLLOVER_DATE_RANGE_CLASS);
String selectedDayClassNameDR = Styles.getCSSClass(context, calendar, dateRange.getSelectedDayStyle(),
StyleGroup.selectedStyleGroup(4), dateRanges.getSelectedDayClass());
String rolloverSelectedDayClassNameDR = Styles.getCSSClass(context,
calendar, dateRange.getRolloverSelectedDayStyle(), StyleGroup.selectedStyleGroup(5), dateRange.getRolloverSelectedDayClass()
);
dateRangesList.add(new Object[]{dateRange, styleClassName, rolloverStyleClassName, selectedDayClassNameDR,
rolloverSelectedDayClassNameDR});
} else
throw new FacesException("'dateRanges' component does not support components of " + dateRange.getClass() +
" class");
}
if (ranges != null) {
Collection rangesCollection = (Collection) ranges;
for (Object dateRangeObj : rangesCollection) {
AbstractDateRange dateRange = (AbstractDateRange) dateRangeObj;
if (dateRange instanceof SimpleDateRange) {
String styleClassName = Styles.getCSSClass(context, calendar, dateRange.getDayStyle(), StyleGroup.regularStyleGroup(5), null);
String rolloverStyleClassName = Styles.getCSSClass(context, calendar, dateRange.getRolloverDayStyle(), StyleGroup.rolloverStyleGroup(5), null);
String selectedDayClassNameDR = Styles.getCSSClass(context, calendar, dateRange.getSelectedDayStyle(),
StyleGroup.selectedStyleGroup(4), dateRange.getSelectedDayClass());
String rolloverSelectedDayClassNameDR = Styles.getCSSClass(context,
calendar, dateRange.getRolloverSelectedDayStyle(), StyleGroup.selectedStyleGroup(5), dateRange.getRolloverSelectedDayClass()
);
dateRangesList.add(new Object[]{dateRange, styleClassName, rolloverStyleClassName,
selectedDayClassNameDR, rolloverSelectedDayClassNameDR});
} else
throw new FacesException("'dateRanges' component does not support component of " + dateRange.getClass() +
" class");
}
}
}
if (dateRangesList.size() == 0 && dateRanges == null)
return null;
List<NewInstanceScript> dateRangesParam = new ArrayList<NewInstanceScript>();
for (Object[] dateRangeObj : dateRangesList) {
AbstractDateRange dateRange = (AbstractDateRange) dateRangeObj[0];
String rangeStyle = (String) dateRangeObj[1];
String rangeRolloverStyle = (String) dateRangeObj[2];
String rangeSelectedDayStyle = (String) dateRangeObj[3];
String rangeRolloverSelectedDayStyle = (String) dateRangeObj[4];
if (dateRange instanceof SimpleDateRange) {