Class ColumnRendererTag

  • All Implemented Interfaces:
    Composite, ConditionalTag, org.apache.commons.jelly.Tag

    public class ColumnRendererTag
    extends ColumnComponentTag

    A tag for defining the renderer of a column within a table.

    In the body of this tag a single component (which can also be a container with an arbitrary number of children) can be specified that will be used for rendering the column this tag belongs to. No other specific attributes are supported.

    A more detailed description can be found in the class comments of the super class and the TableTag and the ColumnTag.

    Version:
    $Id: ColumnRendererTag.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    See Also:
    TableTag, TableColumnTag
    • Constructor Detail

      • ColumnRendererTag

        public ColumnRendererTag()
    • Method Detail

      • getTableForm

        protected Form getTableForm​(TableTag tabTag)
        Returns the form affected by this tag from the specified table tag. This implementation will return the render form.
        Specified by:
        getTableForm in class ColumnComponentTag
        Parameters:
        tabTag - the table tag
        Returns:
        the form used by this tag
      • initializeColumn

        protected void initializeColumn​(TableColumnTag colTag,
                                        Object bodyComponent,
                                        Set<String> componentNames)
        Initializes the passed in column tag with the results produced by this tag. This implementation sets the renderer component and the set with the names of the components used by the renderer form for this column.
        Specified by:
        initializeColumn in class ColumnComponentTag
        Parameters:
        colTag - the parent column tag
        bodyComponent - the component defined in the body of this tag
        componentNames - a set with the names of the involved components