public class EntityCalendarEvent<E extends Entity,V> extends java.lang.Object implements CalendarEvent<V>
CalendarEvent.EventChangeEvent<V>, CalendarEvent.EventChangeListener<V>
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<V>> listener) |
java.lang.String |
getCaption() |
java.lang.String |
getDescription() |
V |
getEnd() |
E |
getEntity() |
V |
getStart() |
java.lang.String |
getStyleName() |
boolean |
isAllDay() |
protected void |
onPropertyChanged(Instance.PropertyChangeEvent event) |
void |
removeEventChangeListener(java.util.function.Consumer<CalendarEvent.EventChangeEvent<V>> listener) |
void |
setAllDay(boolean isAllDay) |
void |
setCaption(java.lang.String caption) |
void |
setDescription(java.lang.String description) |
void |
setEnd(V end) |
void |
setStart(V 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 V getStart()
getStart
in interface CalendarEvent<V>
public void setStart(V start)
setStart
in interface CalendarEvent<V>
public V getEnd()
getEnd
in interface CalendarEvent<V>
public void setEnd(V end)
setEnd
in interface CalendarEvent<V>
public java.lang.String getCaption()
getCaption
in interface CalendarEvent<V>
public void setCaption(java.lang.String caption)
setCaption
in interface CalendarEvent<V>
public void setDescription(java.lang.String description)
setDescription
in interface CalendarEvent<V>
public java.lang.String getDescription()
getDescription
in interface CalendarEvent<V>
public java.lang.String getStyleName()
getStyleName
in interface CalendarEvent<V>
public void setStyleName(java.lang.String styleName)
setStyleName
in interface CalendarEvent<V>
public boolean isAllDay()
isAllDay
in interface CalendarEvent<V>
public void setAllDay(boolean isAllDay)
setAllDay
in interface CalendarEvent<V>
public Subscription addEventChangeListener(java.util.function.Consumer<CalendarEvent.EventChangeEvent<V>> listener)
addEventChangeListener
in interface CalendarEvent<V>
public void removeEventChangeListener(java.util.function.Consumer<CalendarEvent.EventChangeEvent<V>> listener)
removeEventChangeListener
in interface CalendarEvent<V>
listener
- a listener to remove