public class Event extends Object
RadCalendarView
.Constructor and Description |
---|
Event(String title,
long startDate,
long endDate)
Creates a new instance of the
Event class. |
Modifier and Type | Method and Description |
---|---|
int |
getCalendarId()
Returns the id of the calendar that contains this event.
|
String |
getDetails()
Returns the details about this event.
|
long |
getEndDate()
Returns the end date of this event.
|
int |
getEventColor()
Returns the color that should be used for representation of this event.
|
long |
getStartDate()
Returns the start date of this event.
|
String |
getTitle()
Returns the title of this event.
|
boolean |
isAllDay()
Returns a value which indicates whether this is an all day event.
|
void |
setAllDay(boolean allDay)
Sets a value which indicates whether this is an all day event.
|
void |
setCalendarId(int calendarId)
Sets the id of the calendar that contains this event.
|
void |
setDetails(String details)
Sets the details about this event.
|
void |
setEndDate(long endDate)
Sets the end date of this event.
|
void |
setEventColor(int eventColor)
Sets the color that will be used for representation of this event.
|
void |
setStartDate(long startDate)
Sets the start date of this event.
|
void |
setTitle(String title)
Sets the title of this event.
|
public Event(String title, long startDate, long endDate)
Event
class.title
- the event's titlestartDate
- the event's start dateendDate
- the event's end dateIllegalArgumentException
- If the start date is after the end date or if they are the samepublic int getCalendarId()
public void setCalendarId(int calendarId)
calendarId
- the calendar idpublic int getEventColor()
public void setEventColor(int eventColor)
eventColor
- the event colorpublic String getTitle()
public void setTitle(String title)
title
- the title of the eventpublic String getDetails()
public void setDetails(String details)
details
- the details of the eventpublic long getStartDate()
public void setStartDate(long startDate)
startDate
- the start date of the eventIllegalArgumentException
- If the start date is after the end date or if they are the samepublic long getEndDate()
public void setEndDate(long endDate)
endDate
- the end date of the eventIllegalArgumentException
- If the start date is after the end date or if they are the samepublic boolean isAllDay()
public void setAllDay(boolean allDay)
allDay
- whether this is an all day event