Class AbstractCalendarItem<T>

    • Field Detail

      • _title

        protected String _title
      • _content

        protected String _content
      • _sclass

        protected String _sclass
      • _style

        protected String _style
      • _contentStyle

        protected String _contentStyle
      • _headerStyle

        protected String _headerStyle
      • _locked

        protected boolean _locked
      • _begin

        protected T _begin
      • _end

        protected T _end
    • Constructor Detail

      • AbstractCalendarItem

        public AbstractCalendarItem()
        Unused constructor, used for serialization / deserialization
      • AbstractCalendarItem

        @Deprecated
        public AbstractCalendarItem​(String title,
                                    String content,
                                    String headerColor,
                                    String contentColor,
                                    boolean locked,
                                    T begin,
                                    T end)
        Deprecated.
      • AbstractCalendarItem

        public AbstractCalendarItem​(String title,
                                    String content,
                                    String style,
                                    String contentStyle,
                                    String headerStyle,
                                    boolean locked,
                                    T begin,
                                    T end)
      • AbstractCalendarItem

        public AbstractCalendarItem​(String title,
                                    String content,
                                    String sclass,
                                    String style,
                                    String contentStyle,
                                    String headerStyle,
                                    boolean locked,
                                    T begin,
                                    T end)
    • Method Detail

      • getBegin

        public Instant getBegin()
        Description copied from interface: CalendarItem
        Returns the beginning date of the calendar item in Instant.
        Specified by:
        getBegin in interface CalendarItem
      • getEnd

        public Instant getEnd()
        Description copied from interface: CalendarItem
        Returns the beginning date of the calendar item in Instant.
        Specified by:
        getEnd in interface CalendarItem
      • convertToInstant

        protected abstract Instant convertToInstant​(T date)
      • getTitle

        public String getTitle()
        Description copied from interface: CalendarItem
        Returns the title of the calendar item.

        Note: never null

        Specified by:
        getTitle in interface CalendarItem
      • getContent

        public String getContent()
        Description copied from interface: CalendarItem
        Returns the content of the calendar item.

        Note: never null

        Specified by:
        getContent in interface CalendarItem
      • getHeaderColor

        @Deprecated
        public String getHeaderColor()
        Deprecated.
        Description copied from interface: CalendarItem
        Returns the color of the header in the calendar item. Only allows the value being recognized by CSS.
        Specified by:
        getHeaderColor in interface CalendarItem
      • getContentColor

        @Deprecated
        public String getContentColor()
        Deprecated.
        Description copied from interface: CalendarItem
        Returns the color of the content in the calendar item. Only allows the value being recognized by CSS.
        Specified by:
        getContentColor in interface CalendarItem
      • getSclass

        public String getSclass()
        Description copied from interface: CalendarItem
        Returns the CSS class.

        The default styles of CalendarItem doesn't depend on the value of CalendarItem.getSclass(). Rather, sclass is provided to perform small adjustment, e.g., only changing the font size. In other words, the default style is still applied if you change the value of CalendarItem.getSclass(), unless you override it. To replace the default style completely, use zclass instead. Note: never null

        Specified by:
        getSclass in interface CalendarItem
        See Also:
        CalendarItem.getZclass()
      • isLocked

        public boolean isLocked()
        Description copied from interface: CalendarItem
        When it returns true, an end-user can't move the calendar item by mouse drag and drop in a browser. Otherwise, an end-user can freely move the item.
        Specified by:
        isLocked in interface CalendarItem