Package ch.zhaw.tasklist.core
Class Appointment
- java.lang.Object
-
- ch.zhaw.tasklist.core.Wrapper<AppointmentSource>
-
- ch.zhaw.tasklist.core.Appointment
-
public class Appointment extends Wrapper<AppointmentSource>
Wrapper forAppointmentSource
-
-
Constructor Summary
Constructors Constructor Description Appointment(AppointmentSource source)Create appointment
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.StringPropertygetComment()Get Wrapper forAppointmentSource.commentjavafx.beans.property.ObjectProperty<java.time.LocalDateTime>getEnd()Get Wrapper forAppointmentSource.endjavafx.beans.property.ObjectProperty<AppointmentSource.Priority>getPriority()Get Wrapper forAppointmentSource.priorityjavafx.beans.property.ObjectProperty<java.time.LocalDateTime>getStart()Get Wrapper forAppointmentSource.startprotected static java.util.List<AppointmentSource>unwrap(java.util.List<Appointment> list)protected static javafx.collections.ObservableList<Appointment>wrap(java.util.List<AppointmentSource> list)Wrapping a List: Transform aListofAppointmentSourceinto aObservableListofAppointment-Wrappers.
-
-
-
Constructor Detail
-
Appointment
public Appointment(AppointmentSource source)
Create appointment- Parameters:
source-
-
-
Method Detail
-
getComment
public javafx.beans.property.StringProperty getComment()
Get Wrapper forAppointmentSource.comment- Returns:
- the wrapper
-
getPriority
public javafx.beans.property.ObjectProperty<AppointmentSource.Priority> getPriority()
Get Wrapper forAppointmentSource.priority- Returns:
- the wrapper
-
getStart
public javafx.beans.property.ObjectProperty<java.time.LocalDateTime> getStart()
Get Wrapper forAppointmentSource.start- Returns:
- the wrapper
-
getEnd
public javafx.beans.property.ObjectProperty<java.time.LocalDateTime> getEnd()
Get Wrapper forAppointmentSource.end- Returns:
- the wrapper
-
wrap
protected static javafx.collections.ObservableList<Appointment> wrap(java.util.List<AppointmentSource> list)
Wrapping a List: Transform aListofAppointmentSourceinto aObservableListofAppointment-Wrappers.- Parameters:
list-ListofAppointmentSource- Returns:
ObservableListofAppointment
-
unwrap
protected static java.util.List<AppointmentSource> unwrap(java.util.List<Appointment> list)
- Parameters:
list-ListofAppointment- Returns:
ListofAppointmentSource
-
-