com.cc.framework.taglib.controls
Class CheckboxGroupTag

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.CheckboxGroupTag
All Implemented Interfaces:
AjaxSupportTag, javax.servlet.jsp.tagext.BodyTag, DesignRuleContainerTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, OptionsContainerTag, ScriptSupport, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
FormElementCheckboxGroupTag, RadioGroupTag

public class CheckboxGroupTag
extends BaseControlTag
implements OptionsContainerTag, javax.servlet.jsp.tagext.BodyTag

Tag-Handler for the CheckboxGroupTag

Since:
1.0
Version:
$Revision: 1.4 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  javax.servlet.jsp.tagext.BodyContent bodyContent
          The Body Content of the Tag
private static long serialVersionUID
          Serial Version UID
 
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.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
CheckboxGroupTag()
          Constructor
 
Method Summary
 int doAfterBody()
           
protected  Control doCreateControl()
          Creates the control element
protected  ControlDesignModel doCreateDesignModel()
          This method is called to create the DesignModel for the control
 void doInitBody()
           
protected  CheckboxGroupDesignModel getCheckboxGroupDesignModel()
          Returns a casted version of the ControlDesignModel
protected  CheckboxGroupControl getCtrl()
          Retrieves the current Control instance
 OptionsComparator getOptionsComparator()
          Returns an option comparator for this control
 void release()
           
 void setBodyContent(javax.servlet.jsp.tagext.BodyContent b)
           
 void setColumns(java.lang.String columns)
          Specifies the number of checkbox columns
 void setDisableProperty(java.lang.String property)
          Sets the name of the property that is used to disable checkbox items.
 void setGroupingProperty(java.lang.String property)
          Sets the name of the property that is used to group checkbox items.
 void setOptionList(OptionListDesignModel optionList, java.lang.Object optionElements)
          Sets the OptionList which is used by the CheckboxGroup-Control
 void setValue(java.lang.String value)
          Sets the direct value for this control.
 
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, 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
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
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
doEndTag, doStartTag, getParent, setPageContext, setParent
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

bodyContent

private javax.servlet.jsp.tagext.BodyContent bodyContent
The Body Content of the Tag

Constructor Detail

CheckboxGroupTag

public CheckboxGroupTag()
Constructor

Method Detail

getCtrl

protected CheckboxGroupControl getCtrl()
Retrieves the current Control instance

Returns:
Control Instance

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()

getCheckboxGroupDesignModel

protected CheckboxGroupDesignModel getCheckboxGroupDesignModel()
Returns a casted version of the ControlDesignModel

Returns:
CheckboxGroupDesignModel

setBodyContent

public void setBodyContent(javax.servlet.jsp.tagext.BodyContent b)
Specified by:
setBodyContent in interface javax.servlet.jsp.tagext.BodyTag
See Also:
BodyTag.setBodyContent(javax.servlet.jsp.tagext.BodyContent)

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()

doInitBody

public void doInitBody()
                throws javax.servlet.jsp.JspException
Specified by:
doInitBody in interface javax.servlet.jsp.tagext.BodyTag
Throws:
javax.servlet.jsp.JspException
See Also:
BodyTag.doInitBody()

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Throws:
javax.servlet.jsp.JspException
See Also:
IterationTag.doAfterBody()

getOptionsComparator

public OptionsComparator getOptionsComparator()
Returns an option comparator for this control

Specified by:
getOptionsComparator in interface OptionsContainerTag
Returns:
OptionsComparator

setColumns

public void setColumns(java.lang.String columns)
                throws javax.servlet.jsp.JspException
Specifies the number of checkbox columns

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

setGroupingProperty

public void setGroupingProperty(java.lang.String property)
Sets the name of the property that is used to group checkbox items.

Parameters:
property - property name

setDisableProperty

public void setDisableProperty(java.lang.String property)
Sets the name of the property that is used to disable checkbox items.

Parameters:
property - property name

setOptionList

public void setOptionList(OptionListDesignModel optionList,
                          java.lang.Object optionElements)
Sets the OptionList which is used by the CheckboxGroup-Control

Specified by:
setOptionList in interface OptionsContainerTag
Parameters:
optionList - OptionListDesignModel
optionElements - The CheckboxGrouped options

setValue

public void setValue(java.lang.String value)
Sets the direct value for this control. This will overwrite the value of the property attribute

Overrides:
setValue in class BaseControlTag
Parameters:
value - The controls value


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