|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(java.lang.String subject,
java.util.Date fromDate,
java.util.Date untilDate)
constructor |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
int |
getCaption()
returns the caption to use for this event. |
EventType |
getEventType()
|
java.util.Date |
getFromDate()
|
int |
getInterval()
|
java.lang.String |
getLocation()
|
Persistent |
getObject()
returns the object this CalEvent was initially fetched for |
java.util.List<Persistent> |
getObjects()
the objects, this event belongs to |
java.util.Date |
getRecEndDate()
|
int |
getRecurrenceType()
|
java.lang.String |
getSubject()
|
java.lang.String |
getText()
|
java.lang.String |
getUID()
get the unique identifier for this event |
java.util.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 |
java.lang.String |
onClick()
|
void |
setCaption(int caption)
|
void |
setEventType(EventType eventType)
|
void |
setFromDate(java.util.Date fromDate)
|
void |
setHasReminder(boolean hasReminder)
|
void |
setInterval(int interval)
|
void |
setLocation(java.lang.String location)
|
void |
setOnClick(java.lang.String onClick)
|
void |
setPrivateEvent(boolean privateEvent)
|
void |
setRecEndDate(java.util.Date recEndDate)
|
void |
setRecurrenceType(int recurrenceType)
|
void |
setSubject(java.lang.String subject)
|
void |
setText(java.lang.String text)
|
void |
setUID(java.lang.String uid)
|
void |
setUntilDate(java.util.Date untilDate)
|
void |
setWholeDay(boolean wholeDay)
|
void |
shiftTo(java.util.Date begin)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleEvent(java.lang.String subject, java.util.Date fromDate, java.util.Date untilDate)
subject
- the event's subjectfromDate
- the start-dateuntilDate
- the end-datepublic SimpleEvent(CalEvent evt)
evt
- the eventMethod Detail |
---|
public java.lang.Object clone()
clone
in interface CalEvent
clone
in class java.lang.Object
public int getCaption()
getCaption
in interface CalEvent
CalInfo.getCaptions()
public java.util.Date getFromDate()
getFromDate
in interface CalEvent
public int getInterval()
getInterval
in interface CalEvent
public java.lang.String getLocation()
getLocation
in interface CalEvent
public java.util.Date getRecEndDate()
getRecEndDate
in interface CalEvent
public int getRecurrenceType()
getRecurrenceType
in interface CalEvent
public java.lang.String getSubject()
getSubject
in interface CalEvent
public java.lang.String getText()
getText
in interface CalEvent
public java.lang.String getUID()
getUID
in interface CalEvent
public java.util.Date getUntilDate()
getUntilDate
in interface CalEvent
public boolean isPrivateEvent()
isPrivateEvent
in interface CalEvent
public boolean isWholeDay()
isWholeDay
in interface CalEvent
public java.lang.String onClick()
onClick
in interface CalEvent
public void setCaption(int caption)
public void setFromDate(java.util.Date fromDate)
public void setInterval(int interval)
public void setLocation(java.lang.String location)
public void setOnClick(java.lang.String onClick)
public void setPrivateEvent(boolean privateEvent)
public void setRecEndDate(java.util.Date recEndDate)
public void setRecurrenceType(int recurrenceType)
public void setSubject(java.lang.String subject)
public void setText(java.lang.String text)
public void setUID(java.lang.String uid)
public void setUntilDate(java.util.Date untilDate)
public void setWholeDay(boolean wholeDay)
public void shiftTo(java.util.Date begin)
public Persistent getObject()
CalEvent
was initially fetched for
getObject
in interface CalEvent
public java.util.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)
mayEdit
in interface CalEvent
true
or false
public boolean mayView(User user)
mayView
in interface CalEvent
true
or false
public EventType getEventType()
getEventType
in interface CalEvent
EventType
of this eventpublic void setEventType(EventType eventType)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |