com.cc.framework.taglib.controls
Class SchedulerTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.cc.framework.taglib.ScriptTagSupport
          extended bycom.cc.framework.taglib.controls.BaseControlTag
              extended bycom.cc.framework.taglib.controls.SchedulerTag
All Implemented Interfaces:
AjaxSupportTag, DesignRuleContainerTag, FrameContainerTag, ImageContainerTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, ScriptSupport, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class SchedulerTag
extends BaseControlTag
implements FrameContainerTag

Tag Handler für das <calendar>-Tag

Version:
$Revision: 1.23 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          Serial Version UID
private  SchedulerView view
          The Initial State for this control
 
Fields inherited from class com.cc.framework.taglib.controls.BaseControlTag
log
 
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
SchedulerTag()
          Constructor
 
Method Summary
 void addInnerFrame(InnerFrame frame)
          Adds a new inner Frame to the container
protected  Control doCreateControl()
          Creates the control element
protected  ControlDesignModel doCreateDesignModel()
          This method is called to create the DesignModel for the control
protected  SchedulerDesignModel getSchedulerDesignModel()
          Returns a casted version of the ControlDesignModel
 void release()
           
 void setAddButton(java.lang.String value)
          Sets the Flag for the AddButton
 void setAllDayArea(java.lang.String show)
          Sets a value specifying whether the all-day area is displayed.
 void setCheckboxes(java.lang.String viewList)
          Indicates whether a checkbox should be displayed before the appointment entries.
 void setColumns(java.lang.String columns)
          Sets the number of columns in year view
 void setCompressWeekEnds(java.lang.String comress)
          Sets a value indicating whether the weekends should be compressed in one day
 void setCreateButton(java.lang.String value)
          Sets the Flag for the CreateButton
 void setDayEndHour(java.lang.String hour)
          Sets a value indicating the end of the hour range displayed by the Schedule on DayView.
 void setDayStartHour(java.lang.String hour)
          Sets a value indicating the start of the hour range displayed by the Schedule on DayView.
 void setExportListButton(java.lang.String value)
          Sets the Flag for the ExportList Button
 void setFilter(java.lang.String filter)
          The automatic HTML coding of the control can be activated or disabled with the filter-attribute
 void setFirstDayOfWeek(java.lang.String dayName)
          Sets the first day of the week
 void setHideButtons(java.lang.String controlButtonList)
          Hides all buttons in the ControlButton List.
 void setImage(ImageModel image)
          Sets the image
 void setImagemap(java.lang.String mapName)
          Specifies the name of an Imagemap which must be saved in the request.
 void setInterval(java.lang.String interval)
          Sets a value specifying the interval in which the hour is divided.
 void setMaxVisible(java.lang.String max)
          Sets the maximum visible appointments for one Day
 void setMonthIncrement(java.lang.String increment)
          Sets the number of month to increment in year view when the user clicks on one of the navigation buttons.
 void setNoframe(java.lang.String noframe)
          Disables the controls frame
 void setPopups(java.lang.String show)
           
 void setPrintListButton(java.lang.String value)
          Sets the Flag for the PrintList Button
 void setRefreshButton(java.lang.String value)
          Sets the Flag for the RefreshButton
 void setRows(java.lang.String rows)
          Sets the number of rows in year view
 void setTitle(java.lang.String title)
          The main title of the control
 void setView(java.lang.String view)
          Specifies the style used to display dates in a Scheduler control
 void setViewButtons(java.lang.String buttonList)
          Sets the list with the available views for this control
 void setWeekEndDays(java.lang.String show)
          Sets a value specifying whether the week end days are shown in week, month and navigator view.
 void setWorkEndHour(java.lang.String hour)
          Sets a value indicating the end time of the day for the working hours.
 void setWorkingDayMask(int dayMask)
          Sets a Mask with the weeks working days.
 void setWorkingDays(java.lang.String dayList)
          Sets a list with the weeks working days.
 void setWorkStartHour(java.lang.String hour)
          Sets a value indicating the start time of the day for the working hours.
 
Methods inherited from class com.cc.framework.taglib.controls.BaseControlTag
addDesignRule, beginPaint, createControl, createPainter, doEndTag, doStartTag, endPaint, getClientHandler, getControl, getDefaultAction, getDesignModel, getDirectValue, getHttpScope, getPainterContext, lookupBean, releaseDesignModel, setAction, setAjax, setAjax, setBorder, setDirectValue, setDisabled, setFormElement, setHeight, setHelp, setId, setLocale, setName, setPageContext, setPermission, setProperty, setRunat, setScope, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabindex, setTooltip, setTransaction, setValue, setWidth
 
Methods inherited from class com.cc.framework.taglib.ScriptTagSupport
setOnabort, setOnactivate, setOnafterprint, setOnafterupdate, setOnbeforeactivate, setOnbeforecopy, setOnbeforecut, setOnbeforedeactivate, setOnbeforeeditfocus, setOnbeforepaste, setOnbeforeprint, setOnbeforeunload, setOnbeforeupdate, setOnblur, setOnbounce, setOncellchange, setOnchange, setOncheck, setOncheckall, setOnclick, setOncollapse, setOncontextmenu, setOncontrolselect, setOncopy, setOncut, setOndataavailable, setOndatasetchanged, setOndatasetcomplete, setOndblclick, setOndeactivate, setOndrag, setOndragend, setOndragenter, setOndragleave, setOndragover, setOndragstart, setOndrop, setOnerror, setOnerrorupdate, setOnexpand, setOnexpandex, setOnfilterchange, setOnfinish, setOnfocus, setOnfocusin, setOnfocusout, setOnhelp, setOnkeydown, setOnkeypress, setOnkeyup, setOnlayoutcomplete, setOnload, setOnlosecapture, setOnmousedown, setOnmouseenter, setOnmouseleave, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnmousewheel, setOnmove, setOnmoveend, setOnmovestart, setOnpaste, setOnpropertychange, setOnreadystatechange, setOnreset, setOnresize, setOnresizeend, setOnresizestart, setOnrowenter, setOnrowexit, setOnrowsdelete, setOnrowsinserted, setOnscroll, setOnselect, setOnselectionchange, setOnselectstart, setOnspindown, setOnspinup, setOnstart, setOnstop, setOnsubmit, setOnuncheck, setOnuncheckall, setOnunload
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

view

private SchedulerView view
The Initial State for this control

Constructor Detail

SchedulerTag

public SchedulerTag()
Constructor

Method Detail

doCreateDesignModel

protected ControlDesignModel doCreateDesignModel()
Description copied from class: BaseControlTag
This method is called to create the DesignModel for the control

Specified by:
doCreateDesignModel in class BaseControlTag
Returns:
A concrete DesignModel
See Also:
BaseControlTag.doCreateDesignModel()

getSchedulerDesignModel

protected SchedulerDesignModel getSchedulerDesignModel()
Returns a casted version of the ControlDesignModel

Returns:
SchedulerDesignModel

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class BaseControlTag
See Also:
Tag.release()

doCreateControl

protected Control doCreateControl()
                           throws javax.servlet.jsp.JspException
Description copied from class: BaseControlTag
Creates the control element

Specified by:
doCreateControl in class BaseControlTag
Returns:
control element
Throws:
javax.servlet.jsp.JspException - If an error during bean lookup occurs
See Also:
BaseControlTag.doCreateControl()

setTitle

public void setTitle(java.lang.String title)
The main title of the control

Parameters:
title - The main title of the control

setRefreshButton

public void setRefreshButton(java.lang.String value)
                      throws javax.servlet.jsp.JspException
Sets the Flag for the RefreshButton

Parameters:
value - Flag, true if the RefreshButton should be painted
Throws:
javax.servlet.jsp.JspException - if the Argument can not be converted to a boolean Value

setCreateButton

public void setCreateButton(java.lang.String value)
                     throws javax.servlet.jsp.JspException
Sets the Flag for the CreateButton

Parameters:
value - Flag, true if the CreateButton should be painted
Throws:
javax.servlet.jsp.JspException - if the Argument can not be converted to a boolean Value

setAddButton

public void setAddButton(java.lang.String value)
                  throws javax.servlet.jsp.JspException
Sets the Flag for the AddButton

Parameters:
value - Flag, true if the AddButton should be painted
Throws:
javax.servlet.jsp.JspException - if the Argument can not be converted to a boolean Value

setPrintListButton

public void setPrintListButton(java.lang.String value)
                        throws javax.servlet.jsp.JspException
Sets the Flag for the PrintList Button

Parameters:
value - Flag, true if the Button should be shown
Throws:
javax.servlet.jsp.JspException - if the Argument can not be converted to a boolean Value

setExportListButton

public void setExportListButton(java.lang.String value)
                         throws javax.servlet.jsp.JspException
Sets the Flag for the ExportList Button

Parameters:
value - Flag, true if the Button should be shown
Throws:
javax.servlet.jsp.JspException - if the Argument can not be converted to a boolean Value

setNoframe

public void setNoframe(java.lang.String noframe)
                throws javax.servlet.jsp.JspException
Disables the controls frame

Parameters:
noframe - true if the frame should be hidden
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to boolean

setPopups

public void setPopups(java.lang.String show)
               throws javax.servlet.jsp.JspException
Parameters:
show - true to show appointments in year view in a popup window
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to boolean

setColumns

public void setColumns(java.lang.String columns)
                throws javax.servlet.jsp.JspException
Sets the number of columns in year view

Parameters:
columns - number of columns
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to int

setRows

public void setRows(java.lang.String rows)
             throws javax.servlet.jsp.JspException
Sets the number of rows in year view

Parameters:
rows - number of rows
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to int

setMonthIncrement

public void setMonthIncrement(java.lang.String increment)
                       throws javax.servlet.jsp.JspException
Sets the number of month to increment in year view when the user clicks on one of the navigation buttons. A value of 0 resets the the control to the default increment which is the number of visible months (= rows * columns)

Parameters:
increment - Number of columns to increment
Throws:
javax.servlet.jsp.JspException - Is thrown when the argument can not be converted to int

setView

public void setView(java.lang.String view)
             throws javax.servlet.jsp.JspException
Specifies the style used to display dates in a Scheduler control

Parameters:
view - The view to set
Throws:
javax.servlet.jsp.JspException - If the argument can not be parsed

setImagemap

public void setImagemap(java.lang.String mapName)
                 throws javax.servlet.jsp.JspException
Specifies the name of an Imagemap which must be saved in the request. The values that the Appointments getImageRef() method returns are mapped to the entries of this Imagemap. The mapping is done with the help of the regular expression, which is assigned to every entry of the Imagemap.

Parameters:
mapName - The ImageMap to assign
Throws:
javax.servlet.jsp.JspException - If the ImageMap can not be found

setCompressWeekEnds

public void setCompressWeekEnds(java.lang.String comress)
                         throws javax.servlet.jsp.JspException
Sets a value indicating whether the weekends should be compressed in one day

Parameters:
comress - boolean value
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to boolean

setDayStartHour

public void setDayStartHour(java.lang.String hour)
                     throws javax.servlet.jsp.JspException
Sets a value indicating the start of the hour range displayed by the Schedule on DayView.

Parameters:
hour - the start hour
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to int

setDayEndHour

public void setDayEndHour(java.lang.String hour)
                   throws javax.servlet.jsp.JspException
Sets a value indicating the end of the hour range displayed by the Schedule on DayView.

Parameters:
hour - the start hour
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to int

setWorkStartHour

public void setWorkStartHour(java.lang.String hour)
                      throws javax.servlet.jsp.JspException
Sets a value indicating the start time of the day for the working hours.

Parameters:
hour - the start hour
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to int

setWorkEndHour

public void setWorkEndHour(java.lang.String hour)
                    throws javax.servlet.jsp.JspException
Sets a value indicating the end time of the day for the working hours.

Parameters:
hour - the start hour
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to int

setAllDayArea

public void setAllDayArea(java.lang.String show)
                   throws javax.servlet.jsp.JspException
Sets a value specifying whether the all-day area is displayed.

Parameters:
show - boolean value
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to boolean

setInterval

public void setInterval(java.lang.String interval)
                 throws javax.servlet.jsp.JspException
Sets a value specifying the interval in which the hour is divided.

Parameters:
interval - the interval in minutes (5|6|10|15|30|60)
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to int

setWeekEndDays

public void setWeekEndDays(java.lang.String show)
                    throws javax.servlet.jsp.JspException
Sets a value specifying whether the week end days are shown in week, month and navigator view.

Parameters:
show - boolean value
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to boolean

setWorkingDayMask

public void setWorkingDayMask(int dayMask)
Sets a Mask with the weeks working days. The mask is a bitwise or combination of the following integer constants representing each day of the week:

Parameters:
dayMask - Mask

setWorkingDays

public void setWorkingDays(java.lang.String dayList)
Sets a list with the weeks working days. The mask is a semicolon seperated list of Day Names (Locale.ENGLISH)

Parameters:
dayList - Mask

setFirstDayOfWeek

public void setFirstDayOfWeek(java.lang.String dayName)
Sets the first day of the week

Parameters:
dayName - The name (Locale.ENGLISH) of the first day of the week

setMaxVisible

public void setMaxVisible(java.lang.String max)
                   throws javax.servlet.jsp.JspException
Sets the maximum visible appointments for one Day

Parameters:
max - Maximum visible Appointments for one Day
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to int

addInnerFrame

public void addInnerFrame(InnerFrame frame)
Description copied from interface: FrameContainerTag
Adds a new inner Frame to the container

Specified by:
addInnerFrame in interface FrameContainerTag
Parameters:
frame - The inner Frame to add
See Also:
FrameContainerTag.addInnerFrame(com.cc.framework.ui.model.InnerFrame)

setImage

public void setImage(ImageModel image)
Description copied from interface: ImageContainerTag
Sets the image

Specified by:
setImage in interface ImageContainerTag
Parameters:
image - The image model for the image
See Also:
ImageContainerTag.setImage(com.cc.framework.ui.model.ImageModel)

setViewButtons

public void setViewButtons(java.lang.String buttonList)
Sets the list with the available views for this control

Parameters:
buttonList - Semicolon delimited list

setFilter

public void setFilter(java.lang.String filter)
               throws javax.servlet.jsp.JspException
The automatic HTML coding of the control can be activated or disabled with the filter-attribute

Parameters:
filter - true if string values should be HTML encoded.
Throws:
javax.servlet.jsp.JspException - If the Argument can't be converted to a boolean

setCheckboxes

public void setCheckboxes(java.lang.String viewList)
                   throws javax.servlet.jsp.JspException
Indicates whether a checkbox should be displayed before the appointment entries. The appointment entries must implement the Checkable Interface, so that the control element can draw the checkboxes.

Parameters:
viewList - true if checkboxes should be displayed
Throws:
javax.servlet.jsp.JspException - if the argument can not be converted to a boolean value

setHideButtons

public void setHideButtons(java.lang.String controlButtonList)
                    throws javax.servlet.jsp.JspException
Hides all buttons in the ControlButton List.

Parameters:
controlButtonList - A semicolon delimited list of ControlButton names
Throws:
javax.servlet.jsp.JspException - Is thrown when a invalid ControlButton Name is specified


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.