|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.almanach.model.EventOccurrence
com.stratelia.webactiv.almanach.control.DisplayableEventOccurrence
public class DisplayableEventOccurrence
An occurrence of an event in the time and that can be rendered in a calendar view. A DisplayableEventOccurrence instance decorates an event occurrence by adding to it rendering information so that the occurrence can be displayed into a calendar view.
Method Summary | |
---|---|
static DisplayableEventOccurrence |
decorate(EventOccurrence occurrence)
Decorates the specified event occurrence with rendering features. |
static List<DisplayableEventOccurrence> |
decorate(List<EventOccurrence> occurrences)
Decorates the specified event occurrences with rendering features. |
protected List<String> |
getCSSClasses()
Gets the CSS class(es) that is applied to this event rendering. |
boolean |
isEndTimeDefined()
|
boolean |
isStartTimeDefined()
|
String |
toJSON()
Gets a JSON (JavaScript Object Notation) representation of this event. |
static String |
toJSON(List<DisplayableEventOccurrence> events)
Gets a JSON (JavaScript Object Notation) representation of all the specified events. |
protected org.json.JSONObject |
toJSONObject()
Converts this event DTO into a JSON object. |
Methods inherited from class com.stratelia.webactiv.almanach.model.EventOccurrence |
---|
anOccurrenceOf, anOccurrenceOf, compareTo, endingAt, getEndDate, getEndDateTimeInISO, getEventDetail, getStartDate, getStartDateTimeInISO, isAllDay, isPriority, startingAt, withPriority |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DisplayableEventOccurrence decorate(EventOccurrence occurrence)
occurrence
- the event occurrence to decorate.
public static List<DisplayableEventOccurrence> decorate(List<EventOccurrence> occurrences)
occurrences
- a list of event occurrences to decorate.
protected List<String> getCSSClasses()
public String toJSON()
public boolean isStartTimeDefined()
public boolean isEndTimeDefined()
public static String toJSON(List<DisplayableEventOccurrence> events)
events
- the events.
protected org.json.JSONObject toJSONObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |