public interface CalendarEntry
CalendarEntry
is a BBj Interface that contains information for a BBjCalendarWidget's entry (event, appointment, etc.).
Note: The values for date/time parameters should be in ISO 8601 format as in:
YYYY-MM-DD
, e.g. "1997-07-16" for dates.YYYY-MM-DDThh:mm:ss
, e.g. "1997-07-16T19:20:00" for dates and times.YYYY-MM-DDThh:mm:ssZ
, e.g. "1997-07-16T19:20:00-06:00" for dates and times with timezone information.Note: All ending date/time parameters are exclusive. For example, an event with the end of 2018-09-03 will appear to span through 2018-09-02 but end before the start of 2018-09-03.
Modifier and Type | Method and Description |
---|---|
void | addClassName(BBjString className!) Adds the provided class name string (or CSS style) such as
This method can be used in place of the
Here's an example of how you can use custom class names and the BBjCalendarWidget's
|
void | addExtendedProperty(BBjString key!, BBjString value!) Adds the provided extended property to the entry's HashMap of extended properties given the property key and value. Note that this method simply puts the provide key/value pair in the extended properties HashMap. If an entry in the HashMap already existed with that particular key, then it will be updated with the provided value.
This method can be used in place of the |
void | addTag(BBjString tag!) Adds the provided tag to the entry's vector of tags.
This method can be used in place of the |
static BBjString | CALENDAR_ENTRY_DISPLAY_AUTO() A constant value that defines the entry's display style as 'auto' (the default display value). When in daygrid view, it renders the entry as a solid rectangle if it is all-day or multi-day. If it's a timed entry, it renders the entry as a colored a dot. When in other views, the entry will render normally. |
static BBjString | CALENDAR_ENTRY_DISPLAY_BACKGROUND() A constant value that defines the entry's display style as 'background' to highlight the entry's background. This modifies the background of the entry's date/time frame in the calendar. |
static BBjString | CALENDAR_ENTRY_DISPLAY_BLOCK() A constant value that defines the entry's display style as 'block' When in daygrid view, it renders the entry as a solid rectangle. When in other views, the entry will render normally. |
static BBjString | CALENDAR_ENTRY_DISPLAY_INVERSE_BACKGROUND() A constant value that defines the entry's display style as 'inverse-background' to inversely highlight the entry's background. This inversely modifies the background of the entry's date/time frame in the calendar. |
static BBjString | CALENDAR_ENTRY_DISPLAY_LIST_ITEM() A constant value that defines the entry's display style as 'list-item' When in daygrid view, it renders the entry as a colored dot. When in other views, the entry will render normally. |
static BBjString | CALENDAR_ENTRY_DISPLAY_NONE() A constant value that defines the entry's display style as 'none' prevent the entry from being displayed. This hides the entry on the calendar. |
BBjNumber | containsAllTags(BBjVector tags!) Returns whether an entry contains all the provided tags in the entry's vector of tags. |
BBjNumber | containsAllTags(BBjString tags!) Returns whether a
This is similar to the |
BBjNumber | containsAnyTag(BBjVector tags!) Returns whether an entry contains any of the provided tags in the entry's vector of tags. |
BBjNumber | containsAnyTag(BBjString tags!) Returns whether an entry contains any of the provided tags in the entry's vector of tags.
This is similar to the |
BBjNumber | containsExtendedPropertyKey(BBjString key!) Returns whether the provided extended property key exists the entry's HashMap of extended properties. |
BBjNumber | containsTag(BBjString tag!) Returns whether the provided tag exists the entry's vector of tags. |
BBjNumber | getAllDay() Returns an entry's all-day status that determines if the entry is shown in the "all-day" section of the view, if applicable. |
BBjString | getAsFormattedString() Returns a formatted, i.e. pretty-printed or beautified, stringified JsonObject representation of the |
JsonObject | getAsJsonObject() Returns a JsonObject representation of the |
BBjString | getAsString() Returns a stringified JsonObject representation of the |
BBjString | getBackgroundColor() Returns an entry's background color. |
BBjString | getBorderColor() Returns an entry's border color. |
BBjString | getClassName() DEPRECATED Returns an entry's a class name string. |
BBjVector | getClassNames() Returns an entry's class names (or CSS styles) in a vector of strings. |
BBjString | getColor() Returns an entry's combined background and border color, or null if the
Note: For a quick way to set a |
BBjString | getDescription() Returns an entry's extended information that can be used to further describe the entry beyond the title text. |
BBjString | getDisplay() Returns an entry's display style. |
BBjNumber | getEnableDurationEditable() Returns the entry's duration editable status that determines if the entry's duration can be modified by the user by dragging (resizing). |
BBjNumber | getEnableEditable() Returns the entry's editable status that determines if the entry can be modified by the user. |
BBjNumber | getEnableEntryOverlap() Returns an entry's overlap status that determines if the entries may be dragged/resized over one another. |
BBjNumber | getEnableStartEditable() Returns the entry's start time editable status that determines if the entry's start time can be modified by the user by dragging (resizing). |
BBjString | getEnd() Returns an entry's exclusive ending date/time. |
HashMap | getExtendedProperties() Returns an entry's custom key/value string pairs that define the entry's custom properties |
BBjString | getExtendedPropertyValue(BBjString key!) Returns the value of the provided extended property if the key exists in the entry's HashMap of extended properties. |
BBjString | getGroupId() Returns an entry's group ID. Entries that share a groupId will be dragged and resized together automatically. |
BBjString | getId() Returns an entry's unique ID if it has previously been set. If the entry's ID was set at creation time, it will be set to the same value as the UUID, which is guaranteed to be set automatically. |
BBjString | getLocation() Returns an entry's extended information that can be used to further describe the entry beyond the title text. |
BBjString | getStart() Returns an entry's starting date/time. |
BBjVector | getTags() Returns an entry's tags in a vector of strings. |
BBjString | getTextColor() Returns an entry's text color. |
BBjString | getTitle() Returns an entry's optional unique ID if it has previously been set. |
BBjString | getUrl() Returns an entry's associated URL that may be visited when this entry is clicked by the user. |
BBjString | getUuid() Returns an entry's unique UUID that is automatically generated for all entries. |
void | removeClassName(BBjString className!) Removes the provided class name string (or CSS style) from the entry's vector of class names. |
void | removeExtendedProperty(BBjString key!) Removes the extended property from the entry's HashMap of extended properties given the property key. |
void | removeTag(BBjString tag!) Removes the provided tag from the entry's vector of tags. |
void | setAllDay(BBjNumber allDay!) Sets an entry's all-day status that determines if the entry is shown in the "all-day" section of the view, if applicable. |
void | setBackgroundColor(BBjString backgroundColor!) Sets an entry's background color.
Note: Colors may be specified using any valid CSS color syntax, so |
void | setBorderColor(BBjString borderColor!) Sets an entry's border color.
Note: Colors may be specified using any valid CSS color syntax, so |
void | setClassName(BBjString className!) DEPRECATED Sets an entry's class name string (or CSS style) such as
See the |
void | setClassNames(BBjVector classNames!) Sets an entry's class names (or CSS styles) from a BBjVector that determine the HTML class that's associated with the entry. Class names should NOT be preceeded by a period, so possible class names could be
Note that this sets all the class names at once. It's possible to add class names, regardless of whether they have been set or not, using the
Here's an example of how you can use custom class names and the BBjCalendarWidget's
|
void | setClassNames(BBjString classNames!) Sets an entry's class names (or CSS styles) from a comma-delimited string that determine the HTML class that's associated with the entry. Class names should NOT be preceeded by a period, so possible class names could be
This is similar to the
Note that this sets all the class names at once. It's possible to add class names, regardless of whether they have been set or not, using the
Here's an example of how you can use custom class names and the BBjCalendarWidget's
|
void | setColor(BBjString color!) Sets an entry's combined background and border color.
Note: For a quick way to set a
Note: This is a shorthand way of specifying the backgroundColor and borderColor at the same time. The color will be passed
to the FullCalendar, but it internally sets the
Note: Colors may be specified using any valid CSS color syntax, so |
void | setColors(BBjString backgroundColor!, BBjString borderColor!, BBjString textColor!) A convenience method that sets an entry's background, border, and text colors in a single method call.
Note: Colors may be specified using any valid CSS color syntax, so |
void | setDescription(BBjString description!) Sets an entry's extended information that can be used to further describe the entry beyond the title text. Note that the description property is not one of the standard FullCalendar fields. The BBjCalendarWidget will manage this field automatically so that you don't need to use the set/getExtendedProperties() methods in order to work with this property. |
void | setDisplay(BBjString display!) Sets an entry's alternate rendering style. This overrides the calendar's master EntryDisplay option for this specific entry. The display style may be one of the following constants:
|
void | setEnableDurationEditable(BBjNumber durationEditable!) Sets an entry's duration editable status that determines if the entry's duration can be modified by the user by dragging (resizing). This overrides the calendar's master EnableDurationEditable option for this specific entry.
Note: See the |
void | setEnableEditable(BBjNumber editable!) Sets an entry's editable status that determines if the user can modify the entry, i.e. change the entry's starting date/time and duration.
This overrides the calendar's master EnableEditable option for this specific entry.
Note: This determines if the events can be dragged and resized and enables or disables both settings simultaneously. IOW, it's a shorhand way of setting both
the EnableStartEditable and EnableDurationEditable properties at the same time. If you don’t want to set both, use the more specific
|
void | setEnableEntryOverlap(BBjNumber overlap!) Sets an entry's overlap status that determines if the entries may be dragged/resized over one another. |
void | setEnableStartEditable(BBjNumber startEditable!) Sets an entry's start time editable status that determines if the entry's start time can be modified by the user by dragging (resizing). This overrides the calendar's master EnableStartEditable option for this specific entry.
Note: See the |
void | setEnd(BBjString end!) Sets an entry's exclusive ending date/time. If the entry is explicitly all-day, then the time portion will be ignored. |
void | setExtendedProperties(HashMap extendedProperties!) Sets an entry's extended properties, i.e. custom properties. |
void | setGroupId(BBjString groupId!) Sets an entry's group ID. Entries that share a groupId will be dragged and resized together automatically. |
void | setId(BBjString id!) Sets an entry's optional unique ID that can be used later to identify the entry. If the entry's ID is not provided, it will be set to the same value as the UUID, which is guaranteed to be set automatically. |
void | setLocation(BBjString location!) Sets an entry's location that can be used to define a location for the entry. Note that the location property is not one of the standard FullCalendar fields. The BBjCalendarWidget will manage this field automatically so that you don't need to use the set/getExtendedProperties() methods in order to work with this property. |
void | setStart(BBjString start!) Sets an entry's starting date/time. If the entry is explicitly all-day, then the time portion will be ignored. |
void | setTags(BBjVector tags!) Sets an entry's tags that can be used for a variety of purposes such as hiding or showing entries based on given tags. |
void | setTags(BBjString tags!) Sets an entry's tags that can be used for a variety of purposes such as hiding or showing entries based on given tags.
This is similar to the |
void | setTextColor(BBjString textColor!) Sets an entry's text color.
Note: Colors may be specified using any valid CSS color syntax, so |
void | setTitle(BBjString title!) Sets entry's title that is the description/summary text that will appear on an entry. |
void | setUrl(BBjString url!) Sets an entry's associated URL that may be visited when this entry is clicked by the user. |
public void addClassName(BBjString className!)
Adds the provided class name string (or CSS style) such as "myclass1"
to the entry's vector of class names.
This method can be used in place of the setClassNames()
method as it adds the provided class name to the entry's vector of
class names. It may be easier to call this method if you only need to set a few tags, as the setClassNames()
method requires
you to create and populate a BBjVector (unless you use the version that takes a comma-delimited string).
Here's an example of how you can use custom class names and the BBjCalendarWidget's injectCSS()
method to affect a calendar entry's display:
rem Create a calendar entry for 3PM today and give it a custom CSS class name of "small-text", then add it to the calendar myEntry! = CalendarAPI.createCalendarEntry("Write Advantage Article", date(0, "%Yl-%Mz-%Dz") + "T15:00:00") myEntry!.addClassName("small-text") myCal!.addEntry(myEntry!)
rem Inject custom CSS to change the event's text size myCal!.injectCss(" .small-text div { font-size: 7px; } ")
BBjString
className! The class name (or CSS style) such as "myclass1"
to add to the entry. BBj 21.12
public void addExtendedProperty(BBjString key!, BBjString value!)
Adds the provided extended property to the entry's HashMap of extended properties given the property key and value.
Note that this method simply puts the provide key/value pair in the extended properties HashMap. If an entry in the HashMap already existed with that particular key, then it will be updated with the provided value.
This method can be used in place of the setExtendedProperties()
method as it adds the provided property to the entry's HashMap of extended properties. It may
be easier to call this method if you only need to set a few extended properties, as the setExtendedProperties()
method requires you to create and
populate a HashMap.
BBjString
key! The key of the extended property to add to the entry.BBjString
value! The value of the extended property to add to the entry. BBj 21.12
public void addTag(BBjString tag!)
Adds the provided tag to the entry's vector of tags.
This method can be used in place of the setTags()
method as it adds the provided tag to the entry's vector of tags. It may
be easier to call this method if you only need to set a few tags, as the setTags()
method requires you to create and
populate a BBjVector or a comma-delimited string.
BBjString
tag! The tag to add to the entry.public static BBjString CALENDAR_ENTRY_DISPLAY_AUTO()
A constant value that defines the entry's display style as 'auto' (the default display value).
When in daygrid view, it renders the entry as a solid rectangle if it is all-day or multi-day. If it's a timed entry, it renders the entry as a colored a dot. When in other views, the entry will render normally.
public static BBjString CALENDAR_ENTRY_DISPLAY_BACKGROUND()
A constant value that defines the entry's display style as 'background' to highlight the entry's background.
This modifies the background of the entry's date/time frame in the calendar.
public static BBjString CALENDAR_ENTRY_DISPLAY_BLOCK()
A constant value that defines the entry's display style as 'block'
When in daygrid view, it renders the entry as a solid rectangle. When in other views, the entry will render normally.
public static BBjString CALENDAR_ENTRY_DISPLAY_INVERSE_BACKGROUND()
A constant value that defines the entry's display style as 'inverse-background' to inversely highlight the entry's background.
This inversely modifies the background of the entry's date/time frame in the calendar.
public static BBjString CALENDAR_ENTRY_DISPLAY_LIST_ITEM()
A constant value that defines the entry's display style as 'list-item'
When in daygrid view, it renders the entry as a colored dot. When in other views, the entry will render normally.
public static BBjString CALENDAR_ENTRY_DISPLAY_NONE()
A constant value that defines the entry's display style as 'none' prevent the entry from being displayed.
This hides the entry on the calendar.
public BBjNumber containsAllTags(BBjVector tags!)
Returns whether an entry contains all the provided tags in the entry's vector of tags.
public BBjNumber containsAllTags(BBjString tags!)
Returns whether a CalendarEntry
contains all the provided tags in comma-delimted string in the entry's vector of tags.
This is similar to the containsAllTags()
method that takes a BBjVector except that it takes a comma-delimted string of tags for succinctness.
BBjString
tags! A comma-delimted string of tags such as "work, programming, meeting".public BBjNumber containsAnyTag(BBjVector tags!)
Returns whether an entry contains any of the provided tags in the entry's vector of tags.
BBjVector
tags! A BBjVector filled with the tags of interest.public BBjNumber containsAnyTag(BBjString tags!)
Returns whether an entry contains any of the provided tags in the entry's vector of tags.
This is similar to the containsAnyTag()
method that takes a BBjVector except that it takes a comma-delimted string of tags for succinctness.
BBjString
tags! A comma-delimted string of tags such as "work, programming, meeting".public BBjNumber containsExtendedPropertyKey(BBjString key!)
Returns whether the provided extended property key exists the entry's HashMap of extended properties.
BBjString
key! The key that you're checking to see if it exists in the entry's extended properties. BBj 21.12
public BBjNumber containsTag(BBjString tag!)
Returns whether the provided tag exists the entry's vector of tags.
public BBjNumber getAllDay()
Returns an entry's all-day status that determines if the entry is shown in the "all-day" section of the view, if applicable.
public BBjString getAsFormattedString()
Returns a formatted, i.e. pretty-printed or beautified, stringified JsonObject representation of the CalendarEntry
object.
public JsonObject getAsJsonObject()
Returns a JsonObject representation of the CalendarEntry
object.
JsonObject for information about an object in JSON format.
public BBjString getAsString()
Returns a stringified JsonObject representation of the CalendarEntry
object.
public BBjString getBackgroundColor()
Returns an entry's background color.
public BBjString getBorderColor()
Returns an entry's border color.
public BBjString getClassName()
DEPRECATED Returns an entry's a class name string.
Deprecated in BBj 21.12 because this only supports a single class name and the class has methods that support mutliple class names. Please use the getClassNames()
method instead.
public BBjVector getClassNames()
Returns an entry's class names (or CSS styles) in a vector of strings.
public BBjString getColor()
Returns an entry's combined background and border color, or null if the CalendarEvent
object was provided
by the FullCalendar. This is because the setColor()
method is a shorthand way of specifying the
backgroundColor and borderColor at the same time. The color will be passed to the FullCalendar, but it internally sets
the backgroundColor
and borderColor
to the value of the specified color and discards the given
color. Therefore, you can set colors with the setColor()
method, but this getColor()
method may not return anything if you're working with a CalendarEvent
object that was returned from the FullCalendar.
Note: For a quick way to set a CalendarEvent
's colors, see the setColors(backgroundColor!, borderColor!, textColor!)
method.
public BBjString getDescription()
Returns an entry's extended information that can be used to further describe the entry beyond the title text.
public BBjString getDisplay()
Returns an entry's display style.
public BBjNumber getEnableDurationEditable()
Returns the entry's duration editable status that determines if the entry's duration can be modified by the user by dragging (resizing).
public BBjNumber getEnableEditable()
Returns the entry's editable status that determines if the entry can be modified by the user.
public BBjNumber getEnableEntryOverlap()
Returns an entry's overlap status that determines if the entries may be dragged/resized over one another.
public BBjNumber getEnableStartEditable()
Returns the entry's start time editable status that determines if the entry's start time can be modified by the user by dragging (resizing).
public BBjString getEnd()
Returns an entry's exclusive ending date/time.
public HashMap getExtendedProperties()
Returns an entry's custom key/value string pairs that define the entry's custom properties
public BBjString getExtendedPropertyValue(BBjString key!)
Returns the value of the provided extended property if the key exists in the entry's HashMap of extended properties.
BBjString
key! The extended property key that you wish to get the associated value BBj 21.12
public BBjString getGroupId()
Returns an entry's group ID. Entries that share a groupId will be dragged and resized together automatically.
public BBjString getId()
Returns an entry's unique ID if it has previously been set. If the entry's ID was set at creation time, it will be set to the same value as the UUID, which is guaranteed to be set automatically.
public BBjString getLocation()
Returns an entry's extended information that can be used to further describe the entry beyond the title text.
public BBjString getStart()
Returns an entry's starting date/time.
public BBjVector getTags()
Returns an entry's tags in a vector of strings.
public BBjString getTextColor()
Returns an entry's text color.
public BBjString getTitle()
Returns an entry's optional unique ID if it has previously been set.
public BBjString getUrl()
Returns an entry's associated URL that may be visited when this entry is clicked by the user.
public BBjString getUuid()
Returns an entry's unique UUID that is automatically generated for all entries.
public void removeClassName(BBjString className!)
Removes the provided class name string (or CSS style) from the entry's vector of class names.
BBjString
className! The class name (or CSS style) to remove from the entry's vector of class names. BBj 21.12
public void removeExtendedProperty(BBjString key!)
Removes the extended property from the entry's HashMap of extended properties given the property key.
BBjString
key! The extended property key to remove from the entry's HashMap of extended properties. BBj 21.12
public void removeTag(BBjString tag!)
Removes the provided tag from the entry's vector of tags.
BBjString
tag! The tag to remove from the entry's vector of tags.public void setAllDay(BBjNumber allDay!)
Sets an entry's all-day status that determines if the entry is shown in the "all-day" section of the view, if applicable.
BBjNumber
allDay! A BBjNumber acting as a boolean that determines if the entry lasts all day (1) or not (0).public void setBackgroundColor(BBjString backgroundColor!)
Sets an entry's background color.
Note: Colors may be specified using any valid CSS color syntax, so "red"
, "rgb(255, 0, 0)"
, "#ff0000"
, "#f00"
, "hsl(0, 100%, 50%)"
, and all forms of those formats that include an alpha channel are valid methods of denoting the color red.
BBjString
backgroundColor! A string that contains the color for the entry's background.public void setBorderColor(BBjString borderColor!)
Sets an entry's border color.
Note: Colors may be specified using any valid CSS color syntax, so "red"
, "rgb(255, 0, 0)"
, "#ff0000"
, "#f00"
, "hsl(0, 100%, 50%)"
, and all forms of those formats that include an alpha channel are valid methods of denoting the color red.
BBjString
borderColor! A string that contains the color for the entry's border.public void setClassName(BBjString className!)
DEPRECATED Sets an entry's class name string (or CSS style) such as "myclass1"
, that determines the HTML class that's associated with the entry.
See the setClassNames()
methods to set multiple class names.
BBjString
className! A string that contains a class name string (or CSS style), such as "myclass1"
, that determines the HTML class that's associated with the entry. Deprecated in BBj 21.12 because this only supports a single class name and the class has methods that support mutliple class names. Please use the either the setClassNames(BBjVector)
or setClassNames(BBjString)
method instead.
public void setClassNames(BBjVector classNames!)
Sets an entry's class names (or CSS styles) from a BBjVector that determine the HTML class that's associated with the entry. Class names should NOT be preceeded by a period, so possible class names could be work
or personal
.
Note that this sets all the class names at once. It's possible to add class names, regardless of whether they have been set or not, using the addClassName()
method.
To remove a single class name from the entry, you can call the removeClassName()
method, or get all the class names in a vector, remove the undesired classes, then set the class names.
Here's an example of how you can use custom class names and the BBjCalendarWidget's injectCSS()
method to affect a calendar entry's display:
rem Create a calendar entry for 3PM today and give it a custom CSS class name of "small-text", then add it to the calendar myEntry! = CalendarAPI.createCalendarEntry("Write Advantage Article", date(0, "%Yl-%Mz-%Dz") + "T15:00:00") myEntry!.addClassName("small-text") myCal!.addEntry(myEntry!)
rem Inject custom CSS to change the event's text size myCal!.injectCss(" .small-text div { font-size: 7px; } ")
BBjVector
classNames! A vector of strings with the entry's class names (or CSS styles) such as "myclass1"
, that determines the HTML class that's associated with the entry.public void setClassNames(BBjString classNames!)
Sets an entry's class names (or CSS styles) from a comma-delimited string that determine the HTML class that's associated with the entry. Class names should NOT be preceeded by a period, so possible class names could be work
or personal
.
This is similar to the setClassNames()
method that takes a BBjVector except that it takes a comma-delimted string of class names for succinctness.
Note that this sets all the class names at once. It's possible to add class names, regardless of whether they have been set or not, using the addClassName()
method.
To remove a single class name from the entry, you can call the removeClassName()
method, or get all the class names in a vector, remove the undesired classes, then set the class names.
Here's an example of how you can use custom class names and the BBjCalendarWidget's injectCSS()
method to affect a calendar entry's display:
rem Create a calendar entry for 3PM today and give it a custom CSS class name of "small-text", then add it to the calendar myEntry! = CalendarAPI.createCalendarEntry("Write Advantage Article", date(0, "%Yl-%Mz-%Dz") + "T15:00:00") myEntry!.addClassName("small-text") myCal!.addEntry(myEntry!)
rem Inject custom CSS to change the event's text size myCal!.injectCss(" .small-text div { font-size: 7px; } ")
BBjString
classNames! A comma-delimted string of class names such as "work, personal"
. BBj 21.12
public void setColor(BBjString color!)
Sets an entry's combined background and border color.
Note: For a quick way to set a CalendarEvent
's colors, see the setColors(backgroundColor!, borderColor!, textColor!)
method.
Note: This is a shorthand way of specifying the backgroundColor and borderColor at the same time. The color will be passed
to the FullCalendar, but it internally sets the backgroundColor
and borderColor
to the value of the
specified color and discards the given color. Therefore, you can set colors with this method, but the corresponding getColor()
method may not return anything if you're working with a CalendarEvent
object that was returned from the FullCalendar.
Note: Colors may be specified using any valid CSS color syntax, so "red"
, "rgb(255, 0, 0)"
, "#ff0000"
, "#f00"
, "hsl(0, 100%, 50%)"
, and all forms of those formats that include an alpha channel are valid methods of denoting the color red.
BBjString
color! A string that contains the color for the entry's background and border.public void setColors(BBjString backgroundColor!, BBjString borderColor!, BBjString textColor!)
A convenience method that sets an entry's background, border, and text colors in a single method call.
Note: Colors may be specified using any valid CSS color syntax, so "red"
, "rgb(255, 0, 0)"
, "#ff0000"
, "#f00"
, "hsl(0, 100%, 50%)"
, and all forms of those formats that include an alpha channel are valid methods of denoting the color red.
BBjString
color! A string that contains the color for the entry's background and border.public void setDescription(BBjString description!)
Sets an entry's extended information that can be used to further describe the entry beyond the title text. Note that the description property is not one of the standard FullCalendar fields. The BBjCalendarWidget will manage this field automatically so that you don't need to use the set/getExtendedProperties() methods in order to work with this property.
BBjString
description! A string that's used to further describe the entry beyond the title text. FullCalendar Event Object for information about non-standard fields.
public void setDisplay(BBjString display!)
Sets an entry's alternate rendering style. This overrides the calendar's master EntryDisplay option for this specific entry.
The display style may be one of the following constants:
CalendarAPI.CALENDAR_ENTRY_DISPLAY_AUTO()
- (default) When in daygrid, renders the event as a solid rectangle if it is all-day or multi-day. If a timed event, will render it with a dot. When in other views, will render normally.CalendarAPI.CALENDAR_ENTRY_DISPLAY_BLOCK()
- When in daygrid, renders the event as a solid rectangle. When in other views, will render normally.CalendarAPI.CALENDAR_ENTRY_DISPLAY_LIST_ITEM()
- When in daygrid, renders the event with a dot. When in other views, will render normally.CalendarAPI.CALENDAR_ENTRY_DISPLAY_BACKGROUND()
- Highlights the background of the entry's container.CalendarAPI.CALENDAR_ENTRY_DISPLAY_INVERSE_BACKGROUND()
- Hightlights the spans of time not occupied by an entry, or the opposite of the background.CalendarAPI.CALENDAR_ENTRY_DISPLAY_NONE()
- Won't render the event at all.BBjString
display! A constant that denotes the desired entry display style.public void setEnableDurationEditable(BBjNumber durationEditable!)
Sets an entry's duration editable status that determines if the entry's duration can be modified by the user by dragging (resizing). This overrides the calendar's master EnableDurationEditable option for this specific entry.
Note: See the setEnableEditable()
method if you wish to set the
setEnableStartEditable()
and setEnableDurationEditable()
parameters simultaneously. That method also contains sample code that demonstrates different ways to affect an entry's editability.
BBjNumber
durationEditable! A BBjNumber acting as a boolean that indicates whether the entry's duration can be modified by the user, where 1 = editable and 0 = not editable.public void setEnableEditable(BBjNumber editable!)
Sets an entry's editable status that determines if the user can modify the entry, i.e. change the entry's starting date/time and duration.
This overrides the calendar's master EnableEditable option for this specific entry.
Note: This determines if the events can be dragged and resized and enables or disables both settings simultaneously. IOW, it's a shorhand way of setting both
the EnableStartEditable and EnableDurationEditable properties at the same time. If you don’t want to set both, use the more specific
setEnableStartEditable()
or setEnableDurationEditable()
methods instead.
rem Example 1: The user can move and resize the entry, i.e. change the starting time/date and the duration myEntry! = CalendarAPI.createCalendarEntry("Write Advantage Article", date(0, "%Yl-%Mz-%Dz") + "T15:00:00") myEntry!.setEnableEditable(1)
rem Example 2: The user can move and resize the entry, i.e. change the starting time/date and the duration myEntry! = CalendarAPI.createCalendarEntry("Write Advantage Article", date(0, "%Yl-%Mz-%Dz") + "T15:00:00") myEntry!.setEnableStartEditable(1) myEntry!.setEnableDurationEditable(1)
rem Example 3: The user can change the entry's starting time/date but not the duration myEntry! = CalendarAPI.createCalendarEntry("Write Advantage Article", date(0, "%Yl-%Mz-%Dz") + "T15:00:00") myEntry!.setEnableStartEditable(1)
rem Example 4: The user can change the entry's duration but not the starting time/date myEntry! = CalendarAPI.createCalendarEntry("Write Advantage Article", date(0, "%Yl-%Mz-%Dz") + "T15:00:00") myEntry!.setEnableDurationEditable(1)
BBjNumber
editable! A BBjNumber acting as a boolean that indicates whether the entry can be modified by the user, where 1 = editable and 0 = read-only.public void setEnableEntryOverlap(BBjNumber overlap!)
Sets an entry's overlap status that determines if the entries may be dragged/resized over one another.
BBjNumber
overlap! A BBjNumber acting as a boolean that determines if entries can overlap one another (1) or not (0).public void setEnableStartEditable(BBjNumber startEditable!)
Sets an entry's start time editable status that determines if the entry's start time can be modified by the user by dragging (resizing). This overrides the calendar's master EnableStartEditable option for this specific entry.
Note: See the setEnableEditable()
method if you wish to set the
setEnableStartEditable()
and setEnableDurationEditable()
parameters simultaneously. That method also contains sample code that demonstrates different ways to affect an entry's editability.
BBjNumber
startEditable! A BBjNumber acting as a boolean that indicates whether the entry's starting time can be modified by the user, where 1 = editable and 0 = not editable.public void setEnd(BBjString end!)
Sets an entry's exclusive ending date/time. If the entry is explicitly all-day, then the time portion will be ignored.
BBjString
end! A string that contains the ending date/time for the entry.public void setExtendedProperties(HashMap extendedProperties!)
Sets an entry's extended properties, i.e. custom properties.
HashMap
extendedProperties! A HashMap of custom key/value string pairs that define the entry's custom properties.public void setGroupId(BBjString groupId!)
Sets an entry's group ID. Entries that share a groupId will be dragged and resized together automatically.
BBjString
groupId! A string that contains the entry's group ID. Entries that share a groupId will be dragged and resized together automatically.public void setId(BBjString id!)
Sets an entry's optional unique ID that can be used later to identify the entry. If the entry's ID is not provided, it will be set to the same value as the UUID, which is guaranteed to be set automatically.
BBjString
id! A string to uniquely identify the entry.public void setLocation(BBjString location!)
Sets an entry's location that can be used to define a location for the entry. Note that the location property is not one of the standard FullCalendar fields. The BBjCalendarWidget will manage this field automatically so that you don't need to use the set/getExtendedProperties() methods in order to work with this property.
BBjString
location! A string that's used to define a location for the entry. FullCalendar Event Object for information about non-standard fields.
public void setStart(BBjString start!)
Sets an entry's starting date/time. If the entry is explicitly all-day, then the time portion will be ignored.
BBjString
start! A string that contains the starting date/time for the entry.public void setTags(BBjVector tags!)
Sets an entry's tags that can be used for a variety of purposes such as hiding or showing entries based on given tags.
BBjVector
tags! A vector of strings with the entry's tags.public void setTags(BBjString tags!)
Sets an entry's tags that can be used for a variety of purposes such as hiding or showing entries based on given tags.
This is similar to the setTags()
method that takes a BBjVector except that it takes a comma-delimted string of tags for succinctness.
BBjString
tags! A comma-delimted string of tags such as "work, programming".public void setTextColor(BBjString textColor!)
Sets an entry's text color.
Note: Colors may be specified using any valid CSS color syntax, so "red"
, "rgb(255, 0, 0)"
, "#ff0000"
, "#f00"
, "hsl(0, 100%, 50%)"
, and all forms of those formats that include an alpha channel are valid methods of denoting the color red.
BBjString
textColor! A string that contains the color for the entry's text.public void setTitle(BBjString title!)
Sets entry's title that is the description/summary text that will appear on an entry.
BBjString
title! A string to be used as the entry's title.public void setUrl(BBjString url!)
Sets an entry's associated URL that may be visited when this entry is clicked by the user.
BBjString
url! A string that contains a URL to be associated with the entry.