BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.

com.bea.wlw.netui.tags.databinding.grid.style
Class GridStyle

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.bea.wlw.netui.tags.AbstractBaseTag
              extended by com.bea.wlw.netui.tags.databinding.base.StructuredBaseTag
                  extended by com.bea.wlw.netui.tags.databinding.grid.GridComponent
                      extended by com.bea.wlw.netui.tags.databinding.grid.style.GridStyle
All Implemented Interfaces:
HtmlConstants, Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class GridStyle
extends GridComponent

A tag that allows parameterization of the style components of the HTML table that a Grid renders. Styles are rendered in several locations in the table that the Grid renders. See the Grid tag description for the structure of the table that the Grid renders. The styles defined here are mapped to these regions as follows:

Grid Region NameHTML ElementStyle Attribute
Tabletable tagtableClass
Headertable row tagheaderClass
Data Rowtable row tagrowClass
Footertable row tagfooterClass

Attribute Descriptions
AttributeRequiredRuntime Expression EvaluationData Bindable
styleClassPrefixNoNoNo
The CSS style prefix that will be used to create the style class names for regions in the Grid.

See Also:
Grid, Serialized Form
Example:
This sample shows a <netui-data:gridStyle> tag used to define styles in a rendered HTML table. The styleClassPrefix attribute is set to "gridStyle", which means the generated style class names would be:
  • gridStyle-table
  • gridStyle-tr-header
  • gridStyle-tr-data
  • gridStyle-tr-footer
    <netui-data:grid dataSource="{pageFlow.allRows}" name="{pageFlow.gridName}">
        <netui-data:gridStyle styleClassPrefix="gridStyle"/>
        <netui-data:pager renderInHeader="true" action="pageAction" renderInFooter="true"/>
            <netui-data:columns filterAction="begin" sortAction="begin">
                <netui-data:anchorColumn action="detailsItems" addRowId="true" title="Details"/>
                <netui-data:anchorColumn action="updateItems" addRowId="true" title="Edit"/>
                <netui-data:basicColumn filterable="true" title="Itemnumber" sortable="true" name="itemnumber"/>
            </netui-data:columns>
    </netui-data:grid>

Code Sample

[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_databinding/grid/grid.jsp
Beadoc.see:
<netui-data:grid> Tag Sample
Beadoc.tagdescription:
A tag that allows parameterization of the style components of the HTML table rendered by a Grid tag. Styles are rendered in several locations in the HTML table. See the <netui-data:grid> tag description for the structure of the table rendered by the <netui-data:grid> tag. The styles defined here are mapped to these regions as follows:
Grid Region NameHTML ElementStyle Attribute
Table<table>tableClass
Header<tr>headerClass
Data Row<tr>rowClass
Footer<tr>footerClass

Field Summary
 
Fields inherited from class com.bea.wlw.netui.tags.databinding.base.StructuredBaseTag
EMPTY_STRING
 
Fields inherited from class com.bea.wlw.netui.tags.AbstractBaseTag
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, ATTR_JAVASCRIPT, ATTR_STYLE, JAVASCRIPT_STATUS, NETUI_UNIQUE_CNT
 
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 com.bea.wlw.netui.tags.html.HtmlConstants
ACCEPT, ACCESSKEY, ACTION, ALIGN, ALINK, ALT, ANCHOR, BACKGROUND, BASE, BGCOLOR, BODY, BORDER, BR, CAPTION, CELLPADDING, CELLSPACING, CHAR, CHAROFF, CHARSET, CHECKED, CLASS, COLS, COORDS, DIR, DISABLED, DIV, ENCTYPE, FOR, FORM, FORM_GET, FORM_POST, FRAME, HEIGHT, HREF, HREFLANG, HSPACE, HTML, ID, IMAGE, INPUT, INPUT_BUTTON, INPUT_CHECKBOX, INPUT_FILE, INPUT_HIDDEN, INPUT_IMAGE, INPUT_PASSWORD, INPUT_RADIO, INPUT_RESET, INPUT_SUBMIT, INPUT_TEXT, ISMAP, LABEL, LANG, LINK, LONGDESC, MAXLENGTH, METHOD, NAME, ONBLUR, ONCHANGE, ONCLICK, ONDBLCLICK, ONFOCUS, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONLOAD, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, ONRESET, ONSELECT, ONSUBMIT, ONUNLOAD, OPTION, READONLY, REL, REV, ROWS, RULES, SELECT, SHAPE, SIZE, SPAN, SRC, STYLE, SUMMARY, TABINDEX, TABLE, TARGET, TD, TEXT, TEXTAREA, TITLE, TR, TYPE, USEMAP, VALIGN, VALUE, VLINK, VSPACE, WIDTH
 
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
GridStyle()
           
 
Method Summary
 String getStyleClassPrefix()
          Get the footer style class
 String getTagName()
          Get the name of this tag.
protected  void localRelease()
          Reset all of the fields of this tag.
protected  int renderEndTag(int gridState)
          Complete the tag lifecycle.
protected  int renderStartTag(int gridState)
          Start the tag lifecycle.
 void setStyleClassPrefix(String styleClassPrefix)
          Set the footer style class.
 
Methods inherited from class com.bea.wlw.netui.tags.databinding.grid.GridComponent
getCurrentRenderState, getGrid, getGridContext, getValidContainerType, prepare
 
Methods inherited from class com.bea.wlw.netui.tags.databinding.base.StructuredBaseTag
addContent, doEndTag, doStartTag, getContent, verifyAttributes, verifyStructure
 
Methods inherited from class com.bea.wlw.netui.tags.AbstractBaseTag
addTagIdMapping, containsExpression, evaluateAttributeToString, evaluateExpression, filter, filter, formatErrorString, formatString, getAttribute, getErrorsReport, getExpressionEvaluator, getJavaScriptUtils, getNearestForm, getNextId, getQualifiedBundleName, getScriptReporter, getUserLocale, hasErrors, isExpression, prepForRendering, registerAttribute, registerError, registerTagError, release, removeAttribute, renderAttribute, renderAttributes, reportErrors, rewriteName, setPageContext, updateExpression, write
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, 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
 

Constructor Detail

GridStyle

public GridStyle()
Method Detail

getTagName

public String getTagName()
Get the name of this tag. This is used to identify the type of this tag for reporting tag errors.

Specified by:
getTagName in class AbstractBaseTag
Returns:
a constant String representing the name of this tag.

setStyleClassPrefix

public void setStyleClassPrefix(String styleClassPrefix)
Set the footer style class.

Parameters:
styleClassPrefix - the footer style class
Beadoc.attributedescription:

Set the style class prefix that is used to render table cell style information for the header, data, and footer cells of this HTML table column. The styleClassPrefix will be used in conjunction with a suffix to create style class names that are rendered inside of the <td> tags for each cell in this column.

Assuming the value of this property is foo, the style class names rendered for each part of the column are shown in the table below.

Column RegionStyle class
Headerfoo-td-header
Datafoo-td-data
Footerfoo-td-footer

Beadoc.attributesyntaxvalue:
string_styleClassPrefix
Beadoc.databindable:
false

getStyleClassPrefix

public String getStyleClassPrefix()
Get the footer style class

Returns:
the footer style class or null if none is set

localRelease

protected void localRelease()
Reset all of the fields of this tag.

Overrides:
localRelease in class GridComponent

renderStartTag

protected int renderStartTag(int gridState)
Start the tag lifecycle.

Specified by:
renderStartTag in class StructuredBaseTag
Returns:
SKIP_BODY

renderEndTag

protected int renderEndTag(int gridState)
Complete the tag lifecycle. Set the created GridStyleContext JavaBean on the Grid tag.

Specified by:
renderEndTag in class StructuredBaseTag
Parameters:
gridState - the current rendering state of the grid
Returns:
EVAL_PAGE

BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.