Package com.webmethods.sc.calendar
Class Workday
java.lang.Object
com.webmethods.sc.calendar.Event
com.webmethods.sc.calendar.Workday
- All Implemented Interfaces:
Serializable
Workday event. Respresents recurring timeslot at the given weekday
- See Also:
-
Field Summary
Fields inherited from class com.webmethods.sc.calendar.Event
EVENT_TYPE_BUSY, EVENT_TYPE_BUSY_TENTATIVE, EVENT_TYPE_HOLIDAY, EVENT_TYPE_OUT_OF_THE_OFFICE, EVENT_TYPE_TIMEOFF, EVENT_TYPE_WORKDAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getDay()
Returns weekday for this Workdayint
Returns end hour of Workday timeslotint
Returns end minute of Workday timeslotint
Returns start hour for Workday timeslotint
Returns start monite for Workday timeslotboolean
Returns if this workday has a weekly recurrence (default=true)void
setDay
(int day) Sets weekday for this Workdayvoid
setEndHour
(int endHour) Sets end hour of Workday timeslotvoid
setEndMinute
(int endMinute) Sets end minute of Workday timeslotvoid
setRecurring
(boolean isRecurring) Sets recurrence for this Workdayvoid
setStartHour
(int startHour) Sets start hour for Workday timeslotvoid
setStartMinute
(int startMinute) Sets start minute for Workday timeslot
-
Constructor Details
-
Workday
public Workday()Default constructor -
Workday
public Workday(int day, int startHour, int startMinute, int endHour, int endMinute) Creates a workday for given day of the week and timeslot- Parameters:
day
- of week. SeeCalendar
startHour
- start hour for workday timeslotstartMinute
- start minute for workday timeslotendHour
- end hour for workday timeslotendMinute
- end monute for workday timeslot
-
-
Method Details
-
getDay
public int getDay()Returns weekday for this Workday -
setDay
public void setDay(int day) Sets weekday for this Workday- Parameters:
day
-
-
isRecurring
public boolean isRecurring()Returns if this workday has a weekly recurrence (default=true) -
setRecurring
public void setRecurring(boolean isRecurring) Sets recurrence for this Workday -
getEndHour
public int getEndHour()Returns end hour of Workday timeslot -
setEndHour
public void setEndHour(int endHour) Sets end hour of Workday timeslot -
getEndMinute
public int getEndMinute()Returns end minute of Workday timeslot -
setEndMinute
public void setEndMinute(int endMinute) Sets end minute of Workday timeslot -
getStartHour
public int getStartHour()Returns start hour for Workday timeslot -
setStartHour
public void setStartHour(int startHour) Sets start hour for Workday timeslot -
getStartMinute
public int getStartMinute()Returns start monite for Workday timeslot -
setStartMinute
public void setStartMinute(int startMinute) Sets start minute for Workday timeslot -
equals
-