Package org.javlo.service.calendar
Class ICal
- java.lang.Object
-
- org.javlo.service.calendar.ICal
-
- All Implemented Interfaces:
IStringSeralizable
- Direct Known Subclasses:
GhostICal
public class ICal extends Object implements IStringSeralizable
-
-
Field Summary
Fields Modifier and Type Field Description static String
ICAL_DEFAULT_ENCODING
static String
STATUS_CANCELLED
static String
STATUS_CONFIRMED
static String
STATUS_TENTATIVE
static String
TRANSP_OPAQUE
static String
TRANSP_TRANSPARENT
-
Constructor Summary
Constructors Constructor Description ICal(boolean editable)
-
Method Summary
-
-
-
Field Detail
-
ICAL_DEFAULT_ENCODING
public static final String ICAL_DEFAULT_ENCODING
- See Also:
- Constant Field Values
-
STATUS_TENTATIVE
public static final String STATUS_TENTATIVE
- See Also:
- Constant Field Values
-
STATUS_CONFIRMED
public static final String STATUS_CONFIRMED
- See Also:
- Constant Field Values
-
STATUS_CANCELLED
public static final String STATUS_CANCELLED
- See Also:
- Constant Field Values
-
TRANSP_OPAQUE
public static final String TRANSP_OPAQUE
- See Also:
- Constant Field Values
-
TRANSP_TRANSPARENT
public static final String TRANSP_TRANSPARENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadFromString
public boolean loadFromString(String data)
Description copied from interface:IStringSeralizable
load from String- Specified by:
loadFromString
in interfaceIStringSeralizable
- Returns:
- false if unvalid data
-
parseDate
public Date parseDate(String line) throws ParseException
- Throws:
ParseException
-
loadFromReader
public boolean loadFromReader(BufferedReader reader)
-
getOpenCalendarString
public static String getOpenCalendarString()
-
getEndCalendarString
public static String getEndCalendarString()
-
storeToString
public String storeToString()
- Specified by:
storeToString
in interfaceIStringSeralizable
-
storeEventString
public String storeEventString()
-
getStartDate
public Date getStartDate()
-
setStartDate
public void setStartDate(Date startDate)
-
getEndDate
public Date getEndDate()
-
setEndDate
public void setEndDate(Date endDate)
-
getSummary
public String getSummary()
-
getSummaryOrCategories
public String getSummaryOrCategories()
-
setSummary
public void setSummary(String summary)
-
getLocation
public String getLocation()
-
setLocation
public void setLocation(String location)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getTransp
public String getTransp()
-
setTransp
public void setTransp(String transp)
-
getCategories
public String getCategories()
-
setCategories
public void setCategories(String categories)
-
getSequence
public int getSequence()
-
setSequence
public void setSequence(int sequence)
-
getDate
public Date getDate()
-
getDay
public int getDay()
-
getId
public String getId()
-
setId
public void setId(String id)
-
getUid
public String getUid()
-
setUid
public void setUid(String mainId)
-
isOneDay
public boolean isOneDay()
-
isOneMonth
public boolean isOneMonth()
-
isOneYear
public boolean isOneYear()
-
isPrevious
public boolean isPrevious()
-
isNext
public boolean isNext()
-
setNext
public void setNext(boolean next)
-
isSameMonth
public boolean isSameMonth(ICal ical)
-
isSameMonth
public boolean isSameMonth(int year, int month)
-
isEditable
public boolean isEditable()
-
setEditable
public void setEditable(boolean editable)
-
getColorGroup
public int getColorGroup()
-
setColorGroup
public void setColorGroup(int group)
-
setStatus
public void setStatus(String status)
-
getStatus
public String getStatus()
-
addAttendee
public void addAttendee(javax.mail.internet.InternetAddress email)
-
getOrganizer
public javax.mail.internet.InternetAddress getOrganizer()
-
setOrganizer
public void setOrganizer(javax.mail.internet.InternetAddress organizer)
-
-