Class FullCalendarEvent

java.lang.Object
com.jalios.jcms.calendar.fullcalendar.FullCalendarEvent

public class FullCalendarEvent extends Object
FullCalendar event DTO
Since:
jcms-11.0.0
  • Constructor Details

    • FullCalendarEvent

      public FullCalendarEvent()
  • Method Details

    • getId

      public String getId()
    • id

      public FullCalendarEvent id(String id)
    • getTitle

      public String getTitle()
    • title

      public FullCalendarEvent title(String title)
    • publication

      public FullCalendarEvent publication(Publication pub, String lang)
    • getHref

      public String getHref()
    • getUrl

      public String getUrl()
    • href

      public FullCalendarEvent href(String href)
    • getHrefTarget

      public String getHrefTarget()
    • hrefTarget

      public FullCalendarEvent hrefTarget(String hrefTarget)
    • getStart

      public String getStart()
    • start

      public FullCalendarEvent start(String start)
    • start

      public FullCalendarEvent start(Instant start)
    • start

      public FullCalendarEvent start(Date start)
    • start

      public FullCalendarEvent start(LocalDate start)
    • getEnd

      public String getEnd()
    • end

      public FullCalendarEvent end(String end)
    • end

      public FullCalendarEvent end(Instant end)
    • end

      public FullCalendarEvent end(Date end)
    • end

      public FullCalendarEvent end(LocalDate end)
    • getAllDay

      public boolean getAllDay()
    • allDay

      public FullCalendarEvent allDay(boolean 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:
      true when the all-day duration should be displayed
    • showAllDayDuration

      public FullCalendarEvent 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

      public FullCalendarEvent showAllDayDuration(boolean 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

      public FullCalendarEvent editable(boolean editable)
    • getBackgroundColor

      public String getBackgroundColor()
    • getColor

      public String getColor()
    • backgroundColor

      public FullCalendarEvent backgroundColor(String backgroundColor)
    • getBorderColor

      public String getBorderColor()
    • borderColor

      public FullCalendarEvent borderColor(String borderColor)
    • getTextColor

      public String getTextColor()
    • getContrastColor

      public String getContrastColor()
    • textColor

      public FullCalendarEvent textColor(String textColor)
    • getIconColor

      public String getIconColor()
    • iconColor

      public FullCalendarEvent iconColor(String iconColor)
    • getJpaletteColor

      public String getJpaletteColor()
    • jpaletteColor

      public FullCalendarEvent jpaletteColor(String color)
      Sets the source JPalette color and derives the background, border and text colors.
      Parameters:
      color - a hexadecimal color
      Returns:
      this event
    • getExtendedProps

      public Map<String,Object> getExtendedProps()
    • getFlattenedExtendedProps

      public Map<String,Object> getFlattenedExtendedProps()
    • addExtendedProp

      public FullCalendarEvent addExtendedProp(String name, Object value)
    • getClassNames

      public List<String> getClassNames()
    • addClass

      public FullCalendarEvent addClass(String className)
    • getDataAttributes

      public Map<String,Object> getDataAttributes()
    • addDataAttribute

      public FullCalendarEvent addDataAttribute(String name, Object value)
    • addDataAttributes

      public FullCalendarEvent addDataAttributes(DataAttribute dataAttributes)
    • getPrefixIcons

      public List<String> getPrefixIcons()
    • getIconHtml

      public List<String> getIconHtml()
    • getPrefixIconHtml

      public List<String> getPrefixIconHtml()
    • addPrefixIcon

      public FullCalendarEvent addPrefixIcon(String icon)
    • getPrefixBadge

      public FullCalendarEvent.PrefixBadge getPrefixBadge()
    • prefixBadge

      public FullCalendarEvent prefixBadge(String label)
      Adds a badge before the event title using the primary badge color.
      Parameters:
      label - the badge label
      Returns:
      this event
    • prefixBadge

      public FullCalendarEvent prefixBadge(String label, ColorLevel level)
      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 label
      level - the semantic badge color
      Returns:
      this event
    • prefixBadge

      public FullCalendarEvent prefixBadge(String label, String jpaletteColor)
      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 label
      jpaletteColor - a hexadecimal or JPalette color
      Returns:
      this event
    • hasRenderingOptions

      public boolean hasRenderingOptions()