Class TableRenderer

  • All Implemented Interfaces:
    IModelRenderer

    public class TableRenderer
    extends ContainerRenderer
    This class transforms a table to its viewmodel. TODO: Remove when Table and Tablebuilder are refactored
    Since:
    9.2
    Author:
    N. van Noorloos
    • Constructor Detail

      • TableRenderer

        public TableRenderer()
    • Method Detail

      • toModel

        public ElementModel toModel​(com.aquima.interactions.composer.IElement element,
                                    IRendererContext context)
        Description copied from interface: IModelRenderer
        This method transforms an element to a viemodel.
        Specified by:
        toModel in interface IModelRenderer
        Overrides:
        toModel in class ContainerRenderer
        Parameters:
        element - The element to transform, not null.
        context - The context, not null.
        Returns:
        The viewmodel, never null.
      • processCell

        protected Container processCell​(com.aquima.interactions.composer.model.table.TableCell cell,
                                        boolean isHeader,
                                        IRendererContext context)