com.cc.framework.taglib.controls
Class ColumnBaseBodyTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bycom.cc.framework.taglib.ScriptBodyTagSupport
              extended bycom.cc.framework.taglib.controls.ColumnBaseTag
                  extended bycom.cc.framework.taglib.controls.ColumnBaseBodyTag
All Implemented Interfaces:
AjaxSupportTag, javax.servlet.jsp.tagext.BodyTag, ConversionSupportTag, DesignRuleContainerTag, InnerTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, ScriptSupport, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
ColumnComboBoxTag, ColumnHtmlTag, ColumnSelectTag

public abstract class ColumnBaseBodyTag
extends ColumnBaseTag

Base Tag-Handler for columns with body tag support

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

Field Summary
private  LineIterator iterator
          Object to iterate over the Elements of the current page
private  java.lang.Object rowbean
          The current row bean
private  int rowcount
          Number of elements on the current page
private  boolean roweditable
          Indicates if the current row is editable
private  int rowindex
          The index of the current row
private  java.lang.String rowkey
          Key of the current row bean
private  java.lang.Object rowproperty
          The column property of the current row
private static long serialVersionUID
          Serial Version UID
 
Fields inherited from class com.cc.framework.taglib.controls.ColumnBaseTag
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
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
ColumnBaseBodyTag()
          Constructor
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
           
 java.lang.Object getCurrent()
          Returns the current iteration element
 java.lang.String getCurrentKey()
          Returns the key of the current iteration element
 java.lang.Object getCurrentProperty()
          Returns the column property of the current iteration element
 boolean isCurrentEditable()
          Checks if the current row is editable
protected  boolean isEditable(LineIterator iter)
          Checks if the column or cell is editable or not
 void release()
           
protected  int selectNext()
          This method selects the next element of the iteration
 
Methods inherited from class com.cc.framework.taglib.controls.ColumnBaseTag
addDesignRule, assignConverter, doCreateDesignModel, getClientHandler, getContainer, getDesignModel, releaseDesignModel, setAjax, setAjax, setAlign, setAnchor, setAnchorProperty, setConverter, setDisabled, setDisableProperty, setEditable, setEditableProperty, setEnableProperty, setFilter, setImagemap, setImageProperty, setJoin, setLinkName, setLinkNameProperty, setMaxlength, setPageContext, setPermission, setProperty, setRunat, setSortable, setStyle, setStyleClass, setStyleId, setTarget, setTargetProperty, setTitle, setTooltip, setTooltipProperty, setTransaction, setType, setWidth
 
Methods inherited from class com.cc.framework.taglib.ScriptBodyTagSupport
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.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
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

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

iterator

private LineIterator iterator
Object to iterate over the Elements of the current page


rowcount

private int rowcount
Number of elements on the current page


rowindex

private int rowindex
The index of the current row


rowkey

private java.lang.String rowkey
Key of the current row bean


rowbean

private java.lang.Object rowbean
The current row bean


roweditable

private boolean roweditable
Indicates if the current row is editable


rowproperty

private java.lang.Object rowproperty
The column property of the current row

Constructor Detail

ColumnBaseBodyTag

public ColumnBaseBodyTag()
Constructor

Method Detail

release

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

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class ColumnBaseTag
Throws:
javax.servlet.jsp.JspException
See Also:
Tag.doStartTag()

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException
See Also:
IterationTag.doAfterBody()

doEndTag

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

getCurrentKey

public java.lang.String getCurrentKey()
Returns the key of the current iteration element

Returns:
current key

getCurrentProperty

public java.lang.Object getCurrentProperty()
Returns the column property of the current iteration element

Returns:
current property

getCurrent

public java.lang.Object getCurrent()
Returns the current iteration element

Returns:
iteration element

isCurrentEditable

public boolean isCurrentEditable()
Checks if the current row is editable

Returns:
returns true if the row is editable

isEditable

protected boolean isEditable(LineIterator iter)
Checks if the column or cell is editable or not

Parameters:
iter - the iterator with the current row bean
Returns:
returns true if the cell is editable

selectNext

protected int selectNext()
This method selects the next element of the iteration

Returns:
returns EVAL_BODY_BUFFERED when there was a valid iteration element and SKIP_BODY otherwise


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