public class RowGroupUtils extends Object
Constructor and Description |
---|
RowGroupUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> IRowGroup<T> |
getOwnRowGroupForRowIndex(IRowGroupModel<T> model,
int rowIndex) |
static <T> IRowGroup<T> |
getRowGroupForRowIndex(IRowGroupModel<T> model,
int rowIndex) |
static <T> String |
getRowGroupNameForIndex(IRowGroupModel<T> model,
int bodyRowIndex) |
static <T> List<Integer> |
getRowIndexesInGroup(IRowGroupModel<T> model,
int rowIndex) |
static <T> List<Integer> |
getRowIndexesInGroup(IRowGroupModel<T> model,
IRowGroup<T> group,
boolean includeStatic) |
static List<Integer> |
getRowPositionsInGroup(IUniqueIndexLayer layer,
Collection<Integer> bodyRowIndexes)
Helper method to get the row positions for a specified layer
If a row is currently invisible (-1) it will not be returned
within the collection
|
static <T> IRowGroup<T> |
getTopMostParentGroup(IRowGroup<T> rowGroup)
Return the top-most parent group of the group specified, or the group
specified if it has no parents.
|
static <T> boolean |
isAnyParentCollapsed(IRowGroup<T> group)
Returns true if any of the groups parent groups is collapsed.
|
static <T> boolean |
isCollapsed(IRowGroupModel<T> model,
IRowGroup<T> group) |
static <T> boolean |
isInTheSameGroup(int fromRowIndex,
int toRowIndex,
IRowGroupModel<T> model) |
static <T> boolean |
isPartOfAGroup(IRowGroupModel<T> model,
int rowIndex) |
static boolean |
isRowIndexHiddenInUnderLyingLayer(int rowIndex,
ILayer layer,
IUniqueIndexLayer underlyingLayer) |
static <T> boolean |
isStaticRow(IRowGroupModel<T> model,
int bodyRowIndex) |
static <T> int |
sizeOfGroup(IRowGroupModel<T> model,
int bodyRowIndex)
Number of rows in the Group which the bodyRowIndex belongs to.
|
public static <T> IRowGroup<T> getRowGroupForRowIndex(IRowGroupModel<T> model, int rowIndex)
public static <T> IRowGroup<T> getOwnRowGroupForRowIndex(IRowGroupModel<T> model, int rowIndex)
public static <T> boolean isPartOfAGroup(IRowGroupModel<T> model, int rowIndex)
public static <T> boolean isInTheSameGroup(int fromRowIndex, int toRowIndex, IRowGroupModel<T> model)
public static <T> boolean isCollapsed(IRowGroupModel<T> model, IRowGroup<T> group)
public static <T> boolean isAnyParentCollapsed(IRowGroup<T> group)
public static <T> int sizeOfGroup(IRowGroupModel<T> model, int bodyRowIndex)
public static <T> IRowGroup<T> getTopMostParentGroup(IRowGroup<T> rowGroup)
public static <T> boolean isStaticRow(IRowGroupModel<T> model, int bodyRowIndex)
bodyRowIndex
is contained in the list
of static rows of the row group this index belongs topublic static boolean isRowIndexHiddenInUnderLyingLayer(int rowIndex, ILayer layer, IUniqueIndexLayer underlyingLayer)
public static List<Integer> getRowPositionsInGroup(IUniqueIndexLayer layer, Collection<Integer> bodyRowIndexes)
layer
- bodyRowIndexes
- public static <T> List<Integer> getRowIndexesInGroup(IRowGroupModel<T> model, int rowIndex)
public static <T> List<Integer> getRowIndexesInGroup(IRowGroupModel<T> model, IRowGroup<T> group, boolean includeStatic)
public static <T> String getRowGroupNameForIndex(IRowGroupModel<T> model, int bodyRowIndex)
Copyright © 2013. All Rights Reserved.