|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Repeating
Encapsulates the repeating rule for an appointment.
Appointment
Field Summary | |
---|---|
static RepeatingType |
DAILY
|
static RepeatingType |
MONTHLY
|
static RepeatingType |
WEEKLY
|
static RepeatingType |
YEARLY
|
Method Summary | |
---|---|
void |
addException(Date date)
|
void |
clearExceptions()
|
Object |
clone()
|
Appointment |
getAppointment()
returns the appointment of this repeating. |
Date |
getEnd()
|
Date[] |
getExceptions()
|
int |
getInterval()
returns the number of intervals between two repeatings. |
int |
getNumber()
|
RepeatingType |
getType()
|
boolean |
hasExceptions()
|
boolean |
isDaily()
|
boolean |
isException(long date)
|
boolean |
isFixedNumber()
The value returned depends which method was called last. |
boolean |
isMonthly()
|
boolean |
isWeekly()
|
boolean |
isYearly()
|
void |
removeException(Date date)
|
void |
setEnd(Date end)
Set the end of repeating. |
void |
setInterval(int interval)
|
void |
setNumber(int number)
Set a fixed number of repeating. |
void |
setType(RepeatingType type)
|
Field Detail |
---|
static final RepeatingType DAILY
static final RepeatingType WEEKLY
static final RepeatingType MONTHLY
static final RepeatingType YEARLY
Method Detail |
---|
void setInterval(int interval)
int getInterval()
boolean isFixedNumber()
setNumber()
has been called with a parameter
>=0 fixedNumber()
will return true. If
setEnd()
has been called
fixedNumber()
will return false.
setEnd(java.util.Date)
,
setNumber(int)
void setEnd(Date end)
end
- If not null isFixedNumber will return true.setNumber(int)
Date getEnd()
void setNumber(int number)
number
- If >=0 isFixedNumber will return true.setEnd(java.util.Date)
,
isFixedNumber()
int getNumber()
RepeatingType getType()
void setType(RepeatingType type)
Date[] getExceptions()
boolean hasExceptions()
boolean isWeekly()
boolean isDaily()
boolean isMonthly()
boolean isYearly()
void addException(Date date)
void removeException(Date date)
void clearExceptions()
Appointment getAppointment()
Appointment
boolean isException(long date)
Object clone()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |