Class SpreadSheetColumnIndex

    • Constructor Detail

      • SpreadSheetColumnIndex

        public SpreadSheetColumnIndex()
        Initializes with no index.
      • SpreadSheetColumnIndex

        public SpreadSheetColumnIndex​(String index)
        Initializes with the given index, but no maximum.
        Parameters:
        index - the index to use
      • SpreadSheetColumnIndex

        public SpreadSheetColumnIndex​(String index,
                                      int max)
        Initializes with the given index and maximum.
        Parameters:
        index - the index to use
        max - the maximum of the 1-based index (e.g., use "10" to allow "1-10" or -1 for uninitialized)
    • Method Detail

      • setSpreadSheet

        public void setSpreadSheet​(SpreadSheet value)
        Sets the spreadsheet to use for interpreting the column name.
        Parameters:
        value - the spreadsheet to use, can be null
      • setSpreadSheetColumns

        public void setSpreadSheetColumns​(List<String> cols)
        Sets the columns to use. Constructs a spreadsheet on-the-fly.
        Parameters:
        cols - the columns in the spreadsheet
      • setSpreadSheetColumns

        public void setSpreadSheetColumns​(String[] cols)
        Sets the columns to use. Constructs a spreadsheet on-the-fly.
        Parameters:
        cols - the columns in the spreadsheet