|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
mvp.Model
caltool.schedule.ScheduledItem
caltool.schedule.Event
public class Event
An Event is the simplest type of ScheduledItem. The only component it adds to a ScheduledItem is simple security.
Field Summary | |
---|---|
protected ItemKey |
itemKey
The uniqe key for storing this in the UserCalendar items list |
protected SimpleSecurity |
security
Whether the event is public or private. |
Fields inherited from class caltool.schedule.ScheduledItem |
---|
category, endDate, startOrDueDate, title |
Fields inherited from class mvp.Model |
---|
view |
Constructor Summary | |
---|---|
Event()
Construct an empty event. |
|
Event(java.lang.String title,
Date startOrDueDate,
Date endDate,
Category category,
SimpleSecurity security)
Construct an event with the given field values. |
Method Summary | |
---|---|
Date |
getEndDate()
Return the end date. |
ItemKey |
getKey()
Return the unique key for this, consisting of date and title. |
Date |
getStartDate()
Return the start date. |
java.lang.String |
getTitle()
Return the title. |
java.lang.String |
toString()
Convert this to a string. |
Methods inherited from class caltool.schedule.ScheduledItem |
---|
getCategory, getDate |
Methods inherited from class mvp.Model |
---|
dump, exit, getView, setView |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected SimpleSecurity security
protected ItemKey itemKey
Constructor Detail |
---|
public Event()
public Event(java.lang.String title, Date startOrDueDate, Date endDate, Category category, SimpleSecurity security)
Method Detail |
---|
public java.lang.String getTitle()
getTitle
in class ScheduledItem
public Date getStartDate()
public Date getEndDate()
getEndDate
in class ScheduledItem
public ItemKey getKey()
getKey
in class ScheduledItem
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |