|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ui.calendar.schedule.CalendarEvent
public class CalendarEvent
A client side implementation of a calendar event
| Constructor Summary | |
|---|---|
CalendarEvent()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getCaption()
Get the caption of the event. |
java.lang.String |
getDescription()
Get the description of the event. |
java.util.Date |
getEnd()
|
java.util.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(java.util.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 |
java.util.Date |
getStart()
|
java.util.Date |
getStartTime()
Returns the start time of the event |
java.lang.String |
getStyleName()
|
java.lang.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(java.lang.String caption)
Set the caption of the event. |
void |
setDescription(java.lang.String description)
Set the description of the event. |
void |
setEnd(java.util.Date end)
|
void |
setEndTime(java.util.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(java.util.Date start)
|
void |
setStartTime(java.util.Date startTime)
Set the start time of the event |
void |
setStyleName(java.lang.String style)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CalendarEvent()
| Method Detail |
|---|
public java.lang.String getStyleName()
com.vaadin.addon.calendar.event.CalendarEvent#getStyleName()public java.util.Date getStart()
com.vaadin.addon.calendar.event.CalendarEvent#getStart()public void setStyleName(java.lang.String style)
style - com.vaadin.addon.calendar.event.CalendarEvent#getStyleName()public void setStart(java.util.Date start)
start - com.vaadin.addon.calendar.event.CalendarEvent#getStart()public java.util.Date getEnd()
com.vaadin.addon.calendar.event.CalendarEvent#getEnd()public void setEnd(java.util.Date end)
end - com.vaadin.addon.calendar.event.CalendarEvent#getEnd()public java.util.Date getStartTime()
Date objectpublic void setStartTime(java.util.Date startTime)
startTime - The time of the event. Use the time fields in the Date
objectpublic java.util.Date getEndTime()
Date objectpublic void setEndTime(java.util.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 java.lang.String getCaption()
public void setCaption(java.lang.String caption)
caption - The visible caption of the eventpublic java.lang.String getDescription()
public void setDescription(java.lang.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 java.lang.String getTimeAsText()
public long getRangeInMilliseconds()
public long getRangeInMinutes()
public long getRangeInMinutesForDay(java.util.Date targetDay)
targetDay - The date to check
public boolean isTimeOnDifferentDays()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||