Class SpreadSheetCellSelectionContainer

    • Field Detail

      • VALUE_SELECTED

        public static final String VALUE_SELECTED
        the key for the spreadsheet with the selected values.
        See Also:
        Constant Field Values
      • VALUE_SUBSET

        public static final String VALUE_SUBSET
        the key for the spreadsheet with the subset of values.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SpreadSheetCellSelectionContainer

        public SpreadSheetCellSelectionContainer()
        Default constructor.
      • SpreadSheetCellSelectionContainer

        public SpreadSheetCellSelectionContainer​(SpreadSheet original,
                                                 SpreadSheet selected,
                                                 SpreadSheet subset)
        Initializes the container with the relevant spreadheets.
        Parameters:
        original - the original spreadsheet
        selected - the X/Y coordinates and values of the selected cells
        subset - the spreadsheet with only the selected cells remaining
    • Method Detail

      • isValid

        public boolean isValid()
        Checks whether the setup of the container is valid.
        Specified by:
        isValid in interface Container
        Specified by:
        isValid in class AbstractContainer
        Returns:
        true if all the necessary values are available