kolibribeans
Class Day

java.lang.Object
  |
  +--kolibribeans.Day

public class Day
extends java.lang.Object

Title: Day.java Description: Provides a presentation of preferred day Copyright: Copyright (c) 2001 Company:


Constructor Summary
Day()
          Class constructor
Day(EventBeanContainer events, java.util.Calendar date, java.util.Calendar monthView)
          Class constructor specifying some parameters
Day(EventBeanContainer events, java.util.Calendar date, java.util.Calendar monthView, int clockMinuteAddition, int firstHour, int lastHour)
          Class constructor specifying all possible parameters
 
Method Summary
 int getClockMinuteAddition()
          Getter method for time interval
 java.util.Calendar getDate()
          Getter method for date
 EventBeanContainer getEvents()
          Getter method for EventBeanContainer
 int getFirstHour()
          Getter method for starttime
 int getLastHour()
          Getter method for endtime
 java.util.Calendar getMonthView()
          Getter method for monthView
 void nullifySeconds(java.util.Calendar date)
          Sets calendarfields to preferred state
 void printDay(javax.servlet.jsp.JspWriter out, User user)
          Prints presentation of preferred day
 void printEndTimeCombo(javax.servlet.jsp.JspWriter out, java.lang.String comboName, int currentLastHour)
          Prints out a combobox that can be used to select end of day in hours.
 void printStartTimeCombo(javax.servlet.jsp.JspWriter out, java.lang.String comboName, int currentFirstHour)
          Prints out a combobox that can be used to select beginning of day in hours.
 void printTimeCombo(javax.servlet.jsp.JspWriter out, java.lang.String comboName, int currentTimeAddition)
          Prints out a combobox that can be used to select timeAddition in minutes.
 void printTimeForm(javax.servlet.jsp.JspWriter out, User user, java.lang.String JSPFile)
          Prints out form to use in timeinterval change.
 void printTimeForm(javax.servlet.jsp.JspWriter out, User user, java.lang.String comboName, int currentTimeAddition, java.lang.String JSPFile)
          Prints out form to use in timeinterval change.
 void setClockMinuteAddition(int clockMinuteAddition)
          Setter method for time interval
 void setDate(java.util.Calendar date)
          Setter method for date
 void setEvents(EventBeanContainer events)
          Setter method for EventBeanContainer
 void setFirstHour(int firstHour)
          Setter method for beginning times
 void setLastHour(int lastHour)
          Setter method for endtimes
 void setMonthView(java.util.Calendar MonthView)
          Setter method for monthView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Day

public Day()
Class constructor


Day

public Day(EventBeanContainer events,
           java.util.Calendar date,
           java.util.Calendar monthView,
           int clockMinuteAddition,
           int firstHour,
           int lastHour)
Class constructor specifying all possible parameters

Parameters:
events - events to draw calendar from
date - date preferred to be created
monthView - date of month to be created
clockMinuteAddition - preferred time interval
firstHour - first hour of date to show
lastHour - last hour of date to show

Day

public Day(EventBeanContainer events,
           java.util.Calendar date,
           java.util.Calendar monthView)
Class constructor specifying some parameters

Parameters:
events - events to draw calendar from
date - date preferred to be created
Method Detail

setEvents

public void setEvents(EventBeanContainer events)
Setter method for EventBeanContainer

Parameters:
events - events to draw calendar from

getEvents

public EventBeanContainer getEvents()
Getter method for EventBeanContainer

Returns:
events events to draw calendar from

getClockMinuteAddition

public int getClockMinuteAddition()
Getter method for time interval

Returns:
time interval

setClockMinuteAddition

public void setClockMinuteAddition(int clockMinuteAddition)
Setter method for time interval

Parameters:
clockMinuteAddition - preferred time interval

getDate

public java.util.Calendar getDate()
Getter method for date

Returns:
date date of object

setDate

public void setDate(java.util.Calendar date)
Setter method for date

Parameters:
date - date of object to be created

getMonthView

public java.util.Calendar getMonthView()
Getter method for monthView

Returns:
monthView monthView of object

setMonthView

public void setMonthView(java.util.Calendar MonthView)
Setter method for monthView


setFirstHour

public void setFirstHour(int firstHour)
Setter method for beginning times

Parameters:
firstHour - hour to initialize

setLastHour

public void setLastHour(int lastHour)
Setter method for endtimes

Parameters:
lastHour - hour to initialize

getFirstHour

public int getFirstHour()
Getter method for starttime

Returns:
firstHour

getLastHour

public int getLastHour()
Getter method for endtime

Returns:
lastHour

printDay

public void printDay(javax.servlet.jsp.JspWriter out,
                     User user)
              throws java.io.IOException
Prints presentation of preferred day

Parameters:
out - preferred outputstream
Throws:
java.io.IOException - if an exceptional condition has ocurred during input/output

nullifySeconds

public void nullifySeconds(java.util.Calendar date)
Sets calendarfields to preferred state

Parameters:
date - date to be formatted

printTimeCombo

public void printTimeCombo(javax.servlet.jsp.JspWriter out,
                           java.lang.String comboName,
                           int currentTimeAddition)
                    throws java.io.IOException
Prints out a combobox that can be used to select timeAddition in minutes.

Parameters:
out - preferred output stream
java.io.IOException

printStartTimeCombo

public void printStartTimeCombo(javax.servlet.jsp.JspWriter out,
                                java.lang.String comboName,
                                int currentFirstHour)
                         throws java.io.IOException
Prints out a combobox that can be used to select beginning of day in hours.

Parameters:
out - preferred output stream
currentFirstHour -
java.io.IOException

printEndTimeCombo

public void printEndTimeCombo(javax.servlet.jsp.JspWriter out,
                              java.lang.String comboName,
                              int currentLastHour)
                       throws java.io.IOException
Prints out a combobox that can be used to select end of day in hours.

Parameters:
out - preferred output stream
currentLastHour -
java.io.IOException

printTimeForm

public void printTimeForm(javax.servlet.jsp.JspWriter out,
                          User user,
                          java.lang.String comboName,
                          int currentTimeAddition,
                          java.lang.String JSPFile)
                   throws java.io.IOException
Prints out form to use in timeinterval change.

Parameters:
out - preferred output stream
user - user that has logged in
currentTimeAddition - time addition to use as current
JSPFile - Jsp-file to use as form target
java.io.IOException

printTimeForm

public void printTimeForm(javax.servlet.jsp.JspWriter out,
                          User user,
                          java.lang.String JSPFile)
                   throws java.io.IOException
Prints out form to use in timeinterval change.

Parameters:
out - preferred output stream
user - user that has logged in
JSPFile - Jsp-file to use as form target
java.io.IOException