Search in sources :

Example 6 with StructuralDiff

use of net.sourceforge.nattable.layer.event.StructuralDiff in project translationstudio8 by heartsome.

the class HideColumnPositionsEvent method getColumnDiffs.

public Collection<StructuralDiff> getColumnDiffs() {
    Collection<StructuralDiff> columnDiffs = new ArrayList<StructuralDiff>();
    for (Range range : getColumnPositionRanges()) {
        StructuralDiff diff = new StructuralDiff(DiffTypeEnum.DELETE, range, new Range(range.start, range.start));
        columnDiffs.add(diff);
    }
    return columnDiffs;
}
Also used : ArrayList(java.util.ArrayList) StructuralDiff(net.sourceforge.nattable.layer.event.StructuralDiff) Range(net.sourceforge.nattable.coordinate.Range)

Aggregations

StructuralDiff (net.sourceforge.nattable.layer.event.StructuralDiff)6 Range (net.sourceforge.nattable.coordinate.Range)5 ArrayList (java.util.ArrayList)3 PositionCoordinate (net.sourceforge.nattable.coordinate.PositionCoordinate)1 IStructuralChangeEvent (net.sourceforge.nattable.layer.event.IStructuralChangeEvent)1