Module com.flexganttfx.model
Package com.flexganttfx.model.calendar
Class MutableCalendarActivityBase<T>
java.lang.Object
com.flexganttfx.model.activity.ActivityBase<T>
com.flexganttfx.model.activity.MutableActivityBase<T>
com.flexganttfx.model.calendar.MutableCalendarActivityBase<T>
- Type Parameters:
T
- the type of the optional user object
- All Implemented Interfaces:
Activity
,MutableActivity
,CalendarActivity
public class MutableCalendarActivityBase<T> extends MutableActivityBase<T> implements CalendarActivity
A mutable calendar activity base implementation.
- Since:
- 1.0
-
Field Summary
Fields inherited from class com.flexganttfx.model.activity.ActivityBase
DEFAULT_DURATION, endTime, id, name, startTime, userObject
-
Constructor Summary
Constructors Constructor Description MutableCalendarActivityBase()
Constructs a new mutable calendar activity.MutableCalendarActivityBase(String name)
Constructs a new mutable calendar activity with the given name.MutableCalendarActivityBase(String name, Instant startTime, Instant endTime)
Constructs a new mutable calendar activity with the given name, start time, and end time.MutableCalendarActivityBase(Instant startTime, Instant endTime)
Constructs a new mutable calendar activity with the start time and end time. -
Method Summary
Methods inherited from class com.flexganttfx.model.activity.MutableActivityBase
addDuration, addDuration, getDuration, setDuration, setEndTime, setName, setStartTime
Methods inherited from class com.flexganttfx.model.activity.ActivityBase
getEndTime, getId, getName, getStartTime, getUserObject, setUserObject, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.flexganttfx.model.Activity
getEndTime, getId, getName, getStartTime
-
Constructor Details
-
MutableCalendarActivityBase
public MutableCalendarActivityBase()Constructs a new mutable calendar activity. The initial start time will be set toInstant.now()
and the end time will be equal toInstant.now()
plus the value ofActivityBase.DEFAULT_DURATION
.- Since:
- 1.0
-
MutableCalendarActivityBase
Constructs a new mutable calendar activity with the given name. The initial start time will be set toInstant.now()
and the end time will be equal toInstant.now()
plus the value ofActivityBase.DEFAULT_DURATION
.- Parameters:
name
- the name of the activity- Since:
- 1.0
-
MutableCalendarActivityBase
Constructs a new mutable calendar activity with the start time and end time.- Parameters:
startTime
- the start time of the activityendTime
- the end time of the activity- Since:
- 1.0
-
MutableCalendarActivityBase
Constructs a new mutable calendar activity with the given name, start time, and end time.- Parameters:
name
- the name of the activitystartTime
- the start time of the activityendTime
- the end time of the activity- Since:
- 1.0
-