public class CalendarAdapter extends Object
RadCalendarView
.Constructor and Description |
---|
CalendarAdapter(RadCalendarView owner)
Creates a new instance of the
CalendarAdapter . |
Modifier and Type | Method and Description |
---|---|
void |
applyProcedureToAllCells(Procedure<CalendarCell> procedure)
Applies a given procedures to all tracked cells.
|
void |
applyProcedureToDateCells(Procedure<CalendarCell> procedure)
Applies a given procedure to the tracked date cells.
|
void |
applyProcedureToDayNameCells(Procedure<CalendarCell> procedure)
Applies a given procedure to the tracked day name cells.
|
void |
applyProcedureToWeekNumberCells(Procedure<CalendarCell> procedure)
Applies a given procedure to the tracked week number cells.
|
CalendarRow |
generateCalendarRow()
Generates an empty calendar row.
|
CalendarFragment |
generateFragment()
Generates a new calendar fragment.
|
boolean |
getCapitalizeDayNames()
Gets a value indicating whether day names should use only capital letters.
|
CalendarDayCell |
getDateCell()
Used to generate a new date cell, applies the current style to it and adds it to the current collection of date cells,
so that it could be tracked and procedures may be applied to it at a later stage.
|
int |
getDateCellBackgroundColorDisabled()
Gets the background color of the disabled date cells.
|
int |
getDateCellBackgroundColorEnabled()
Gets the background color of the enabled date cells.
|
int |
getDateCellPaddingHorizontal()
Gets the horizontal padding for the date cells.
|
int |
getDateCellPaddingVertical()
Gets the vertical padding for the date cells.
|
int |
getDateTextColorDisabled()
Gets the date text color disabled.
|
int |
getDateTextColorEnabled()
Gets the date text color enabled.
|
int |
getDateTextColorYearModeDisabled()
Gets the disabled dates text color in year mode.
|
int |
getDateTextColorYearModeEnabled()
Gets the enabled dates text color in year mode.
|
int |
getDateTextPosition()
Gets the date text position.
|
float |
getDateTextSize()
Gets the date text size.
|
float |
getDateTextSizeYearMode()
Gets dates text size in year mode.
|
Typeface |
getDateTypeFace()
Gets the dates typeface.
|
Typeface |
getDateTypeFaceYearMode()
Gets the dates typeface in year mode.
|
SparseArray<String> |
getDateValues()
Gets the current collection of date values cached.
|
int |
getDayNameBackgroundColor()
Gets the day names background color.
|
CalendarCell |
getDayNameCell()
Gets a
CalendarCell which contains the name of the day of the week
with the specified index according to the current locale. |
CalendarDayCell |
getDayNameCell(int index)
Gets a
CalendarCell which contains the name of the day of the week
with the specified index according to the current locale. |
int |
getDayNamePaddingHorizontal()
Gets the day names horizontal padding.
|
int |
getDayNamePaddingVertical()
Gets the day names vertical padding.
|
int |
getDayNameTextColor()
Gets the day names text color.
|
int |
getDayNameTextColorYearModeDisabled()
Gets the disabled day names text color in year mode.
|
int |
getDayNameTextColorYearModeEnabled()
Gets the enabled day names text color in year mode.
|
int |
getDayNameTextPosition()
Gets the day names text position.
|
float |
getDayNameTextSize()
Gets the day names text size.
|
float |
getDayNameTextSizeYearMode()
Gets the day names text size in year mode.
|
Typeface |
getDayNameTypeFace()
Gets the day names typeface.
|
Typeface |
getDayNameTypefaceYearMode()
Gets the day names typeface in year mode.
|
int |
getInlineEventsBackgroundColor() |
int |
getInlineEventTimeEndTextColor() |
float |
getInlineEventTimeEndTextSize() |
int |
getInlineEventTimeStartTextColor() |
float |
getInlineEventTimeStartTextSize() |
float |
getInlineEventTitleTextSize() |
CalendarMonthCell |
getMonthCell()
Used to generate a new month cell, applies the current style to it and adds it to the current collection of month cells,
so that it could be tracked and procedures may be applied to it at a later stage.
|
int |
getMonthCellPaddingHorizontal()
Gets the horizontal padding for the month cells.
|
int |
getMonthCellPaddingVertical()
Gets the vertical padding for the month cells.
|
int |
getMonthNameTextColorDisabled()
Gets the month name disabled text color.
|
int |
getMonthNameTextColorEnabled()
Gets the month name enabled text color.
|
int |
getMonthNameTextPosition()
Gets the month name text position.
|
float |
getMonthNameTextSize()
Gets the month name text size.
|
float |
getMonthNameTextSizeCompact()
Gets the month name text size for compact mode.
|
Typeface |
getMonthNameTypeFace()
Gets the month name typeface.
|
int |
getPopupEventsWindowBackgroundColor() |
float |
getPopupEventTimeTextSize() |
float |
getPopupEventTitleTextSize() |
int |
getSelectedCellBackgroundColor()
Gets the selected cells background color.
|
float |
getSelectedCellBorderWidth() |
int |
getSelectedCellTextColor()
Gets the text color for selected cells.
|
Typeface |
getSelectedCellTypeFace()
Gets the typeface for selected cells.
|
CalendarStyle |
getStyle()
Gets the style.
|
int |
getTitleBackgroundColor()
Gets the title background color.
|
CalendarTitleCell |
getTitleCell(long date,
CalendarDisplayMode displayMode)
Gets a
CalendarTextElement which represents the first row in
the RadCalendarView usually containing
the current month name and year for the provided date. |
int |
getTitleTextColor()
Gets the title text color.
|
int |
getTitleTextPosition()
Gets the text position of the title.
|
float |
getTitleTextSize()
Gets the title text size.
|
Typeface |
getTitleTypeFace()
Gets the title's typeface.
|
int |
getTodayBackgroundColor()
Gets today's background color in year mode.
|
int |
getTodayCellBackgroundColor()
Gets the today cell background color.
|
int |
getTodayCellBorderColor() |
float |
getTodayCellBorderWidth() |
int |
getTodayCellSelectedTextColor()
Gets today's text color for the today cell in selected state.
|
int |
getTodayCellTextColor()
Gets today's text color for the today cell.
|
Typeface |
getTodayCellTypeFace()
Gets the today's typeface for the today cell.
|
int |
getTodayTextColor()
Gets today's text color in year mode.
|
Typeface |
getTodayTypeFace()
Gets the today's typeface in year mode.
|
int |
getWeekNumberBackgroundColorDisabled()
Gets the disabled week numbers background color.
|
int |
getWeekNumberBackgroundColorEnabled()
Gets the enabled week numbers background color.
|
CalendarDayCell |
getWeekNumberCell()
Gets a
CalendarCell which contains the specified number. |
int |
getWeekNumberTextColorDisabled()
Gets the disabled week numbers text color.
|
int |
getWeekNumberTextColorEnabled()
Gets the enabled week numbers text color.
|
int |
getWeekNumberTextPosition()
Gets the week numbers text position.
|
float |
getWeekNumberTextSize()
Gets the week numbers text size.
|
Typeface |
getWeekNumberTypeFace()
Gets the week numbers typeface.
|
void |
reset()
Clears the current cells from the tracked collection allowing the adapter to refill them with the newly created ones at the time
of rebuilding the calendar.
|
void |
setCapitalizeDayNames(boolean capitalizeDayNames)
Sets a value indicating whether day names should use only capital letters.
|
void |
setDateCellBackgroundColor(int colorEnabled,
int colorDisabled)
Sets the background color for both the enabled and the disabled cells.
|
void |
setDateCellPaddingHorizontal(int padding)
Sets the horizontal padding for the date cells.
|
void |
setDateCellPaddingVertical(int padding)
Sets the vertical padding for the date cells.
|
void |
setDateTextColor(int colorEnabled,
int colorDisabled)
Sets the text color for both enabled and disabled dates.
|
void |
setDateTextColorYearMode(int colorEnabled,
int colorDisabled)
Sets the dates text color in year mode for both enabled and disabled states.
|
void |
setDateTextPosition(int position)
Sets the date text position.
|
void |
setDateTextSize(float size)
Sets the date text size.
|
void |
setDateTextSizeYearMode(float size)
Sets the dates text size in year mode.
|
void |
setDateTypeFace(Typeface typeface)
Sets the dates typeface.
|
void |
setDateTypeFaceYearMode(Typeface typeface)
Sets the dates typeface in year mode.
|
void |
setDateValues(SparseArray<String> dateValues)
Sets the current collection of date values cached.
|
void |
setDayNameBackgroundColor(int color)
Sets the day names background color.
|
void |
setDayNamePadding(int horizontalPadding,
int verticalPadding)
Sets the day names horizontal and vertical paddings.
|
void |
setDayNameTextColor(int color)
Sets the day names text color.
|
void |
setDayNameTextColorYearMode(int colorEnabled,
int colorDisabled)
Sets the day names text color in year mode for both enabled and disabled states.
|
void |
setDayNameTextPosition(int position)
Sets the day names text position.
|
void |
setDayNameTextSize(float size)
Sets the day names text size.
|
void |
setDayNameTextSizeYearMode(float size)
Sets the day names text size in year mode.
|
void |
setDayNameTypeFace(Typeface typeface)
Sets the current day names typeface.
|
void |
setDayNameTypefaceYearMode(Typeface typeface)
Sets the day names typeface in year mode.
|
void |
setInlineEventsBackgroundColor(int color) |
void |
setInlineEventTimeEndTextColor(int color) |
void |
setInlineEventTimeEndTextSize(float textSize) |
void |
setInlineEventTimeStartTextColor(int color) |
void |
setInlineEventTimeStartTextSize(float textSize) |
void |
setInlineEventTitleTextSize(float textSize) |
void |
setMonthCellPaddingHorizontal(int padding)
Sets the horizontal padding for the month cells.
|
void |
setMonthCellPaddingVertical(int padding)
Sets the vertical padding for the month cells.
|
void |
setMonthNameTextColor(int colorEnabled,
int colorDisabled)
Sets the text color for both enabled and disabled month names.
|
void |
setMonthNameTextPosition(int position)
Sets the month name text position.
|
void |
setMonthNameTextSize(float size)
Sets the month name text size.
|
void |
setMonthNameTextSizeCompact(float size)
Sets the month name text size for compact mode.
|
void |
setMonthNameTypeFace(Typeface typeface)
Sets the month name typeface.
|
void |
setPopupEventsWindowBackgroundColor(int color) |
void |
setPopupEventTimeTextSize(float textSize) |
void |
setPopupEventTitleTextSize(float textSize) |
void |
setSelectedCellBackgroundColor(int color)
Sets the selected cells background color.
|
void |
setSelectedCellBorderWidth(float width) |
void |
setSelectedCellTextColor(int color)
Sets the text color for selected cells.
|
void |
setSelectedCellTypeFace(Typeface typeFace)
Sets the typeface for selected cells.
|
void |
setStyle(CalendarStyle style)
Sets the style.
|
void |
setTitleBackgroundColor(int color)
Sets the title background color.
|
void |
setTitleTextColor(int color)
Sets the title text color.
|
void |
setTitleTextPosition(int position)
Sets the text position of the title.
|
void |
setTitleTextSize(float size)
Sets the title text size.
|
void |
setTitleTypeFace(Typeface typeFace)
Sets the title's typeface.
|
void |
setTodayBackgroundColor(int color)
Sets today's background color in year mode.
|
void |
setTodayCellBackgroundColor(int color)
Sets the today cell background color.
|
void |
setTodayCellBorderColor(int color) |
void |
setTodayCellBorderWidth(float width) |
void |
setTodayCellSelectedTextColor(int color)
Sets today's text color for the today cell in selected state.
|
void |
setTodayCellTextColor(int color)
Sets today's text color for the today cell.
|
void |
setTodayCellTypeFace(Typeface typeface)
Sets the today's typeface for the today cell.
|
void |
setTodayTextColor(int color)
Sets today's text color in year mode.
|
void |
setTodayTypeFace(Typeface typeface)
Sets the today's typeface in year mode.
|
void |
setWeekNumberBackgroundColor(int colorEnabled,
int colorDisabled)
Sets the background color for both enabled and disabled week numbers.
|
void |
setWeekNumberTextColor(int colorEnabled,
int colorDisabled)
Sets the text color for both the enabled and the disabled week numbers.
|
void |
setWeekNumberTextPosition(int position)
Sets the week numbers text position.
|
void |
setWeekNumberTextSize(float size)
Sets the week numbers text size.
|
void |
setWeekNumberTypeFace(Typeface typeface)
Sets the week numbers typeface.
|
void |
updateCalendarMonthCell(CalendarMonthCell convertCell,
long date)
Updates the provided
CalendarMonthCell with information
about the month that contains the specified date. |
void |
updateDateCell(CalendarDayCell convertCell,
Long date,
List<Event> eventList,
boolean includeWeekNumber)
Updates the provided
CalendarCell with information
about the new specified date. |
void |
updateDateCellStyle(CalendarDayCell dateCell)
Updates the style of a passed date cell using the current style of the adapter.
|
void |
updateDayNameCell(CalendarDayCell convertCell,
int index)
Updates the provided
CalendarCell with the name of the
day of the week with the specified index according to the current locale. |
void |
updateDayNameCellStyle(CalendarDayCell dayNameCell)
Updates the style of a passed day name cell using the current style of the adapter.
|
void |
updateMonthCellStyle(CalendarMonthCell monthCell)
Updates the style of a passed month cell using the current style of the adapter.
|
void |
updateTitle(CalendarDayCell convertCell,
long date,
CalendarDisplayMode displayMode)
Updates the provided
CalendarTextElement with information about the provided date
according to the current display mode. |
void |
updateTitleCellStyle(CalendarDayCell titleCell)
Updates the style of a passed title cell using the current style of the adapter.
|
void |
updateWeekNumberCell(CalendarDayCell convertCell,
int weekNumber)
Updates the provided
CalendarCell with information
about the new week number. |
void |
updateWeekNumberCellStyle(CalendarDayCell weekNumberCell)
Updates the style of a passed week number cell using the current style of the adapter.
|
public CalendarAdapter(RadCalendarView owner)
CalendarAdapter
.public float getInlineEventTitleTextSize()
public void setInlineEventTitleTextSize(float textSize)
public float getInlineEventTimeStartTextSize()
public void setInlineEventTimeStartTextSize(float textSize)
public float getInlineEventTimeEndTextSize()
public void setInlineEventTimeEndTextSize(float textSize)
public int getInlineEventTimeStartTextColor()
public void setInlineEventTimeStartTextColor(int color)
public int getInlineEventTimeEndTextColor()
public void setInlineEventTimeEndTextColor(int color)
public float getPopupEventTitleTextSize()
public void setPopupEventTitleTextSize(float textSize)
public float getPopupEventTimeTextSize()
public void setPopupEventTimeTextSize(float textSize)
public int getInlineEventsBackgroundColor()
public void setInlineEventsBackgroundColor(int color)
public int getPopupEventsWindowBackgroundColor()
public void setPopupEventsWindowBackgroundColor(int color)
public float getTodayCellBorderWidth()
public void setTodayCellBorderWidth(float width)
public int getTodayCellBorderColor()
public void setTodayCellBorderColor(int color)
public float getSelectedCellBorderWidth()
public void setSelectedCellBorderWidth(float width)
public int getDateCellPaddingHorizontal()
public void setDateCellPaddingHorizontal(int padding)
padding
- the new date cells horizontal padding.public int getDateCellPaddingVertical()
public void setDateCellPaddingVertical(int padding)
padding
- the new date cells vertical padding.public int getMonthCellPaddingHorizontal()
public void setMonthCellPaddingHorizontal(int padding)
padding
- the new month cells horizontal padding.public int getMonthCellPaddingVertical()
public void setMonthCellPaddingVertical(int padding)
padding
- the new month cells vertical padding.public Typeface getTodayTypeFace()
public void setTodayTypeFace(Typeface typeface)
typeface
- the new today's typeface.public Typeface getTodayCellTypeFace()
public void setTodayCellTypeFace(Typeface typeface)
typeface
- the new today's typeface.public int getTodayBackgroundColor()
public void setTodayBackgroundColor(int color)
color
- the new today's background color.public int getTodayTextColor()
public void setTodayTextColor(int color)
color
- the new today's text color.public int getTodayCellTextColor()
public void setTodayCellTextColor(int color)
color
- the new today's text color.public int getTodayCellSelectedTextColor()
public void setTodayCellSelectedTextColor(int color)
color
- the new today's text color in selected state.public SparseArray<String> getDateValues()
public void setDateValues(SparseArray<String> dateValues)
dateValues
- the new date values collection cached.public CalendarStyle getStyle()
public void setStyle(CalendarStyle style)
style
- the new calendar style.public int getTitleTextPosition()
CalendarElement.LEFT
, CalendarElement.TOP
, CalendarElement.RIGHT
,
CalendarElement.BOTTOM
, CalendarElement.CENTER_HORIZONTAL
, CalendarElement.CENTER_VERTICAL
,
CalendarElement.CENTER
public void setTitleTextPosition(int position)
CalendarElement.LEFT
, CalendarElement.TOP
, CalendarElement.RIGHT
,
CalendarElement.BOTTOM
, CalendarElement.CENTER_HORIZONTAL
, CalendarElement.CENTER_VERTICAL
,
CalendarElement.CENTER
position
- the new title text position.public Typeface getTitleTypeFace()
public void setTitleTypeFace(Typeface typeFace)
typeFace
- the new typeface for the title.public float getTitleTextSize()
public void setTitleTextSize(float size)
size
- the new title text size.public int getTitleBackgroundColor()
public void setTitleBackgroundColor(int color)
color
- the new title background color.public int getTitleTextColor()
public void setTitleTextColor(int color)
color
- the new title text color.public int getSelectedCellBackgroundColor()
public void setSelectedCellBackgroundColor(int color)
color
- the new selected cells background color.public int getSelectedCellTextColor()
public void setSelectedCellTextColor(int color)
color
- the new selected cells text color.public Typeface getSelectedCellTypeFace()
public void setSelectedCellTypeFace(Typeface typeFace)
typeFace
- the new selected cells typeface.public int getTodayCellBackgroundColor()
public void setTodayCellBackgroundColor(int color)
color
- the new today cell background color.public int getDateCellBackgroundColorEnabled()
public int getDateCellBackgroundColorDisabled()
public void setDateCellBackgroundColor(int colorEnabled, int colorDisabled)
colorEnabled
- the new date cells enabled color.colorDisabled
- the new date cells disabled color.public int getDateTextColorEnabled()
public int getDateTextColorDisabled()
public void setDateTextColor(int colorEnabled, int colorDisabled)
colorEnabled
- the new enabled date text color.colorDisabled
- the new disabled date text color.public int getDayNameTextColor()
public void setDayNameTextColor(int color)
color
- the new day names text color.public int getWeekNumberTextColorEnabled()
public int getWeekNumberTextColorDisabled()
public void setWeekNumberTextColor(int colorEnabled, int colorDisabled)
colorEnabled
- the new enabled week number text color.colorDisabled
- the new disabled week number text color.public int getMonthNameTextColorEnabled()
public int getMonthNameTextColorDisabled()
public void setMonthNameTextColor(int colorEnabled, int colorDisabled)
colorEnabled
- the new month name enabled text color.colorDisabled
- the new month name disabled text color.public float getMonthNameTextSize()
public void setMonthNameTextSize(float size)
size
- the new month name text size.public float getMonthNameTextSizeCompact()
public void setMonthNameTextSizeCompact(float size)
size
- the new month name text size for compact mode.public Typeface getMonthNameTypeFace()
public void setMonthNameTypeFace(Typeface typeface)
typeface
- the new month name typeface.public int getMonthNameTextPosition()
CalendarElement.LEFT
, CalendarElement.TOP
, CalendarElement.RIGHT
,
CalendarElement.BOTTOM
, CalendarElement.CENTER_HORIZONTAL
, CalendarElement.CENTER_VERTICAL
,
CalendarElement.CENTER
public void setMonthNameTextPosition(int position)
position
- the new month name text position.public int getDayNameBackgroundColor()
public void setDayNameBackgroundColor(int color)
color
- the new day names background color.public int getWeekNumberBackgroundColorEnabled()
public int getWeekNumberBackgroundColorDisabled()
public void setWeekNumberBackgroundColor(int colorEnabled, int colorDisabled)
colorEnabled
- the new enabled week number background color.colorDisabled
- the new disabled week number background color.public float getDateTextSize()
public void setDateTextSize(float size)
size
- the new date text size.public int getDateTextPosition()
CalendarElement.LEFT
, CalendarElement.TOP
, CalendarElement.RIGHT
,
CalendarElement.BOTTOM
, CalendarElement.CENTER_HORIZONTAL
, CalendarElement.CENTER_VERTICAL
,
CalendarElement.CENTER
public void setDateTextPosition(int position)
CalendarElement.LEFT
, CalendarElement.TOP
, CalendarElement.RIGHT
,
CalendarElement.BOTTOM
, CalendarElement.CENTER_HORIZONTAL
, CalendarElement.CENTER_VERTICAL
,
CalendarElement.CENTER
position
- the new date text position.public int getDayNameTextPosition()
CalendarElement.LEFT
, CalendarElement.TOP
, CalendarElement.RIGHT
,
CalendarElement.BOTTOM
, CalendarElement.CENTER_HORIZONTAL
, CalendarElement.CENTER_VERTICAL
,
CalendarElement.CENTER
public void setDayNameTextPosition(int position)
CalendarElement.LEFT
, CalendarElement.TOP
, CalendarElement.RIGHT
,
CalendarElement.BOTTOM
, CalendarElement.CENTER_HORIZONTAL
, CalendarElement.CENTER_VERTICAL
,
CalendarElement.CENTER
position
- the new day names text position.public int getWeekNumberTextPosition()
CalendarElement.LEFT
, CalendarElement.TOP
, CalendarElement.RIGHT
,
CalendarElement.BOTTOM
, CalendarElement.CENTER_HORIZONTAL
, CalendarElement.CENTER_VERTICAL
,
CalendarElement.CENTER
public void setWeekNumberTextPosition(int position)
CalendarElement.LEFT
, CalendarElement.TOP
, CalendarElement.RIGHT
,
CalendarElement.BOTTOM
, CalendarElement.CENTER_HORIZONTAL
, CalendarElement.CENTER_VERTICAL
,
CalendarElement.CENTER
position
- the new week numbers text position.public float getWeekNumberTextSize()
public void setWeekNumberTextSize(float size)
size
- the new week numbers text size.public Typeface getDateTypeFace()
public void setDateTypeFace(Typeface typeface)
typeface
- the new dates typeface.public Typeface getDayNameTypeFace()
public void setDayNameTypeFace(Typeface typeface)
typeface
- the new day names typeface.public int getDayNamePaddingHorizontal()
public int getDayNamePaddingVertical()
public void setDayNamePadding(int horizontalPadding, int verticalPadding)
horizontalPadding
- the new horizontal padding.verticalPadding
- the new vertical padding.public Typeface getWeekNumberTypeFace()
public void setWeekNumberTypeFace(Typeface typeface)
typeface
- the new week numbers typeface.public int getDayNameTextColorYearModeEnabled()
public int getDayNameTextColorYearModeDisabled()
public void setDayNameTextColorYearMode(int colorEnabled, int colorDisabled)
colorEnabled
- the new enabled day names text color.colorDisabled
- the new disabled day names text color.public float getDayNameTextSize()
public void setDayNameTextSize(float size)
size
- the new day names text size.public float getDayNameTextSizeYearMode()
public void setDayNameTextSizeYearMode(float size)
size
- the new day names text size in year mode.public Typeface getDayNameTypefaceYearMode()
public void setDayNameTypefaceYearMode(Typeface typeface)
typeface
- the new day names typeface in year mode.public int getDateTextColorYearModeEnabled()
public int getDateTextColorYearModeDisabled()
public void setDateTextColorYearMode(int colorEnabled, int colorDisabled)
colorEnabled
- the new enabled dates text color.colorDisabled
- the new disabled dates text color.public float getDateTextSizeYearMode()
public void setDateTextSizeYearMode(float size)
size
- the new dates text size in year mode.public Typeface getDateTypeFaceYearMode()
public void setDateTypeFaceYearMode(Typeface typeface)
typeface
- the new dates typeface in year mode.public boolean getCapitalizeDayNames()
public void setCapitalizeDayNames(boolean capitalizeDayNames)
capitalizeDayNames
- whether day names should use only capital letters.public CalendarTitleCell getTitleCell(long date, CalendarDisplayMode displayMode)
CalendarTextElement
which represents the first row in
the RadCalendarView
usually containing
the current month name and year for the provided date.date
- date from the current monthdisplayMode
- the display modepublic void updateTitle(CalendarDayCell convertCell, long date, CalendarDisplayMode displayMode)
CalendarTextElement
with information about the provided date
according to the current display mode.convertCell
- the cell that will be reused for the new datedate
- date from the current monthdisplayMode
- the display modepublic void updateDayNameCell(CalendarDayCell convertCell, int index)
CalendarCell
with the name of the
day of the week with the specified index according to the current locale.convertCell
- the cell that will be reused for the new day nameindex
- the index of the requested day name elementpublic CalendarDayCell getWeekNumberCell()
CalendarCell
which contains the specified number.
This cell will be used as a number of week.
If the weekNumber is 0
, it will not be displayed.public CalendarRow generateCalendarRow()
public CalendarFragment generateFragment()
public void updateTitleCellStyle(CalendarDayCell titleCell)
titleCell
- the cell to be updated.public void updateWeekNumberCellStyle(CalendarDayCell weekNumberCell)
weekNumberCell
- the cell to be updated.public void updateDateCellStyle(CalendarDayCell dateCell)
dateCell
- the cell to be updated.public void updateDayNameCellStyle(CalendarDayCell dayNameCell)
dayNameCell
- the cell to be updated.public void updateMonthCellStyle(CalendarMonthCell monthCell)
monthCell
- the cell to be updated.public void updateWeekNumberCell(CalendarDayCell convertCell, int weekNumber)
CalendarCell
with information
about the new week number.
If the weekNumber is 0
, it will not be displayed.convertCell
- the cell that will be reused for the new week numberweekNumber
- the week number that will be contained in the cellpublic void updateDateCell(CalendarDayCell convertCell, Long date, List<Event> eventList, boolean includeWeekNumber)
CalendarCell
with information
about the new specified date.convertCell
- the cell that will be reused for the new datedate
- the date that will be represented by this celleventList
- list of event that should be presented by this cellincludeWeekNumber
- a value which indicates whether this cell will also contain the number of the weekpublic void updateCalendarMonthCell(CalendarMonthCell convertCell, long date)
CalendarMonthCell
with information
about the month that contains the specified date.convertCell
- the cell that will be reused for the new datedate
- the date that will be represented by this cellpublic CalendarCell getDayNameCell()
CalendarCell
which contains the name of the day of the week
with the specified index according to the current locale.public CalendarDayCell getDayNameCell(int index)
CalendarCell
which contains the name of the day of the week
with the specified index according to the current locale.index
- the index of the requested day name elementpublic CalendarDayCell getDateCell()
public CalendarMonthCell getMonthCell()
public void reset()
public void applyProcedureToAllCells(Procedure<CalendarCell> procedure)
procedure
- the procedure to be applied to the cells.public void applyProcedureToDateCells(Procedure<CalendarCell> procedure)
procedure
- the procedure to be applied to the date cells.public void applyProcedureToWeekNumberCells(Procedure<CalendarCell> procedure)
procedure
- the procedure to be applied to the week number cells.public void applyProcedureToDayNameCells(Procedure<CalendarCell> procedure)
procedure
- the procedure to be applied to the day name cells.