com.webmethods.sc.calendar
Class Workday

java.lang.Object
  extended by com.webmethods.sc.calendar.Event
      extended by com.webmethods.sc.calendar.Workday
All Implemented Interfaces:
Serializable

public class Workday
extends Event

Workday event. Respresents recurring timeslot at the given weekday

See Also:
Serialized Form

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
Workday()
          Default constructor
Workday(int day, int startHour, int startMinute, int endHour, int endMinute)
          Creates a workday for given day of the week and timeslot
 
Method Summary
 boolean equals(Object obj)
           
 int getDay()
          Returns weekday for this Workday
 int getEndHour()
          Returns end hour of Workday timeslot
 int getEndMinute()
          Returns end minute of Workday timeslot
 int getStartHour()
          Returns start hour for Workday timeslot
 int getStartMinute()
          Returns start monite for Workday timeslot
 boolean isRecurring()
          Returns if this workday has a weekly recurrence (default=true)
 void setDay(int day)
          Sets weekday for this Workday
 void setEndHour(int endHour)
          Sets end hour of Workday timeslot
 void setEndMinute(int endMinute)
          Sets end minute of Workday timeslot
 void setRecurring(boolean isRecurring)
          Sets recurrence for this Workday
 void setStartHour(int startHour)
          Sets start hour for Workday timeslot
 void setStartMinute(int startMinute)
          Sets start minute for Workday timeslot
 
Methods inherited from class com.webmethods.sc.calendar.Event
getName, getType, setName, setType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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. See Calendar
startHour - start hour for workday timeslot
startMinute - start minute for workday timeslot
endHour - end hour for workday timeslot
endMinute - end monute for workday timeslot
Method Detail

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

public boolean equals(Object obj)
Overrides:
equals in class Event