|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.custom.schedule.model.PlannerModel
The model of a Planner component
TODO this should be an interface, with a DefaultPlannerModel implementation
| Constructor Summary | |
PlannerModel()
Creates a new PlannerModel object. |
|
| Method Summary | |
Day |
add(java.util.Date date)
Add a day to the planner |
Day |
add(java.util.Date date,
boolean isWorkingDay,
java.lang.String specialDayName)
Add a day to the planner |
Day |
add(Day day)
Add a day to the planner |
boolean |
add(PlannerEntity entity)
Add an entity to the planner |
PlannerEntity |
add(java.lang.String id,
java.lang.String name)
Add an entity to the planner |
boolean |
addEntry(java.lang.String entityId,
ScheduleEntry entry)
Add a schedule entry to the planner |
void |
clear()
Remove all days and all entities |
boolean |
containsDate(java.util.Date date)
Check if the planner contains the specified date |
java.util.Iterator |
dayIterator()
|
java.util.Iterator |
entityIterator()
|
Day |
getDay(int index)
Get the day at position index |
PlannerEntity |
getEntity(java.lang.String id)
Get the entity at position index |
int |
numberOfDays()
|
int |
numberOfEntities()
|
boolean |
setDay(java.util.Date date)
Set the day |
boolean |
setSpecialDay(java.util.Date date,
boolean isWorkingDay,
java.lang.String specialDayName)
Assign a special status to a day, e.g. a holiday |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PlannerModel()
| Method Detail |
public boolean setDay(java.util.Date date)
Set the day
date - the new day
public Day getDay(int index)
Get the day at position index
index - the index
public PlannerEntity getEntity(java.lang.String id)
Get the entity at position index
id - the index
public boolean setSpecialDay(java.util.Date date,
boolean isWorkingDay,
java.lang.String specialDayName)
Assign a special status to a day, e.g. a holiday
date - the dateisWorkingDay - whether the day is a normal working dayspecialDayName - the name of the holiday
public Day add(java.util.Date date,
boolean isWorkingDay,
java.lang.String specialDayName)
Add a day to the planner
date - the date that should be addedisWorkingDay - whether the day is a normal working dayspecialDayName - the name of the holiday, if any
public boolean add(PlannerEntity entity)
Add an entity to the planner
entity - the entity to add
public PlannerEntity add(java.lang.String id,
java.lang.String name)
Add an entity to the planner
id - the id of the entityname - the name of the entity
public Day add(Day day)
Add a day to the planner
day - the day to add
public Day add(java.util.Date date)
Add a day to the planner
date - the day to add
public boolean addEntry(java.lang.String entityId,
ScheduleEntry entry)
Add a schedule entry to the planner
entityId - the id of the entity to which the entry appliesentry - the entry to add
public void clear()
Remove all days and all entities
public boolean containsDate(java.util.Date date)
Check if the planner contains the specified date
date - the date to check
public java.util.Iterator dayIterator()
public java.util.Iterator entityIterator()
public int numberOfDays()
public int numberOfEntities()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||