|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.calendar.CalendarTag
abstract class CalendarTag
A JSP tag to display a calendar view table.
| Field Summary | |
|---|---|
protected int |
_border
|
protected int |
_cellPad
|
protected int |
_cellSpace
|
protected String |
_contentClass
|
protected Calendar |
_currentDate
|
protected XMLRenderer |
_day
|
protected String |
_dayBarClass
|
protected Date |
_endDate
|
protected Collection<CalendarEntry> |
_entries
|
protected int |
_intervalLength
|
protected int |
_intervalType
|
protected JspWriter |
_out
|
protected boolean |
_showDaysOfWeek
|
protected Date |
_startDate
|
protected XMLRenderer |
_table
|
protected String |
_tableClass
|
protected String |
_tableID
|
protected String |
_topBarClass
|
protected TZInfo |
_tz
|
| 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 | |
|---|---|
CalendarTag()
|
|
| Method Summary | |
|---|---|
protected void |
calculateEndDate(int intervalType,
int amount)
Calculcates the end date based on the start date and a particular interval amount. |
int |
doAfterBody()
Determines if we have further days to render in the calendar. |
int |
doEndTag()
Ends the Calendar tag by adding the scroll forward/backward link row. |
int |
doStartTag()
Starts the Calendar tag by setting the current date to render. |
protected abstract String |
getBackLabel()
Returns the label for the scroll backwards link. |
(package private) Collection<CalendarEntry> |
getCurrentEntries()
Returns all Calendar entries for the currently rendered Date, from midnight to 11:59PM. |
protected abstract String |
getForwardLabel()
Returns the label for the scroll forwards link |
void |
release()
Releases the tag's state variables. |
void |
setBorder(int border)
Sets the BORDER value for this table. |
void |
setCmd(String cmdName)
Sets the command name to use when scrolling the view. |
void |
setContentClass(String cName)
Sets the CSS class name for the view table content bar. |
void |
setDate(String attrName)
Sets the request attribute name for the current date. |
void |
setDayBarClass(String cName)
Sets the CSS class name for the view table day bar. |
void |
setEntries(Collection<CalendarEntry> entries)
Sets the entries to display in this calendar view table. |
void |
setPad(int cPadding)
Sets the CELLPADDING value for this table. |
void |
setPageContext(PageContext ctx)
Sets the page context for the tag, and sets the user's time zone. |
void |
setScrollClass(String cName)
Sets the CSS class name for the forwad/backward scroll links. |
void |
setScrollTags(boolean showScroll)
Sets whether to display the forward/backward scroll tags. |
void |
setShowDaysOfWeek(boolean showDOW)
Sets whether the days of the week should be displayed below the title bar. |
void |
setSpace(int cSpacing)
Sets the CELLSPACING value for this table. |
abstract void |
setStartDate(Date dt)
Sets the start date of the data range. |
void |
setTableClass(String cName)
Sets the CSS class name for the view table. |
void |
setTableID(String id)
Sets the CSS ID for the view table. |
void |
setTopBarClass(String cName)
Sets the CSS class name for the view table title bar. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, 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.Tag |
|---|
getParent, setParent |
| Field Detail |
|---|
protected JspWriter _out
protected Date _startDate
protected Date _endDate
protected Calendar _currentDate
protected TZInfo _tz
protected final Collection<CalendarEntry> _entries
protected String _tableID
protected String _tableClass
protected String _topBarClass
protected String _dayBarClass
protected String _contentClass
protected int _border
protected boolean _showDaysOfWeek
protected XMLRenderer _table
protected XMLRenderer _day
protected int _cellPad
protected int _cellSpace
protected int _intervalType
protected int _intervalLength
| Constructor Detail |
|---|
CalendarTag()
| Method Detail |
|---|
public abstract void setStartDate(Date dt)
dt - the start date/timeprotected abstract String getBackLabel()
getForwardLabel()protected abstract String getForwardLabel()
getBackLabel()
protected void calculateEndDate(int intervalType,
int amount)
intervalType - the interval type (use Calendar constants)amount - the size of the intervalCalendarpublic void setDate(String attrName)
attrName - the request attribute namepublic void setTableClass(String cName)
cName - the CSS class namepublic void setTableID(String id)
id - the IDpublic void setTopBarClass(String cName)
cName - the CSS class namepublic void setDayBarClass(String cName)
cName - the CSS class namepublic void setContentClass(String cName)
cName - the CSS class namepublic void setScrollClass(String cName)
cName - the CSS class namepublic void setCmd(String cmdName)
cmdName - the command namepublic void setShowDaysOfWeek(boolean showDOW)
showDOW - TRUE if the days of the week should be displayed, otherwise FALSEpublic void setScrollTags(boolean showScroll)
showScroll - TRUE if forward/back links are displayed, otherwise FALSEpublic void setSpace(int cSpacing)
cSpacing - the cellspacing attribute value.public void setPad(int cPadding)
cPadding - the cellpadding attribute value.public void setBorder(int border)
border - the border width attribute valuepublic final void setEntries(Collection<CalendarEntry> entries)
entries - a Collection of CalendarEntry beansgetCurrentEntries()public void setPageContext(PageContext ctx)
setPageContext in interface TagsetPageContext in class TagSupportctx - the JSP page contextCollection<CalendarEntry> getCurrentEntries()
setEntries(Collection)
public int doAfterBody()
throws JspException
doAfterBody in interface IterationTagdoAfterBody in class TagSupportJspException - never
public int doStartTag()
throws JspException
doStartTag in interface TagdoStartTag in class TagSupportJspException - never
public int doEndTag()
throws JspException
doEndTag in interface TagdoEndTag in class TagSupportJspException - if an I/O error occurspublic void release()
release in interface Tagrelease in class TagSupport
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||