public abstract class AbstractCalendarItem<T> extends java.lang.Object implements CalendarItem
CalendarItem
Modifier and Type | Field and Description |
---|---|
protected T |
_begin |
protected java.lang.String |
_content |
protected java.lang.String |
_contentColor |
protected T |
_end |
protected java.lang.String |
_headerColor |
protected boolean |
_locked |
protected java.lang.String |
_title |
Constructor and Description |
---|
AbstractCalendarItem(java.lang.String title,
java.lang.String content,
java.lang.String headerColor,
java.lang.String contentColor,
boolean locked,
T begin,
T end) |
Modifier and Type | Method and Description |
---|---|
protected abstract java.time.Instant |
convertToInstant(T date) |
java.time.Instant |
getBegin()
Returns the beginning date of the calendar item in Instant.
|
java.lang.String |
getContent()
Returns the content of the calendar item.
|
java.lang.String |
getContentColor()
Returns the color of the content in the calendar item.
|
java.time.Instant |
getEnd()
Returns the beginning date of the calendar item in Instant.
|
java.lang.String |
getHeaderColor()
Returns the color of the header in the calendar item.
|
java.lang.String |
getTitle()
Returns the title of the calendar item.
|
java.lang.String |
getZclass()
Returns the zclass of the calendar item.
|
boolean |
isLocked()
When it returns true, an end-user can't move the calendar item by mouse drag and drop in a browser.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBeginDate, getEndDate
protected java.lang.String _title
protected java.lang.String _content
protected java.lang.String _headerColor
protected java.lang.String _contentColor
protected boolean _locked
protected T _begin
protected T _end
public java.time.Instant getBegin()
CalendarItem
getBegin
in interface CalendarItem
public java.time.Instant getEnd()
CalendarItem
getEnd
in interface CalendarItem
protected abstract java.time.Instant convertToInstant(T date)
public java.lang.String getTitle()
CalendarItem
Note: never null
getTitle
in interface CalendarItem
public java.lang.String getContent()
CalendarItem
Note: never null
getContent
in interface CalendarItem
public java.lang.String getHeaderColor()
CalendarItem
Note: never null
getHeaderColor
in interface CalendarItem
public java.lang.String getContentColor()
CalendarItem
Note: never null
getContentColor
in interface CalendarItem
public java.lang.String getZclass()
CalendarItem
Note: never null
getZclass
in interface CalendarItem
public boolean isLocked()
CalendarItem
isLocked
in interface CalendarItem
Copyright © 2021. All Rights Reserved.