Class ColumnGroupEntry
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.columnChooser.ColumnGroupEntry
-
public class ColumnGroupEntry extends Object
Object representation of a column group in the SWT tree.Note: This is set as the SWT data on the
TreeItem
.- See Also:
ColumnChooserDialog
-
-
Constructor Summary
Constructors Constructor Description ColumnGroupEntry(String label, Integer firstElementPosition, Integer firstElementIndex, boolean collapsed)
Creates aColumnGroupEntry
for the old column grouping mechanism.ColumnGroupEntry(GroupModel.Group group)
Creates a ColumnGroupEntry for the new performance column grouping, using the Group object as underlying data reference.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static List<Integer>
getColumnGroupEntryPositions(List<ColumnGroupEntry> columnEntries)
Integer
getFirstElementIndex()
Integer
getFirstElementPosition()
GroupModel.Group
getGroup()
String
getLabel()
int
hashCode()
boolean
isCollapsed()
String
toString()
-
-
-
Constructor Detail
-
ColumnGroupEntry
public ColumnGroupEntry(String label, Integer firstElementPosition, Integer firstElementIndex, boolean collapsed)
Creates aColumnGroupEntry
for the old column grouping mechanism.- Parameters:
label
- The label to be shown in the tree.firstElementPosition
- The position of the first item in the group.firstElementIndex
- The index of the first item in the group.collapsed
-true
if the group should be shown collapsed,false
if not.
-
ColumnGroupEntry
public ColumnGroupEntry(GroupModel.Group group)
Creates a ColumnGroupEntry for the new performance column grouping, using the Group object as underlying data reference.- Parameters:
group
- TheGroupModel.Group
that should be wrapped.- Since:
- 1.6
-
-
Method Detail
-
getLabel
public String getLabel()
-
getFirstElementPosition
public Integer getFirstElementPosition()
-
getFirstElementIndex
public Integer getFirstElementIndex()
-
isCollapsed
public boolean isCollapsed()
-
getGroup
public GroupModel.Group getGroup()
- Returns:
- The
GroupModel.Group
carried by thisColumnGroupEntry
ornull
if it is configured for the old column grouping mechanism. - Since:
- 1.6
-
getColumnGroupEntryPositions
public static List<Integer> getColumnGroupEntryPositions(List<ColumnGroupEntry> columnEntries)
-
-