public class EntityCalendarEvent<E extends Entity> extends java.lang.Object implements CalendarEvent
CalendarEvent.EventChangeEvent, CalendarEvent.EventChangeListener
Modifier and Type | Field and Description |
---|---|
protected E |
entity |
protected EventHub |
events |
protected EntityCalendarEventProvider |
provider |
Constructor and Description |
---|
EntityCalendarEvent(E entity,
EntityCalendarEventProvider provider) |
Modifier and Type | Method and Description |
---|---|
Subscription |
addEventChangeListener(java.util.function.Consumer<CalendarEvent.EventChangeEvent> listener) |
java.lang.String |
getCaption() |
java.lang.String |
getDescription() |
java.util.Date |
getEnd() |
E |
getEntity() |
java.util.Date |
getStart() |
java.lang.String |
getStyleName() |
boolean |
isAllDay() |
protected void |
onPropertyChanged(Instance.PropertyChangeEvent event) |
void |
removeEventChangeListener(java.util.function.Consumer<CalendarEvent.EventChangeEvent> listener) |
void |
setAllDay(boolean isAllDay) |
void |
setCaption(java.lang.String caption) |
void |
setDescription(java.lang.String description) |
void |
setEnd(java.util.Date end) |
void |
setStart(java.util.Date start) |
void |
setStyleName(java.lang.String styleName) |
protected final EntityCalendarEventProvider provider
protected EventHub events
public EntityCalendarEvent(E entity, EntityCalendarEventProvider provider)
protected void onPropertyChanged(Instance.PropertyChangeEvent event)
public E getEntity()
public java.util.Date getStart()
getStart
in interface CalendarEvent
public void setStart(java.util.Date start)
setStart
in interface CalendarEvent
public java.util.Date getEnd()
getEnd
in interface CalendarEvent
public void setEnd(java.util.Date end)
setEnd
in interface CalendarEvent
public java.lang.String getCaption()
getCaption
in interface CalendarEvent
public void setCaption(java.lang.String caption)
setCaption
in interface CalendarEvent
public void setDescription(java.lang.String description)
setDescription
in interface CalendarEvent
public java.lang.String getDescription()
getDescription
in interface CalendarEvent
public java.lang.String getStyleName()
getStyleName
in interface CalendarEvent
public void setStyleName(java.lang.String styleName)
setStyleName
in interface CalendarEvent
public boolean isAllDay()
isAllDay
in interface CalendarEvent
public void setAllDay(boolean isAllDay)
setAllDay
in interface CalendarEvent
public Subscription addEventChangeListener(java.util.function.Consumer<CalendarEvent.EventChangeEvent> listener)
addEventChangeListener
in interface CalendarEvent
public void removeEventChangeListener(java.util.function.Consumer<CalendarEvent.EventChangeEvent> listener)
removeEventChangeListener
in interface CalendarEvent
listener
- a listener to remove