XuniCalendarDelegate Protocol Reference

Conforms to NSObject
Declared in CalendarDelegate.h

Overview

protocol XuniCalendarDelegate.

– viewModeChanged:

Occurs when calendar view mode changed, such as when the user taps the month header.

- (void)viewModeChanged:(XuniCalendar *)sender

Parameters

sender

The calendar which view mode changed.

Discussion

Occurs when calendar view mode changed, such as when the user taps the month header.

Declared In

CalendarDelegate.h

– displayDateChanged:

Occurs when the displayDate property has changed.

- (void)displayDateChanged:(XuniCalendar *)sender

Parameters

sender

The calendar which displayDate property changed.

Discussion

Occurs when the displayDate property has changed.

Declared In

CalendarDelegate.h

– displayDateChanging:

Occurs before the displayDate property changes.

- (void)displayDateChanging:(XuniCalendar *)sender

Parameters

sender

The calendar which displayDate property changed.

Discussion

Occurs before the displayDate property changes.

Declared In

CalendarDelegate.h

– dayOfWeekSlotLoading:dayOfWeek:isWeekend:dayOfWeekSlot:

Occurs when an element representing a day of week is about to be created.

- (void)dayOfWeekSlotLoading:(XuniCalendar *)sender dayOfWeek:(XuniDayOfWeek)dayOfWeek isWeekend:(BOOL)isWeekend dayOfWeekSlot:(UILabel *)dayOfWeekSlot

Parameters

sender

The calendar which day of week added to.

dayOfWeek

The day of week.

isWeekend

Is weekend or not.

dayOfWeekSlot

The day of week slot.

Discussion

Occurs when an element representing a day of week is about to be created.

Declared In

CalendarDelegate.h

– daySlotLoading:date:isAdjacentDay:daySlot:

Occurs when an element representing a day in the calendar is about to be created.

- (XuniCalendarDaySlotBase *)daySlotLoading:(XuniCalendar *)sender date:(NSDate *)date isAdjacentDay:(BOOL)isAdjacentDay daySlot:(XuniCalendarDaySlotBase *)daySlot

Parameters

sender

The calendar which day added to.

date

The slot date.

isAdjacentDay

Is adjacent day or not.

daySlot

The day slot.

Return Value

The day slot which added to calendar.

Discussion

Occurs when an element representing a day in the calendar is about to be created.

Declared In

CalendarDelegate.h

– monthSlotLoading:month:monthSlot:

Occurs when an element representing a month in the calendar is about to be created.

- (void)monthSlotLoading:(XuniCalendar *)sender month:(NSUInteger)month monthSlot:(XuniCalendarMonthSlotBase *)monthSlot

Parameters

sender

The calendar which month added to.

month

The month number.

monthSlot

The month slot.

Discussion

Occurs when an element representing a month in the calendar is about to be created.

Declared In

CalendarDelegate.h

– yearSlotLoading:year:isAdjacentYear:yearSlot:

Occurs when an element representing a year in the calendar is about to be created.

- (void)yearSlotLoading:(XuniCalendar *)sender year:(NSUInteger)year isAdjacentYear:(BOOL)isAdjacentYear yearSlot:(XuniCalendarYearSlotBase *)yearSlot

Parameters

sender

The calendar which year added to.

year

The year number.

isAdjacentYear

Is adjacent year or not.

yearSlot

The year slot.

Discussion

Occurs when an element representing a year in the calendar is about to be created.

Declared In

CalendarDelegate.h

– selectionChanged:selectedDates:

Occurs when the selectedDate or selectedDates properties changed.

- (void)selectionChanged:(XuniCalendar *)sender selectedDates:(XuniCalendarRange *)selectedDates

Parameters

sender

The calendar which selectedDate or selectedDates properties changed.

selectedDates

The selected dates.

Discussion

Occurs when the selectedDate or selectedDates properties changed.

Declared In

CalendarDelegate.h

– selectionChanging:selectedDates:

Occurs before the selection is completed.

- (void)selectionChanging:(XuniCalendar *)sender selectedDates:(XuniCalendarRange *)selectedDates

Parameters

sender

The calendar which selectedDate or selectedDates properties changed.

selectedDates

The selected dates.

Discussion

Occurs before the selection is completed.

Declared In

CalendarDelegate.h

– handleHeaderLoading:header:viewMode:date:

Handle header loading event.

- (NSString *)handleHeaderLoading:(XuniCalendar *)sender header:(NSString *)header viewMode:(XuniCalendarViewMode)viewMode date:(NSDate *)date

Parameters

sender

The calendar sending this event.

header

The header text.

viewMode

The calendar view mode.

date

The calendar header date.

Return Value

The header text.

Discussion

Handle header loading event.

Declared In

CalendarDelegate.h

– rendered:

Called when the control finished rendering.

- (void)rendered:(XuniCalendar *)sender

Parameters

sender

The control which is rendered.

Discussion

Called when the control finished rendering.

Declared In

CalendarDelegate.h