Constructor and Description |
---|
SimpleEvent() |
SimpleEvent(CalEvent evt)
constructor creating a copy of the given event
|
SimpleEvent(String subject,
Date fromDate,
Date untilDate)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addObject(Persistent obj) |
Object |
clone() |
boolean |
equals(Object obj) |
int |
getCaption()
returns the caption to use for this event.
|
EventType |
getEventType() |
Date |
getFromDate() |
int |
getInterval() |
String |
getLocation() |
Persistent |
getObject()
returns the object this
CalEvent was initially fetched for |
List<Persistent> |
getObjects()
the objects, this event belongs to
|
Date |
getRecEndDate() |
int |
getRecurrenceType() |
String |
getSubject() |
String |
getText() |
String |
getUID()
get the unique identifier for this event
|
Date |
getUntilDate() |
int |
hashCode() |
boolean |
hasReminder()
should a reminder be used?
|
boolean |
isPrivateEvent() |
boolean |
isWholeDay() |
boolean |
mayEdit(User user)
check if the given user may edit this event
|
boolean |
mayView(User user)
check if the given user may view this event
|
String |
onClick() |
void |
setCaption(int caption) |
void |
setEventType(EventType eventType) |
void |
setFromDate(Date fromDate) |
void |
setHasReminder(boolean hasReminder) |
void |
setInterval(int interval) |
void |
setLocation(String location) |
void |
setOnClick(String onClick) |
void |
setPrivateDate(boolean isPrivateDate) |
void |
setPrivateEvent(boolean privateEvent) |
void |
setRecEndDate(Date recEndDate) |
void |
setRecurrenceInterval(int interval) |
void |
setRecurrenceType(int recurrenceType) |
void |
setSubject(String subject) |
void |
setText(String text) |
void |
setUID(String uid) |
void |
setUntilDate(Date untilDate) |
void |
setWholeDay(boolean wholeDay) |
void |
shiftTo(Date begin)
Shift a recurrent evt to another date and compute the right time
|
public SimpleEvent()
public SimpleEvent(String subject, Date fromDate, Date untilDate)
subject
- the event's subjectfromDate
- the start-dateuntilDate
- the end-datepublic SimpleEvent(CalEvent evt)
evt
- the eventpublic Object clone()
public int getCaption()
getCaption
in interface CalEvent
CalInfo.getCaptions()
public Date getFromDate()
getFromDate
in interface CalEvent
public int getInterval()
getInterval
in interface CalEvent
public String getLocation()
getLocation
in interface CalEvent
public Date getRecEndDate()
getRecEndDate
in interface CalEvent
public int getRecurrenceType()
getRecurrenceType
in interface CalEvent
public String getSubject()
getSubject
in interface CalEvent
public String getText()
public String getUID()
public Date getUntilDate()
getUntilDate
in interface CalEvent
public boolean isPrivateEvent()
isPrivateEvent
in interface CalEvent
public boolean isWholeDay()
isWholeDay
in interface CalEvent
public String onClick()
public void addObject(Persistent obj)
public void setCaption(int caption)
public void setFromDate(Date fromDate)
public void setInterval(int interval)
public void setLocation(String location)
public void setOnClick(String onClick)
public void setPrivateEvent(boolean privateEvent)
public void setRecEndDate(Date recEndDate)
public void setRecurrenceType(int recurrenceType)
public void setSubject(String subject)
public void setText(String text)
public void setUID(String uid)
public void setUntilDate(Date untilDate)
public void setWholeDay(boolean wholeDay)
public void shiftTo(Date begin)
begin
- the date to shift topublic Persistent getObject()
CalEvent
was initially fetched forpublic List<Persistent> getObjects()
getObjects
in interface CalEvent
public void setHasReminder(boolean hasReminder)
public boolean hasReminder()
hasReminder
in interface CalEvent
true
or false
public boolean mayEdit(User user)
public boolean mayView(User user)
public EventType getEventType()
getEventType
in interface CalEvent
EventType
of this eventpublic void setEventType(EventType eventType)
public void setRecurrenceInterval(int interval)
interval
- sets the recurrence intervalpublic void setPrivateDate(boolean isPrivateDate)
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.