Class WTable.TableRepeater

    • Constructor Detail

      • TableRepeater

        public TableRepeater​(WTable table)
        Parameters:
        table - the parent table.
    • Method Detail

      • paintComponent

        protected void paintComponent​(RenderContext renderContext)
        Override paintComponent, as the table renderer does all the work.
        Overrides:
        paintComponent in class AbstractWComponent
        Parameters:
        renderContext - the RenderContext to send output to.
      • getBeanList

        public List<WTable.RowIdWrapper> getBeanList()
        Retrieves the list of dataBeans that holds the data object for each row. The list returned will be the same instance as the one supplied via the setBeanList method. Will never return null, but it can return an empty list.
        Overrides:
        getBeanList in class WRepeater
        Returns:
        the list of dataBeans that holds the data object for each row
      • cleanupStaleContexts

        protected void cleanupStaleContexts​(Set<?> rowIds)
        Removes any stale contexts from the row context map.
        Overrides:
        cleanupStaleContexts in class WRepeater
        Parameters:
        rowIds - the current set of row Ids.
      • getRowIdName

        protected String getRowIdName​(Object rowBean,
                                      Object rowId)
        Allows a subclass to provide the ID used in the row naming context.

        The returned ID must only contain letters, digits or underscores.

        Overrides:
        getRowIdName in class WRepeater
        Parameters:
        rowBean - the row's bean
        rowId - the row id
        Returns:
        the unique row id or null to use the row context id