public class ScheduleRecord extends AbstractRecord implements DatedRecord
Record
implementation for the Calendar PDB.Modifier and Type | Class and Description |
---|---|
static class |
ScheduleRecord.Alarm
Defines an Alarm.
|
static class |
ScheduleRecord.Repeat
Defines the repetition of a schedule.
|
static class |
ScheduleRecord.ShortDate
Contains an immutable date.
|
static class |
ScheduleRecord.ShortTime
Contains an immutable time.
|
ATTR_BUSY, ATTR_DELETE, ATTR_DIRTY, ATTR_SECRET
Constructor and Description |
---|
ScheduleRecord(int attribute)
Creates a new
ScheduleRecord entry. |
Modifier and Type | Method and Description |
---|---|
ScheduleRecord.Alarm |
getAlarm()
Gets the alarm for this entry.
|
String |
getCategory()
Gets the category of the schedule.
|
String |
getDescription()
Gets the description for this schedule.
|
ScheduleRecord.ShortTime |
getEndTime()
Gets the ending time of the schedule.
|
List<ScheduleRecord.ShortDate> |
getExceptions()
Gets the exceptions of a repeated schedule.
|
String |
getLocation()
Gets the location of the schedule.
|
String |
getNote()
Gets an optional note.
|
Calendar |
getRecordDate()
Gets the date of this record.
|
ScheduleRecord.Repeat |
getRepeat()
Gets the repetition of this schedule.
|
ScheduleRecord.ShortDate |
getSchedule()
Gets the scheduled date.
|
ScheduleRecord.ShortTime |
getStartTime()
Gets the starting time of the schedule.
|
void |
setAlarm(ScheduleRecord.Alarm alarm) |
void |
setCategory(String category) |
void |
setDescription(String description) |
void |
setEndTime(ScheduleRecord.ShortTime endTime) |
void |
setLocation(String location) |
void |
setNote(String note) |
void |
setRepeat(ScheduleRecord.Repeat repeat) |
void |
setSchedule(ScheduleRecord.ShortDate schedule) |
void |
setStartTime(ScheduleRecord.ShortTime startTime) |
String |
toString() |
getCategoryIndex, isBusy, isDelete, isDirty, isSecret
public ScheduleRecord(int attribute)
ScheduleRecord
entry.attribute
- Record's attributepublic ScheduleRecord.ShortDate getSchedule()
public void setSchedule(ScheduleRecord.ShortDate schedule)
public ScheduleRecord.ShortTime getStartTime()
null
if the schedule is for
the entire day.public void setStartTime(ScheduleRecord.ShortTime startTime)
public ScheduleRecord.ShortTime getEndTime()
null
. If the ending time is
before the starting time, it is related to the next day.public void setEndTime(ScheduleRecord.ShortTime endTime)
public ScheduleRecord.Alarm getAlarm()
null
if there is no alarm.public void setAlarm(ScheduleRecord.Alarm alarm)
public ScheduleRecord.Repeat getRepeat()
null
if the schedule does not
repeat.public void setRepeat(ScheduleRecord.Repeat repeat)
public List<ScheduleRecord.ShortDate> getExceptions()
null
, but may be
empty.public String getDescription()
null
.public void setDescription(String description)
public String getLocation()
null
.public void setLocation(String location)
public String getCategory()
public void setCategory(String category)
public Calendar getRecordDate()
DatedRecord
getRecordDate
in interface DatedRecord
Calendar
, or null
if this record has no date set.Copyright © 2009–2017. All rights reserved.