org.ow2.jonas.webapp.taglib
Class GridTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.struts.taglib.html.BaseHandlerTag
              extended by org.ow2.jonas.webapp.taglib.GridBaseTag
                  extended by org.ow2.jonas.webapp.taglib.GridTableBaseTag
                      extended by org.ow2.jonas.webapp.taglib.GridTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag
Direct Known Subclasses:
JonasGridTag

public class GridTag
extends GridTableBaseTag

Author:
Michel-Ange ANTON
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ow2.jonas.webapp.taglib.GridBaseTag
ms_BodyText, QUOTE
 
Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag
accesskey, defaultLocale, doDisabled, doReadonly, indexed, messages, tabindex
 
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
GridTag()
           
 
Method Summary
 int doStartTag()
          Start of Tag processing
 int getBorder()
           
 int getCellPadding()
           
 int getCellSpacing()
           
 String getEvenStyleClass()
          Return the Style Class of Even rows
 String getGlobalRowStyleClass()
           
 String getOddStyleClass()
          Return the Style Class of Odd rows
 int getPeriodRow()
           
protected  String getRowStyle(boolean p_bChange)
           
protected  String prepareAttributes()
          Prepare the attributes of the HTML element
 void release()
          Release resources after Tag processing has finished.
 void setBorder(int border)
           
 void setCellPadding(int cellPadding)
           
 void setCellSpacing(int cellSpacing)
           
 void setEvenStyleClass(String styleClass)
          Set the styleClass of Even rows
 void setGlobalRowStyleClass(String globalRowStyleClass)
           
 void setOddStyleClass(String styleClass)
          Set the Style Class of Odd rows
 void setPeriodRow(int periodRow)
           
 void setPeriodRow(String p_PeriodRow)
           
 
Methods inherited from class org.ow2.jonas.webapp.taglib.GridTableBaseTag
getAlign, getHeight, getHtmlElement, getValign, getWidth, setAlign, setHeight, setValign, setWidth
 
Methods inherited from class org.ow2.jonas.webapp.taglib.GridBaseTag
doAfterBody, doEndTag, getDefaultBody, prepareAfterBody, prepareAfterTag, prepareAttribute, prepareAttribute, prepareBeforeBody, prepareBeforeTag
 
Methods inherited from class org.apache.struts.taglib.html.BaseHandlerTag
doErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getErrorKey, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexed, getIndexValue, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareAttribute, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareName, prepareOtherAttributes, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setErrorKey, setErrorStyle, setErrorStyleClass, setErrorStyleId, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey
 
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, 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.Tag
getParent, setPageContext, setParent
 

Constructor Detail

GridTag

public GridTag()
Method Detail

getOddStyleClass

public String getOddStyleClass()
Return the Style Class of Odd rows


setOddStyleClass

public void setOddStyleClass(String styleClass)
Set the Style Class of Odd rows

Parameters:
styleClass - HTML Style Class value for Odd rows

getEvenStyleClass

public String getEvenStyleClass()
Return the Style Class of Even rows


setEvenStyleClass

public void setEvenStyleClass(String styleClass)
Set the styleClass of Even rows

Parameters:
styleClass - HTML Style Class value for Even rows

getPeriodRow

public int getPeriodRow()

setPeriodRow

public void setPeriodRow(int periodRow)

setPeriodRow

public void setPeriodRow(String p_PeriodRow)

getBorder

public int getBorder()

setBorder

public void setBorder(int border)

getCellSpacing

public int getCellSpacing()

setCellSpacing

public void setCellSpacing(int cellSpacing)

getCellPadding

public int getCellPadding()

setCellPadding

public void setCellPadding(int cellPadding)

getGlobalRowStyleClass

public String getGlobalRowStyleClass()

setGlobalRowStyleClass

public void setGlobalRowStyleClass(String globalRowStyleClass)

doStartTag

public int doStartTag()
               throws JspException
Start of Tag processing

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class GridBaseTag
Throws:
JspException - if a JSP exception occurs

release

public void release()
Release resources after Tag processing has finished.

Specified by:
release in interface Tag
Overrides:
release in class GridTableBaseTag

prepareAttributes

protected String prepareAttributes()
                            throws JspException
Prepare the attributes of the HTML element

Overrides:
prepareAttributes in class GridTableBaseTag
Throws:
JspException

getRowStyle

protected String getRowStyle(boolean p_bChange)


Copyright © 2010 OW2 Consortium. All Rights Reserved.