|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScheduleModel
The underlying model of the UISchedule component. You should implement this interface when creating real implementations, which would typically be backed by a database.
| Field Summary | |
|---|---|
static int |
DAY
|
static int |
MONTH
|
static int |
WEEK
|
static int |
WORKWEEK
|
| Method Summary | |
|---|---|
void |
addEntry(ScheduleEntry entry)
Add an entry to the this model. |
boolean |
containsDate(Date date)
Check if the schedule contains the specified date |
boolean |
containsRepeatedIntervals()
|
Object |
get(int index)
Get the day at position index. |
int |
getMode()
|
Date |
getSelectedDate()
|
ScheduleEntry |
getSelectedEntry()
|
TimeZone |
getTimeZone()
|
boolean |
isEmpty()
|
boolean |
isEntrySelected()
|
Iterator |
iterator()
|
void |
refresh()
Reload the entries for the currently selected period |
void |
removeEntry(ScheduleEntry entry)
Remove an entry from this model |
void |
removeSelectedEntry()
Remove the currently selected entry from this model. |
void |
setMode(int mode)
|
void |
setSelectedDate(Date date)
|
void |
setSelectedEntry(ScheduleEntry selectedEntry)
|
int |
size()
|
| Field Detail |
|---|
static final int DAY
static final int WORKWEEK
static final int WEEK
static final int MONTH
| Method Detail |
|---|
boolean isEmpty()
void setMode(int mode)
mode - the mode: DAY, WORKWEEK, WEEK or MONTHint getMode()
void setSelectedDate(Date date)
date - the date to selectDate getSelectedDate()
void setSelectedEntry(ScheduleEntry selectedEntry)
selectedEntry - the entry to selectScheduleEntry getSelectedEntry()
boolean isEntrySelected()
boolean containsDate(Date date)
Check if the schedule contains the specified date
date - the date to check
Object get(int index)
Get the day at position index.
index - the index
Iterator iterator()
int size()
void addEntry(ScheduleEntry entry)
entry - the entry to be addedvoid removeEntry(ScheduleEntry entry)
entry - the entry to be removedvoid removeSelectedEntry()
void refresh()
TimeZone getTimeZone()
boolean containsRepeatedIntervals()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||