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

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 Name | HTML Element | Style Attribute
Table | table tag | tableClass
Header | table row tag | headerClass
Data Row | table row tag | rowClass
Footer | table row tag | footerClass

Attribute Descriptions
Attribute | Required | Runtime Expression Evaluation | Data Bindable
--- | --- | --- | ---
styleClassPrefix | No | No | No
The CSS style prefix that will be used to create the style class names for regions in the Grid.

Related Topics

<netui-data:grid> Tag Sample
``Grid``

Hierarchy
  `Object`
  `TagSupport`
  `BodyTagSupport`
  `AbstractBaseTag`
  `StructuredBaseTag`
  `GridComponent`
  `GridStyle`

All Implemented Interfaces
  `BodyTag`, `IterationTag`, `Serializable`, `Tag`

## Field Summary

Fields from com.bea.wlw.netui.tags.databinding.base`.`StructuredBaseTag``
`EMPTY_STRING`

Fields from com.bea.wlw.netui.tags`.`AbstractBaseTag``
``ATTR_GENERAL`, `ATTR_GENERAL_EXPRESSION`, `ATTR_JAVASCRIPT`, `ATTR_STYLE`, `CLASS`, `ID`, `JAVASCRIPT_STATUS`, `NAME`, `NETUI_UNIQUE_CNT`, `ONCLICK`, `ONDBLCLICK`, `ONKEYDOWN`, `ONKEYPRESS`, `ONKEYUP`, `ONMOUSEDOWN`, `ONMOUSEMOVE`, `ONMOUSEOUT`, `ONMOUSEOVER`, `ONMOUSEUP`, `STYLE`, `TABINDEX``

Fields from javax.servlet.jsp.tagext`.`BodyTagSupport``
`bodyContent`

Fields from javax.servlet.jsp.tagext`.`TagSupport``
`id, pageContext`

Fields from interface javax.servlet.jsp.tagext`.`BodyTag``
`EVAL_BODY_BUFFERED, EVAL_BODY_TAG`

Fields from interface javax.servlet.jsp.tagext`.`IterationTag``
`EVAL_BODY_AGAIN`

Fields from interface javax.servlet.jsp.tagext`.`Tag``
`EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE`

## Constructor Summary

GridStyle()

## Method Summary

`public `String`` | `getStyleClassPrefix`() Get the footer style class
`public `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.
`public void` | `setStyleClassPrefix`(`String` styleClassPrefix) Set the footer style class.

Methods from `com.bea.wlw.netui.tags.databinding.grid.`GridComponent``
``getCurrentRenderState`, `getGrid`, `getGridContext`, `getValidContainerType`, `prepare``

Methods from `com.bea.wlw.netui.tags.databinding.base.`StructuredBaseTag``
`addContent, doEndTag, doStartTag, getContent, getCurrentRenderState, getValidContainerType, localRelease, prepare, verifyAttributes, verifyStructure`

Methods from `com.bea.wlw.netui.tags.`AbstractBaseTag``
``addTagIdMapping`, `evaluateAttributeToString`, `filter`, `filter`, `getJavaScriptUtils`, `getNearestForm`, `getScriptReporter`, `getUserLocale`, `localRelease`, `registerTagError`, `release`, `renderAttribute`, `rewriteName`, `write``

Methods from `javax.servlet.jsp.tagext.`BodyTagSupport``
`doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent`

Methods from `javax.servlet.jsp.tagext.`TagSupport``
`doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue`

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `javax.servlet.jsp.tagext.`BodyTag``
`doInitBody, setBodyContent`

Methods from interface `javax.servlet.jsp.tagext.`IterationTag``
`doAfterBody`

Methods from interface `javax.servlet.jsp.tagext.`Tag``
`doEndTag, doStartTag, getParent, release, setPageContext, setParent`

## Constructor Detail

### GridStyle

    public GridStyle()

## Method Detail

### getStyleClassPrefix() Method

    public String getStyleClassPrefix()

Get the footer style class

#### Returns

the footer style class or `null` if none is set

### getTagName() Method

    public String getTagName()

Get the name of this tag. This is used to identify the type of this tag for reporting tag errors.

Overrides
  `AbstractBaseTag.getTagName()`

#### Returns

a constant String representing the name of this tag.

### localRelease() Method

    protected void localRelease()

Reset all of the fields of this tag.

Overrides
  `GridComponent.localRelease()`

### renderEndTag(int) Method

    protected int renderEndTag(int gridState)

Complete the tag lifecycle. Set the created `GridStyleContext``` JavaBean on the Grid tag.

Overrides
  StructuredBaseTag.renderEndTag(int)

#### Parameters

gridState
  the current rendering state of the grid

#### Returns

EVAL_PAGE

### renderStartTag(int) Method

    protected int renderStartTag(int gridState)

Start the tag lifecycle.

Overrides
  StructuredBaseTag.renderStartTag(int)

#### Returns

SKIP_BODY

### setStyleClassPrefix(String) Method

    public void setStyleClassPrefix(String styleClassPrefix)

Set the footer style class.

#### Parameters

styleClassPrefix
  the footer style class