Class TemporaryUpdateDataChange

    • Constructor Detail

      • TemporaryUpdateDataChange

        public TemporaryUpdateDataChange​(Object key,
                                         Object newValue,
                                         CellKeyHandler<?> keyHandler)
        Creates a TemporaryUpdateDataChange to track the data change without updating the backing data directly.
        Parameters:
        key - The key under which the cell can be found that should be updated.
        newValue - The new value that should be set on save.
        keyHandler - The CellKeyHandler used to get indexes out of the key.
    • Method Detail

      • discard

        public void discard​(DataChangeLayer layer)
        Description copied from interface: DataChange
        Discard the change.
        Parameters:
        layer - The DataChangeLayer used to perform index-position transformations and to trigger the necessary commands to save.
      • save

        public void save​(DataChangeLayer layer)
        Description copied from interface: DataChange
        Save the change.
        Parameters:
        layer - The DataChangeLayer used to perform index-position transformations and to trigger the necessary commands to save.