Class WDataTableRowRenderer

    • Constructor Detail

      • WDataTableRowRenderer

        protected WDataTableRowRenderer​(WDataTable table)
        Deprecated.
        Creates a WDataTableRowRenderer.
        Parameters:
        table - the table that this renderer belongs to.
    • Method Detail

      • getRenderer

        public WComponent getRenderer​(int columnIndex)
        Deprecated.
        Retrieves the component that is used to render the given column.
        Parameters:
        columnIndex - the column index.
        Returns:
        the component used to render the given column.
      • getTable

        public WDataTable getTable()
        Deprecated.
        Returns:
        the table that this row renderer belongs to.
      • getRowHeader

        public WDecoratedLabel getRowHeader()
        Deprecated.
        Returns:
        the row header.
      • preparePaintComponent

        protected void preparePaintComponent​(Request request)
        Deprecated.

        The preparePaintComponent method has been overridden to ensure that expanded row renderers have been correctly initialised.

        Expanded row renderers are lazily instantiated and added to the shared structure as needed. This means for the first use of a renderer, it will not have been part of the WComponent tree, and would not have had its preparePaintComponent called. We therefore add the renderer to the tree here, and manually call its preparePaint.

        Overrides:
        preparePaintComponent in class WDataRenderer
        Parameters:
        request - the Request being responded to.
      • getExpandedTreeNodeRenderer

        public WComponent getExpandedTreeNodeRenderer​(Class<? extends WComponent> rendererClass)
        Deprecated.

        This is called to lazily add expanded renderers as necessary. To save memory, only one instance of a renderer class is ever added to the row renderer instance. The RendererWrapper ensures that data binding occurs at the right time.

        Parameters:
        rendererClass - the renderer class.
        Returns:
        the expanded renderer for the given row.