Class FullCalendarEvent
java.lang.Object
com.jalios.jcms.calendar.fullcalendar.FullCalendarEvent
FullCalendar event DTO
- Since:
- jcms-11.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBadge displayed before an event title. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDataAttribute(String name, Object value) addDataAttributes(DataAttribute dataAttributes) addExtendedProp(String name, Object value) addPrefixIcon(String icon) allDay(boolean allDay) backgroundColor(String backgroundColor) borderColor(String borderColor) editable(boolean editable) booleangetColor()booleangetEnd()getHref()getId()booleanReturns whether the generic renderer should display the all-day duration.getStart()getTitle()getUrl()booleanhrefTarget(String hrefTarget) jpaletteColor(String color) Sets the source JPalette color and derives the background, border and text colors.prefixBadge(String label) Adds a badge before the event title using the primary badge color.prefixBadge(String label, ColorLevel level) Adds a badge before the event title.prefixBadge(String label, String jpaletteColor) Adds a badge before the event title and derives its colors from JPalette.publication(Publication pub, String lang) Enables the all-day duration rendered by the generic calendar component.showAllDayDuration(boolean showAllDayDuration) Enables or disables the all-day duration rendered by the generic calendar component.
-
Constructor Details
-
FullCalendarEvent
public FullCalendarEvent()
-
-
Method Details
-
getId
-
id
-
getTitle
-
title
-
publication
-
getHref
-
getUrl
-
href
-
getHrefTarget
-
hrefTarget
-
getStart
-
start
-
start
-
start
-
start
-
getEnd
-
end
-
end
-
end
-
end
-
getAllDay
public boolean getAllDay() -
allDay
-
getShowAllDayDuration
public boolean getShowAllDayDuration()Returns whether the generic renderer should display the all-day duration.This option only applies to all-day events lasting more than one day. It is ignored for timed events and one-day all-day events.
- Returns:
truewhen the all-day duration should be displayed
-
showAllDayDuration
Enables the all-day duration rendered by the generic calendar component.This option is enabled by default and only applies to all-day events lasting more than one day.
- Returns:
- this event
-
showAllDayDuration
Enables or disables the all-day duration rendered by the generic calendar component.This option is ignored for timed events and one-day all-day events.
- Parameters:
showAllDayDuration- whether the duration should be displayed- Returns:
- this event
-
getEditable
public boolean getEditable() -
editable
-
getBackgroundColor
-
getColor
-
backgroundColor
-
getBorderColor
-
borderColor
-
getTextColor
-
getContrastColor
-
textColor
-
getIconColor
-
iconColor
-
getJpaletteColor
-
jpaletteColor
Sets the source JPalette color and derives the background, border and text colors.- Parameters:
color- a hexadecimal color- Returns:
- this event
-
getExtendedProps
-
getFlattenedExtendedProps
-
addExtendedProp
-
getClassNames
-
addClass
-
getDataAttributes
-
addDataAttribute
-
addDataAttributes
-
getPrefixIcons
-
getIconHtml
-
getPrefixIconHtml
-
addPrefixIcon
-
getPrefixBadge
-
prefixBadge
Adds a badge before the event title using the primary badge color.- Parameters:
label- the badge label- Returns:
- this event
-
prefixBadge
Adds a badge before the event title.The badge uses the core semantic color levels and therefore supports the active JPlatform color theme.
- Parameters:
label- the badge labellevel- the semantic badge color- Returns:
- this event
-
prefixBadge
Adds a badge before the event title and derives its colors from JPalette.This overload can reuse workflow state colors directly.
- Parameters:
label- the badge labeljpaletteColor- a hexadecimal or JPalette color- Returns:
- this event
-
hasRenderingOptions
public boolean hasRenderingOptions()
-