<sas:ColumnHeaderRenderer>

Used to set the renderer(s) on the column headers of the TableView. If used as a subtag of the sas:Column custom tag then the column header renderer is just used for that specific column. If used as a subtag of the sas:Columns custom tag then the column header renderer is used for all columns.

This tag must be nested within a sas:Columns or sas:Column tag.

Syntax

<sas:ColumnHeaderRenderer
   [bgColor="java.lang.String"]
   [colSpan="1|int"]
   [customAttributes="java.lang.String"]
   [headers="java.lang.String"]
   [height="int"]
   [heightPercentage="int"]
   [horizontalAlignment="NONE|LEFT|CENTER|RIGHT|JUSTIFY|CHAR"]
   [id="value"]
   [noWrap="false|true"]
   [rowSpan="1|int"]
   [styleClassPrefix="java.lang.String"]
   [verticalAlignment="NONE|TOP|CENTER|BOTTOM|BASELINE"]
   [width="int"]
   [widthPercentage="int"]>
      [<sas:CellContentsImageRenderer ...>
         [<sas:StyleInfo .../>]
         [<sas:SetProperty ...>
            The value to set on the parent tag
         </sas:SetProperty>]
         [Additional <sas:SetProperty> tags...]
      </sas:CellContentsImageRenderer>]
      [<sas:CellContentsLabelRenderer ...>
         [<sas:StyleInfo .../>]
         [<sas:SetProperty ...>
            The value to set on the parent tag
         </sas:SetProperty>]
         [Additional <sas:SetProperty> tags...]
      </sas:CellContentsLabelRenderer>]
      [<sas:CellContentsSimpleTemplateRenderer ...>
         [<sas:SetProperty ...>
            The value to set on the parent tag
         </sas:SetProperty>]
         [Additional <sas:SetProperty> tags...]
         The html string used as the body of the cell. The string can
         have substition variables of the form %COLUMNNAME and the value
         for this column will be substituted into the string.
      </sas:CellContentsSimpleTemplateRenderer>]
      [<sas:CellContentsRenderer .../>]
      [<sas:SetProperty ...>
         The value to set on the parent tag
      </sas:SetProperty>]
      [Additional <sas:SetProperty> tags...]
</sas:ColumnHeaderRenderer>

Attributes

bgColorThe background color for this cell. The StyleInfo tag is now the preferred manner to change colors and other styles on cell renderers.
colSpanThe number of columns for this cell to span.
customAttributesA list of attributes in the form of attribute="value", space delimited
headersSpecifies the list of header cells that provide header information for the current data cell. The value of this attribute is a space-separated string of cell names. Those cells must be named by setting their id attribute.
heightThe height of the cell in pixels.
heightPercentageThe height of the cell as a percentage.
horizontalAlignmentThe horizontal alignment of the cell. Valid values are: LEFT, CENTER, RIGHT, JUSTIFY, CHAR or NONE. The default is NONE (i.e. the browser default).
idCase-sensitive name used to identify the object instance.
noWrapIf true, then automatic text wrapping is disabled. If used carelessly, this attribute may result in excessively wide cells.
rowSpanThe number of rows for this cell to span.
styleClassPrefixThe string to prepend to the styleClass property.
verticalAlignmentThe vertical alignment of the cell. Valid values are: TOP, CENTER, BOTTOM, BASELINE or NONE. The default is NONE (i.e. the browser default).
widthThe width of the cell in pixels.
widthPercentageThe width of the cell as a percentage.

More Information

To view the documentation for the related TransformationBean, see com.sas.servlet.tbeans.tableview.html.DefaultTableHeaderRenderer.

If you need to subclass the tag handler class for the sas:ColumnHeaderRenderer tag, extend com.sas.taglib.servlet.tbeans.tableview.ColumnHeaderRendererTag.