java.lang.Object
com.flexganttfx.model.activity.ActivityBase<T>
com.flexganttfx.model.calendar.CalendarActivityBase<Object>
com.flexganttfx.model.calendar.WeekendCalendarActivity
- All Implemented Interfaces:
Activity
,CalendarActivity
public class WeekendCalendarActivity extends CalendarActivityBase<Object>
A specialized calendar activity used to represent weekend days (e.g.
Saturday, Sunday).
- 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 WeekendCalendarActivity(String name, DayOfWeek day)
Constructs a new weekend calendar activity with the given name.WeekendCalendarActivity(String name, Instant startTime, Instant endTime, DayOfWeek day)
Constructs a new weekend calendar activity with the given name, start time, and end time.WeekendCalendarActivity(DayOfWeek day)
Constructs a new weekend calendar activity.WeekendCalendarActivity(Instant startTime, Instant endTime, DayOfWeek day)
Constructs a new weekend calendar activity with the start time and end time. -
Method Summary
Modifier and Type Method Description DayOfWeek
getDayOfWeek()
Returns the week day that this activity is representing, e.g.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
-
WeekendCalendarActivity
Constructs a new weekend 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
.- Parameters:
day
- the day of week that this activity is representing- Since:
- 1.0
-
WeekendCalendarActivity
Constructs a new weekend 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 activityday
- the day of week that this activity is representing- Since:
- 1.0
-
WeekendCalendarActivity
Constructs a new weekend calendar activity with the start time and end time.- Parameters:
startTime
- the start time of the activityendTime
- the end time of the activityday
- the day of week that this activity is representing- Since:
- 1.0
-
WeekendCalendarActivity
Constructs a new weekend 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 activityday
- the day of week that this activity is representing- Since:
- 1.0
-
-
Method Details
-
getDayOfWeek
Returns the week day that this activity is representing, e.g.DayOfWeek.SUNDAY
.- Returns:
- the day of week represented by this activity
- Since:
- 1.0
-