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 aColumnGroupEntryfor 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 booleanequals(Object obj)static List<Integer>getColumnGroupEntryPositions(List<ColumnGroupEntry> columnEntries)IntegergetFirstElementIndex()IntegergetFirstElementPosition()GroupModel.GroupgetGroup()StringgetLabel()inthashCode()booleanisCollapsed()StringtoString()
-
-
-
Constructor Detail
-
ColumnGroupEntry
public ColumnGroupEntry(String label, Integer firstElementPosition, Integer firstElementIndex, boolean collapsed)
Creates aColumnGroupEntryfor 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-trueif the group should be shown collapsed,falseif 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.Groupthat 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.Groupcarried by thisColumnGroupEntryornullif it is configured for the old column grouping mechanism. - Since:
- 1.6
-
getColumnGroupEntryPositions
public static List<Integer> getColumnGroupEntryPositions(List<ColumnGroupEntry> columnEntries)
-
-