Class Workday

java.lang.Object
com.webmethods.sc.calendar.Event
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:
  • 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. 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 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

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