|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jaret.util.ui.timebars.model.AbstractTimeBarRowModel
de.jaret.util.ui.timebars.model.DefaultTimeBarRowModel
de.jaret.examples.timebars.calendar.model.Day
public class Day
A day representation as an extenion of the timebar row model. A list of placeholders are used for indicting appointments that span more than one day (rendereing is done by the header renderer).
| Field Summary |
|---|
| Fields inherited from class de.jaret.util.ui.timebars.model.DefaultTimeBarRowModel |
|---|
_intervals |
| Fields inherited from class de.jaret.util.ui.timebars.model.AbstractTimeBarRowModel |
|---|
_header, _listenerList, _maxDate, _minDate |
| Constructor Summary | |
|---|---|
Day(de.jaret.util.date.JaretDate date)
Construct the day for a specific date. |
|
| Method Summary | |
|---|---|
void |
addInterval(de.jaret.util.date.Interval interval)
Add an interval. |
Appointment |
getAppointmentById(java.lang.String id)
Look up an appointment on that day by comparing the ids. |
java.util.Collection<Appointment> |
getAppointmentBySynchronizerId(java.lang.String synchronizerId)
|
java.util.List<Appointment> |
getAppointments()
Get all appointments for a day. |
de.jaret.util.date.JaretDate |
getDayDate()
|
int |
getMaxPlaceholderPos()
|
AppointmentPlaceholder |
getPlaceholder(Appointment appointment)
Retrive the placeholder for an appointment. |
Appointment |
getPlaceholderForPosition(int pos)
|
java.util.List<AppointmentPlaceholder> |
getPlaceholders()
Retrieve allplaceholders present. |
void |
removePlaceholder(Appointment appointment)
Removes all placeholdes for the given appointment. |
| Methods inherited from class de.jaret.util.ui.timebars.model.DefaultTimeBarRowModel |
|---|
addIntervals, clear, getIntervals, remInterval, remIntervals |
| Methods inherited from class de.jaret.util.ui.timebars.model.AbstractTimeBarRowModel |
|---|
addTimeBarRowListener, fireElementAdded, fireElementChanged, fireElementRemoved, fireHeaderChanged, fireRowDataChanged, getIntervals, getIntervals, getMaxDate, getMinDate, getRowHeader, propertyChange, remTimeBarRowListener, setRowHeader, updateMinMax |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Day(de.jaret.util.date.JaretDate date)
date - the day date| Method Detail |
|---|
public void addInterval(de.jaret.util.date.Interval interval)
addInterval in class de.jaret.util.ui.timebars.model.DefaultTimeBarRowModelinterval - interval to addpublic de.jaret.util.date.JaretDate getDayDate()
public Appointment getAppointmentById(java.lang.String id)
id - id to check
nullpublic java.util.List<Appointment> getAppointments()
public java.util.List<AppointmentPlaceholder> getPlaceholders()
public AppointmentPlaceholder getPlaceholder(Appointment appointment)
appointment - appointment
nullpublic void removePlaceholder(Appointment appointment)
appointment - appointmentpublic int getMaxPlaceholderPos()
public Appointment getPlaceholderForPosition(int pos)
public java.util.Collection<Appointment> getAppointmentBySynchronizerId(java.lang.String synchronizerId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||