public class StructuralChangeEventHelper extends Object
Constructor and Description |
---|
StructuralChangeEventHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
handleRowDelete(Collection<StructuralDiff> rowDiffs,
ILayer underlyingLayer,
Collection<Integer> cachedRowIndexes,
boolean handleNotFound)
Will check for events that indicate that a rows has been deleted.
|
static void |
handleRowInsert(Collection<StructuralDiff> rowDiffs,
ILayer underlyingLayer,
Collection<Integer> cachedRowIndexes,
boolean addToCache)
Will check for events that indicate that a rows are added.
|
public static void handleRowDelete(Collection<StructuralDiff> rowDiffs, ILayer underlyingLayer, Collection<Integer> cachedRowIndexes, boolean handleNotFound)
rowDiffs
- The collection of StructuralDiff
s to handleunderlyingLayer
- The underlying layer of the layer who caches the indexes. Needed to
translate the transported row positions to indexes, because the conversion to the
layer who caches the index is done before it is fired further in the layer stackcachedRowIndexes
- The collection of indexes that is cached by the layer that needs
transformationhandleNotFound
- flag to tell whether the not found row indexes should be taken into account
or not. Needed for last row checkspublic static void handleRowInsert(Collection<StructuralDiff> rowDiffs, ILayer underlyingLayer, Collection<Integer> cachedRowIndexes, boolean addToCache)
rowDiffs
- The collection of StructuralDiff
s to handleunderlyingLayer
- The underlying layer of the layer who caches the indexes. Needed to
translate the transported row positions to indexes, because the conversion to the
layer who caches the index is done before it is fired further in the layer stackcachedRowIndexes
- The collection of indexes that is cached by the layer that needs
transformationaddToCache
- Flag to configure if the added value should be added to the cache or not.
This is necessary to differ whether cachedRowIndexes are a collection of all indexes
that need to be updated (e.g. row reordering) or just a collection of indexes that
are applied for a specific state (e.g. row hide state)Copyright © 2013. All Rights Reserved.