Interface AttributeRowsMergeStrategy

  • All Superinterfaces:
    Manipulator

    public interface AttributeRowsMergeStrategy
    extends Manipulator

    Service for defining strategies for merging a column of rows of a table.

    Has the same interface as a manipulator.

    When a RowsMergeStrategy is executed it must reduce all values to one that should be returned later when getReducedValue is called

    Author:
    Eduardo Ramos
    See Also:
    Manipulator
    • Method Detail

      • setup

        void setup​(Element[] rows,
                   Element selectedRow,
                   Column column)
        Prepare column and rows for this merge strategy. At least 1 row will be set up to merge always.
        Parameters:
        rows - Rows to merge
        selectedRow - Main row of the row group to merge
        column - Column to merge
      • getReducedValue

        Object getReducedValue()
        This method is always called after the strategy is set up and executed.
        Returns:
        Reduced value from all rows and the column