org.jasig.portlet.calendar.mvc
Class JsonCalendarEventWrapper

java.lang.Object
  extended by org.jasig.portlet.calendar.mvc.JsonCalendarEventWrapper
All Implemented Interfaces:
Comparable<JsonCalendarEventWrapper>

public class JsonCalendarEventWrapper
extends Object
implements Comparable<JsonCalendarEventWrapper>

JsonCalendarEventWrapper wraps a shared/cached JsonCalendarEvent and provides a way to add user-specific information such as a color code.

Version:
$Revision: 24414 $
Author:
Jen Bourey, jennifer.bourey@gmail.com

Constructor Summary
JsonCalendarEventWrapper(JsonCalendarEvent event, int colorIndex)
           
 
Method Summary
 int compareTo(JsonCalendarEventWrapper wrapper)
           
 boolean equals(Object o)
           
 int getColorIndex()
           
 JsonCalendarEvent getEvent()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonCalendarEventWrapper

public JsonCalendarEventWrapper(JsonCalendarEvent event,
                                int colorIndex)
Method Detail

getEvent

public JsonCalendarEvent getEvent()

getColorIndex

public int getColorIndex()

compareTo

public int compareTo(JsonCalendarEventWrapper wrapper)
Specified by:
compareTo in interface Comparable<JsonCalendarEventWrapper>

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2011 Jasig. All Rights Reserved.