public interface CalendarView
The CalendarView
is a BBj Interface that defines different calendar views and is used in combination with the BBjCalendarWidget
.
Modifier and Type | Method and Description |
---|---|
static BBjString | CALENDAR_VIEW_DAY_GRID_MONTH() A constant value that defines the |
static BBjString | CALENDAR_VIEW_DAY_GRID_WEEK() A constant value that defines the |
static BBjString | CALENDAR_VIEW_LIST_DAY() A constant value that defines the |
static BBjString | CALENDAR_VIEW_LIST_MONTH() A constant value that defines the |
static BBjString | CALENDAR_VIEW_LIST_WEEK() A constant value that defines the |
static BBjString | CALENDAR_VIEW_LIST_YEAR() A constant value that defines the |
static BBjString | CALENDAR_VIEW_TIME_GRID_DAY() A constant value that defines the |
static BBjString | CALENDAR_VIEW_TIME_GRID_WEEK() A constant value that defines the |
BBjString | getActiveEnd() Returns the calendar's last visible day as a date string. Note: This value is exclusive, as are all ending dates. |
BBjString | getActiveStart() Returns the calendar's first visible day as a date string. |
static BBjVector | getAllViewTypes() Returns a BBjVector filled with all possible calendar view types. |
BBjString | getAsFormattedString() Returns a formatted, i.e. pretty-printed or beautified, stringified JsonObject representation of the CalendarView object. |
JsonObject | getAsJsonObject() Returns a JsonObject representation of the calendar view object. |
BBjString | getAsString() Returns a stringified JsonObject representation of the calendar view object. |
BBjString | getCalendarUuid() Returns a unique ID that identifes the calendar instance to which the view belongs. |
BBjString | getCurrentEnd() Returns the calendar's date that is the end of the interval the view is trying to represent. Note: This value is exclusive, as are all ending dates. |
BBjString | getCurrentStart() Returns the calendar's start date of the interval the view is trying to represent. |
BBjString | getTitle() Returns the view's current title, which is a property for users of the class. It's the title text that's displayed at the top of the header toolbar, such as "September 2020" or "Sep 7 - 13 2020". |
BBjString | getType() Returns the calendar's view type. |
void | setActiveEnd(BBjString activeEndDate!) Sets the calendar's last visible day to the provided date string. Note: This value is exclusive, as are all ending dates. |
void | setActiveStart(BBjString activeStartDate!) Sets the calendar's first visible day to the provided date string. In month view, this value is often before the 1st day of the month, because most months do not begin on the first day-of-week. |
void | setCurrentEnd(BBjString currentEndDate!) Sets the calendar's date that is the end of the interval the view is trying to represent. For example, in month view, this will be the day after the last day of the month. This value disregards hidden days. Note: This value is exclusive, as are all ending dates. |
void | setCurrentStart(BBjString currentStartDate!) Sets the calendar's start date of the interval the view is trying to represent. For example, in month view, this will be the first of the month. This value disregards hidden days. |
void | setType(BBjString viewType!) Sets the calendar's view type using one of the view type constants such as |
public static BBjString CALENDAR_VIEW_DAY_GRID_MONTH()
A constant value that defines the dayGridMonth
(grid view for the month) calendar view.
public static BBjString CALENDAR_VIEW_DAY_GRID_WEEK()
A constant value that defines the dayGridWeek
(grid view for the week) calendar view.
public static BBjString CALENDAR_VIEW_LIST_DAY()
A constant value that defines the listDay
(agenda for the day) calendar view.
public static BBjString CALENDAR_VIEW_LIST_MONTH()
A constant value that defines the listMonth
(agenda for the month) calendar view.
public static BBjString CALENDAR_VIEW_LIST_WEEK()
A constant value that defines the listWeek
(agenda for the week) calendar view.
public static BBjString CALENDAR_VIEW_LIST_YEAR()
A constant value that defines the listYear
(agenda for the year) calendar view.
public static BBjString CALENDAR_VIEW_TIME_GRID_DAY()
A constant value that defines the timeGridDay
(time grid view for the day) calendar view.
public static BBjString CALENDAR_VIEW_TIME_GRID_WEEK()
A constant value that defines the timeGridWeek
(time grid view for the week) calendar view.
public BBjString getActiveEnd()
Returns the calendar's last visible day as a date string.
Note: This value is exclusive, as are all ending dates.
Date and Time Formats for information on ISO 8601 date/time formats.
public BBjString getActiveStart()
Returns the calendar's first visible day as a date string.
Date and Time Formats for information on ISO 8601 date/time formats.
public static BBjVector getAllViewTypes()
Returns a BBjVector filled with all possible calendar view types.
CalendarAPI.CALENDAR_VIEW_DAY_GRID_MONTH()
, CalendarAPI.CALENDAR_VIEW_TIME_GRID_WEEK()
, etc.public BBjString getAsFormattedString()
Returns a formatted, i.e. pretty-printed or beautified, stringified JsonObject representation of the CalendarView object.
public JsonObject getAsJsonObject()
Returns a JsonObject representation of the calendar view object.
JsonObject for information about an object in JSON format.
public BBjString getAsString()
Returns a stringified JsonObject representation of the calendar view object.
public BBjString getCalendarUuid()
Returns a unique ID that identifes the calendar instance to which the view belongs.
public BBjString getCurrentEnd()
Returns the calendar's date that is the end of the interval the view is trying to represent.
Note: This value is exclusive, as are all ending dates.
Date and Time Formats for information on ISO 8601 date/time formats.
public BBjString getCurrentStart()
Returns the calendar's start date of the interval the view is trying to represent.
Date and Time Formats for information on ISO 8601 date/time formats.
public BBjString getTitle()
Returns the view's current title, which is a property for users of the class. It's the title text that's displayed at the top of the header toolbar, such as "September 2020" or "Sep 7 - 13 2020".
public BBjString getType()
Returns the calendar's view type.
CalendarAPI.CALENDAR_VIEW_DAY_GRID_MONTH()
, CalendarAPI.CALENDAR_VIEW_TIME_GRID_WEEK()
, etc.public void setActiveEnd(BBjString activeEndDate!)
Sets the calendar's last visible day to the provided date string.
Note: This value is exclusive, as are all ending dates.
BBjString
activeEndDate! A date string denoting the calendar's last visible day. Date and Time Formats for information on ISO 8601 date/time formats.
public void setActiveStart(BBjString activeStartDate!)
Sets the calendar's first visible day to the provided date string. In month view, this value is often before the 1st day of the month, because most months do not begin on the first day-of-week.
BBjString
activeStartDate! A date string denoting the calendar's first visible day. Date and Time Formats for information on ISO 8601 date/time formats.
public void setCurrentEnd(BBjString currentEndDate!)
Sets the calendar's date that is the end of the interval the view is trying to represent. For example, in month view, this will be the day after the last day of the month. This value disregards hidden days.
Note: This value is exclusive, as are all ending dates.
BBjString
currentEndDate! A date string denoting the calendar interval ending date. Date and Time Formats for information on ISO 8601 date/time formats.
public void setCurrentStart(BBjString currentStartDate!)
Sets the calendar's start date of the interval the view is trying to represent. For example, in month view, this will be the first of the month. This value disregards hidden days.
BBjString
currentStartDate! A date string denoting the calendar interval starting date. Date and Time Formats for information on ISO 8601 date/time formats.
public void setType(BBjString viewType!)
Sets the calendar's view type using one of the view type constants such as CalendarAPI.CALENDAR_VIEW_DAY_GRID_MONTH()
, CalendarAPI.CALENDAR_VIEW_TIME_GRID_WEEK()
, etc.
BBjString
viewType! One of the view type constants such as CalendarAPI.CALENDAR_VIEW_DAY_GRID_MONTH()
, CalendarAPI.CALENDAR_VIEW_TIME_GRID_WEEK()
, etc.