public class CalendarEvent extends Object
| Constructor and Description |
|---|
CalendarEvent() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCaption()
Get the caption of the event.
|
String |
getDescription()
Get the description of the event.
|
Date |
getEnd() |
Date |
getEndTime()
Get the end time of the event
|
int |
getIndex()
Get the (server side) index of the event
|
long |
getRangeInMilliseconds()
Get the amount of milliseconds between the start and end of the event
|
long |
getRangeInMinutes()
Get the amount of minutes between the start and end of the event
|
long |
getRangeInMinutesForDay(Date targetDay)
Get the amount of minutes for the event on a specific day.
|
int |
getSlotIndex()
Get the index of the slot where the event in rendered
|
Date |
getStart() |
Date |
getStartTime()
Returns the start time of the event
|
String |
getStyleName() |
String |
getTimeAsText()
Get the time as a formatted string
|
boolean |
isAllDay()
Is the event an all day event.
|
boolean |
isTimeOnDifferentDays()
Does the event span several days
|
void |
setAllDay(boolean allDay)
Is the event an all day event.
|
void |
setCaption(String caption)
Set the caption of the event.
|
void |
setDescription(String description)
Set the description of the event.
|
void |
setEnd(Date end) |
void |
setEndTime(Date endTime)
Set the end time of the event
|
void |
setFormat24h(boolean format24h)
Does the event use the 24h time format
|
void |
setIndex(int index)
Set the (server side) index of the event
|
void |
setSlotIndex(int index)
Set the index of the slot where the event in rendered
|
void |
setStart(Date start) |
void |
setStartTime(Date startTime)
Set the start time of the event
|
void |
setStyleName(String style) |
public String getStyleName()
com.vaadin.addon.calendar.event.CalendarEvent#getStyleName()public Date getStart()
com.vaadin.addon.calendar.event.CalendarEvent#getStart()public void setStyleName(String style)
style - com.vaadin.addon.calendar.event.CalendarEvent#getStyleName()public void setStart(Date start)
start - com.vaadin.addon.calendar.event.CalendarEvent#getStart()public Date getEnd()
com.vaadin.addon.calendar.event.CalendarEvent#getEnd()public void setEnd(Date end)
end - com.vaadin.addon.calendar.event.CalendarEvent#getEnd()public Date getStartTime()
Date objectpublic void setStartTime(Date startTime)
startTime - The time of the event. Use the time fields in the Date
objectpublic Date getEndTime()
Date objectpublic void setEndTime(Date endTime)
endTime - Time embedded in the Date objectpublic int getIndex()
public int getSlotIndex()
public void setSlotIndex(int index)
index - The index of the slotpublic void setIndex(int index)
index - The indexpublic String getCaption()
public void setCaption(String caption)
caption - The visible caption of the eventpublic String getDescription()
public void setDescription(String description)
description - public void setFormat24h(boolean format24h)
format24h - True if it uses the 24h format, false if it uses the 12h time
formatpublic void setAllDay(boolean allDay)
allDay - True if the event should be rendered all daypublic boolean isAllDay()
public String getTimeAsText()
public long getRangeInMilliseconds()
public long getRangeInMinutes()
public long getRangeInMinutesForDay(Date targetDay)
targetDay - The date to checkpublic boolean isTimeOnDifferentDays()
Copyright © 2016 Vaadin Ltd. All rights reserved.