Class AbstractIndentifiableRowOperation

    • Field Detail

      • m_KeyColumns

        protected SpreadSheetColumnRange m_KeyColumns
        the range of column indices to use as key for identifying a row.
      • m_Rows

        protected RowIdentifier[] m_Rows
        for locating the rows.
      • m_ColIndices

        protected int[] m_ColIndices
        the column indices to use.
    • Constructor Detail

      • AbstractIndentifiableRowOperation

        public AbstractIndentifiableRowOperation()
    • Method Detail

      • setKeyColumns

        public void setKeyColumns​(SpreadSheetColumnRange value)
        Sets the colums that identify a row, use empty string to simply use row index.
        Parameters:
        value - the range
      • getKeyColumns

        public SpreadSheetColumnRange getKeyColumns()
        Returns the colums that identify a row, use empty string to simply use row index
        Returns:
        the range
      • keyColumnsTipText

        public String keyColumnsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • initRowLookup

        protected void initRowLookup​(SpreadSheet[] sheets)
        Initializes the row lookup, if necessary.
        Parameters:
        sheets - the sheets to generated lookup for
      • performOperation

        protected abstract Row performOperation​(SpreadSheet output,
                                                Row row1,
                                                Row row2)
        Performs the actual operation on the rows.
        Parameters:
        output - the spreadsheet the new row will get added to
        row1 - the row from the first sheet
        row2 - the row from the second sheet
        Returns:
        the generated row
      • generateOutputRow

        protected void generateOutputRow​(SpreadSheet output,
                                         Row rowDiff)
        Generates a row and appends it to the output.
        Parameters:
        output - the spreadsheet to receive the output
        rowDiff - the difference row