|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.cal.SimpleEvent
public class SimpleEvent
default CalEvent implementation
| Field Summary |
|---|
| Fields inherited from interface com.groiss.cal.CalEvent |
|---|
DAILY, MONTHLY, NONE, WEEKLY, YEARLY |
| Constructor Summary | |
|---|---|
SimpleEvent(CalEvent evt)
constructor creating a copy of the given event |
|
SimpleEvent(String subject,
Date fromDate,
Date untilDate)
constructor |
|
| Method Summary | |
|---|---|
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()
|
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 |
setPrivateEvent(boolean privateEvent)
|
void |
setRecEndDate(Date recEndDate)
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleEvent(String subject,
Date fromDate,
Date untilDate)
subject - the event's subjectfromDate - the start-dateuntilDate - the end-datepublic SimpleEvent(CalEvent evt)
evt - the event| Method Detail |
|---|
public Object clone()
clone in interface CalEventclone in class Objectpublic int getCaption()
getCaption in interface CalEventCalInfo.getCaptions()public Date getFromDate()
getFromDate in interface CalEventpublic int getInterval()
getInterval in interface CalEventpublic String getLocation()
getLocation in interface CalEventpublic Date getRecEndDate()
getRecEndDate in interface CalEventpublic int getRecurrenceType()
getRecurrenceType in interface CalEventpublic String getSubject()
getSubject in interface CalEventpublic String getText()
getText in interface CalEventpublic String getUID()
getUID in interface CalEventpublic Date getUntilDate()
getUntilDate in interface CalEventpublic boolean isPrivateEvent()
isPrivateEvent in interface CalEventpublic boolean isWholeDay()
isWholeDay in interface CalEventpublic String onClick()
onClick in interface CalEventpublic 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)
public Persistent getObject()
CalEvent was initially fetched for
getObject in interface CalEventpublic List<Persistent> getObjects()
getObjects in interface CalEventpublic void setHasReminder(boolean hasReminder)
public boolean hasReminder()
hasReminder in interface CalEventtrue or falsepublic boolean mayEdit(User user)
mayEdit in interface CalEventtrue or falsepublic boolean mayView(User user)
mayView in interface CalEventtrue or falsepublic EventType getEventType()
getEventType in interface CalEventEventType of this eventpublic void setEventType(EventType eventType)
public boolean equals(Object obj)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||