org.juniverse.jorganizer.calendar
Class CalendarMonthTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--org.juniverse.jorganizer.calendar.CalendarMonthTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class CalendarMonthTag
extends javax.servlet.jsp.tagext.TagSupport

This Custom Tag displays an calendar (month).

See Also:
Serialized Form

Field Summary
private  java.lang.String bgstyle1
           
private  java.lang.String bgstyle2
           
private  java.lang.String borderstyle
           
private  java.lang.String fontstyleheader
           
private  java.lang.String fontstylehighlight
           
private  java.lang.String fontstyleothermonth
           
private  java.lang.String fontstylepresent
           
private  java.lang.String fontstyletoday
           
private  java.lang.String headerstyle
           
private  java.lang.String height
           
private  java.lang.String link
           
private  int month
           
private  java.lang.String width
           
private  int year
           
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
CalendarMonthTag()
           
 
Method Summary
 int doEndTag()
           
 java.lang.String getBgstyle1()
          Returns the bgstyle1.
 java.lang.String getBgstyle2()
          Returns the bgstyle2.
 java.lang.String getBorderstyle()
          Returns the borderstyle.
 java.util.GregorianCalendar getFirstDayOnCalendar()
          This method returns the first day displayed on the calendar.
 java.util.GregorianCalendar getFirstDisplayedDate()
          This method returns the first displayed date on the calendar
 java.lang.String getFontstyleheader()
          Returns the fontstyleheader.
 java.lang.String getFontstylehighlight()
          Returns the fontstylehighlight.
 java.lang.String getFontstyleothermonth()
          Returns the fontstyleothermonth.
 java.lang.String getFontstylepresent()
          Returns the fontstylepresent.
 java.lang.String getFontstyletoday()
          Returns the fontstyletoday.
 java.lang.String getHeaderstyle()
          Returns the headerstyle.
 java.lang.String getHeight()
          Returns the height.
 java.lang.String getLink()
          Returns the link.
 int getMonth()
          Returns the month.
private  java.lang.String getTableHeader()
           
 java.lang.String getWidth()
          Returns the width.
 int getYear()
          Returns the year.
private  java.lang.String parseLink(java.lang.String link, int day)
           
 void setBgstyle1(java.lang.String bgstyle1)
          Sets the bgstyle1.
 void setBgstyle2(java.lang.String bgstyle2)
          Sets the bgstyle2.
 void setBorderstyle(java.lang.String borderstyle)
          Sets the borderstyle.
 void setFontstyleheader(java.lang.String fontstyleheader)
          Sets the fontstyleheader.
 void setFontstylehighlight(java.lang.String fontstylehighlight)
          Sets the fontstylehighlight.
 void setFontstyleothermonth(java.lang.String fontstyleothermonth)
          Sets the fontstyleothermonth.
 void setFontstylepresent(java.lang.String fontstylepresent)
          Sets the fontstylepresent.
 void setFontstyletoday(java.lang.String fontstyletoday)
          Sets the fontstyletoday.
 void setHeaderstyle(java.lang.String headerstyle)
          Sets the headerstyle.
 void setHeight(java.lang.String height)
          Sets the height.
 void setLink(java.lang.String link)
          Sets the link.
 void setMonth(int month)
          Sets the month.
 void setWidth(java.lang.String width)
          Sets the width.
 void setYear(int year)
          Sets the year.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.IterationTag
 

Field Detail

borderstyle

private java.lang.String borderstyle

bgstyle1

private java.lang.String bgstyle1

bgstyle2

private java.lang.String bgstyle2

headerstyle

private java.lang.String headerstyle

fontstylepresent

private java.lang.String fontstylepresent

fontstyletoday

private java.lang.String fontstyletoday

fontstylehighlight

private java.lang.String fontstylehighlight

fontstyleothermonth

private java.lang.String fontstyleothermonth

fontstyleheader

private java.lang.String fontstyleheader

width

private java.lang.String width

height

private java.lang.String height

year

private int year

month

private int month

link

private java.lang.String link
Constructor Detail

CalendarMonthTag

public CalendarMonthTag()
Method Detail

doEndTag

public int doEndTag()
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
See Also:
Tag.doEndTag()

parseLink

private java.lang.String parseLink(java.lang.String link,
                                   int day)

getFirstDayOnCalendar

public java.util.GregorianCalendar getFirstDayOnCalendar()
This method returns the first day displayed on the calendar.

Returns:
java.util.GregorianCalendar

getFirstDisplayedDate

public java.util.GregorianCalendar getFirstDisplayedDate()
This method returns the first displayed date on the calendar

Returns:
java.util.GregorianCalendar

getTableHeader

private java.lang.String getTableHeader()

getBgstyle1

public java.lang.String getBgstyle1()
Returns the bgstyle1.

Returns:
String

getBgstyle2

public java.lang.String getBgstyle2()
Returns the bgstyle2.

Returns:
String

getBorderstyle

public java.lang.String getBorderstyle()
Returns the borderstyle.

Returns:
String

getFontstylehighlight

public java.lang.String getFontstylehighlight()
Returns the fontstylehighlight.

Returns:
String

getFontstyleothermonth

public java.lang.String getFontstyleothermonth()
Returns the fontstyleothermonth.

Returns:
String

getFontstylepresent

public java.lang.String getFontstylepresent()
Returns the fontstylepresent.

Returns:
String

getFontstyletoday

public java.lang.String getFontstyletoday()
Returns the fontstyletoday.

Returns:
String

getHeaderstyle

public java.lang.String getHeaderstyle()
Returns the headerstyle.

Returns:
String

getHeight

public java.lang.String getHeight()
Returns the height.

Returns:
String

getWidth

public java.lang.String getWidth()
Returns the width.

Returns:
String

setBgstyle1

public void setBgstyle1(java.lang.String bgstyle1)
Sets the bgstyle1.

Parameters:
bgstyle1 - The bgstyle1 to set

setBgstyle2

public void setBgstyle2(java.lang.String bgstyle2)
Sets the bgstyle2.

Parameters:
bgstyle2 - The bgstyle2 to set

setBorderstyle

public void setBorderstyle(java.lang.String borderstyle)
Sets the borderstyle.

Parameters:
borderstyle - The borderstyle to set

setFontstylehighlight

public void setFontstylehighlight(java.lang.String fontstylehighlight)
Sets the fontstylehighlight.

Parameters:
fontstylehighlight - The fontstylehighlight to set

setFontstyleothermonth

public void setFontstyleothermonth(java.lang.String fontstyleothermonth)
Sets the fontstyleothermonth.

Parameters:
fontstyleothermonth - The fontstyleothermonth to set

setFontstylepresent

public void setFontstylepresent(java.lang.String fontstylepresent)
Sets the fontstylepresent.

Parameters:
fontstylepresent - The fontstylepresent to set

setFontstyletoday

public void setFontstyletoday(java.lang.String fontstyletoday)
Sets the fontstyletoday.

Parameters:
fontstyletoday - The fontstyletoday to set

setHeaderstyle

public void setHeaderstyle(java.lang.String headerstyle)
Sets the headerstyle.

Parameters:
headerstyle - The headerstyle to set

setHeight

public void setHeight(java.lang.String height)
Sets the height.

Parameters:
height - The height to set

setWidth

public void setWidth(java.lang.String width)
Sets the width.

Parameters:
width - The width to set

getMonth

public int getMonth()
Returns the month.

Returns:
String

getYear

public int getYear()
Returns the year.

Returns:
String

setMonth

public void setMonth(int month)
Sets the month.

Parameters:
month - The month to set

setYear

public void setYear(int year)
Sets the year.

Parameters:
year - The year to set

getLink

public java.lang.String getLink()
Returns the link.

Returns:
String

setLink

public void setLink(java.lang.String link)
Sets the link.

Parameters:
link - The link to set

getFontstyleheader

public java.lang.String getFontstyleheader()
Returns the fontstyleheader.

Returns:
String

setFontstyleheader

public void setFontstyleheader(java.lang.String fontstyleheader)
Sets the fontstyleheader.

Parameters:
fontstyleheader - The fontstyleheader to set