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.StringProperty
getComment()
Get Wrapper forAppointmentSource.comment
javafx.beans.property.ObjectProperty<java.time.LocalDateTime>
getEnd()
Get Wrapper forAppointmentSource.end
javafx.beans.property.ObjectProperty<AppointmentSource.Priority>
getPriority()
Get Wrapper forAppointmentSource.priority
javafx.beans.property.ObjectProperty<java.time.LocalDateTime>
getStart()
Get Wrapper forAppointmentSource.start
protected 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 aList
ofAppointmentSource
into aObservableList
ofAppointment
-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 aList
ofAppointmentSource
into aObservableList
ofAppointment
-Wrappers.- Parameters:
list
-List
ofAppointmentSource
- Returns:
ObservableList
ofAppointment
-
unwrap
protected static java.util.List<AppointmentSource> unwrap(java.util.List<Appointment> list)
- Parameters:
list
-List
ofAppointment
- Returns:
List
ofAppointmentSource
-
-