Class ColumnGroupEntry
java.lang.Object
org.eclipse.nebula.widgets.nattable.columnChooser.ColumnGroupEntry
Object representation of a column group in the SWT tree.
Note: This is set as the SWT data on the TreeItem.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionColumnGroupEntry(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
Modifier and TypeMethodDescriptionbooleangetColumnGroupEntryPositions(List<ColumnGroupEntry> columnEntries) getGroup()getLabel()inthashCode()booleantoString()
-
Constructor Details
-
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
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 Details
-
getLabel
-
getFirstElementPosition
-
getFirstElementIndex
-
isCollapsed
public boolean isCollapsed() -
getGroup
- Returns:
- The
GroupModel.Groupcarried by thisColumnGroupEntryornullif it is configured for the old column grouping mechanism. - Since:
- 1.6
-
getColumnGroupEntryPositions
-
toString
-
equals
-
hashCode
public int hashCode()
-