|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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(java.util.Date date)
Check if the schedule contains the specified date |
java.lang.Object |
get(int index)
Get the day at position index. |
int |
getMode()
|
java.util.Date |
getSelectedDate()
|
ScheduleEntry |
getSelectedEntry()
|
boolean |
isEmpty()
|
boolean |
isEntrySelected()
|
java.util.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(java.util.Date date)
|
void |
setSelectedEntry(ScheduleEntry selectedEntry)
|
int |
size()
|
Field Detail |
public static final int DAY
public static final int WORKWEEK
public static final int WEEK
public static final int MONTH
Method Detail |
public boolean isEmpty()
public void setMode(int mode)
mode
- the mode: DAY, WORKWEEK, WEEK or MONTHpublic int getMode()
public void setSelectedDate(java.util.Date date)
date
- the date to selectpublic java.util.Date getSelectedDate()
public void setSelectedEntry(ScheduleEntry selectedEntry)
selectedEntry
- the entry to selectpublic ScheduleEntry getSelectedEntry()
public boolean isEntrySelected()
public boolean containsDate(java.util.Date date)
Check if the schedule contains the specified date
date
- the date to check
public java.lang.Object get(int index)
Get the day at position index.
index
- the index
public java.util.Iterator iterator()
public int size()
public void addEntry(ScheduleEntry entry)
entry
- the entry to be addedpublic void removeEntry(ScheduleEntry entry)
entry
- the entry to be removedpublic void removeSelectedEntry()
public void refresh()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |