Class HierarchicalTreeColumnReorderDragMode
java.lang.Object
org.eclipse.nebula.widgets.nattable.viewport.action.AutoScrollDragMode
org.eclipse.nebula.widgets.nattable.reorder.action.ColumnReorderDragMode
org.eclipse.nebula.widgets.nattable.hierarchical.action.HierarchicalTreeColumnReorderDragMode
- All Implemented Interfaces:
IDragMode
Specialization of the
ColumnReorderDragMode to be used with a
HierarchicalTreeLayer to respect hierarchical levels.- Since:
- 1.6
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.nebula.widgets.nattable.reorder.action.ColumnReorderDragMode
ColumnReorderDragMode.ColumnReorderOverlayPainterNested classes/interfaces inherited from class org.eclipse.nebula.widgets.nattable.viewport.action.AutoScrollDragMode
AutoScrollDragMode.AutoScrollRunnable -
Field Summary
FieldsFields inherited from class org.eclipse.nebula.widgets.nattable.reorder.action.ColumnReorderDragMode
currentEvent, dragFromGridColumnPosition, initialEvent, natTable, targetOverlayPainterFields inherited from class org.eclipse.nebula.widgets.nattable.viewport.action.AutoScrollDragMode
horizontalBorderOffset, verticalBorderOffset -
Constructor Summary
ConstructorsConstructorDescriptionHierarchicalTreeColumnReorderDragMode(HierarchicalTreeLayer treeLayer, ColumnGroupModel model) Creates a drag mode that validates the drag operation based on the given tree level structure and the given column group structure. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfireMoveEndCommand(NatTable natTable, int dragToGridColumnPosition) protected booleanisValidTargetColumnPosition(ILayer natLayer, int dragFromGridColumnPosition, int dragToGridColumnPosition) voidMethods inherited from class org.eclipse.nebula.widgets.nattable.reorder.action.ColumnReorderDragMode
fireMoveStartCommand, getColumnCell, getDragFromGridColumnPosition, getDragToGridColumnPosition, getMoveDirection, mouseDown, mouseMoveMethods inherited from class org.eclipse.nebula.widgets.nattable.viewport.action.AutoScrollDragMode
performDragAction
-
Field Details
-
columnGroupModel
-
-
Constructor Details
-
HierarchicalTreeColumnReorderDragMode
- Parameters:
treeLayer- TheHierarchicalTreeLayerneeded to determine the level column boundaries.
-
HierarchicalTreeColumnReorderDragMode
public HierarchicalTreeColumnReorderDragMode(HierarchicalTreeLayer treeLayer, ColumnGroupModel model) Creates a drag mode that validates the drag operation based on the given tree level structure and the given column group structure.- Parameters:
treeLayer- TheHierarchicalTreeLayerneeded to determine the level column boundaries.model- TheColumnGroupModelto perform column group based drag validation. Can benull.
-
-
Method Details
-
mouseUp
- Specified by:
mouseUpin interfaceIDragMode- Overrides:
mouseUpin classColumnReorderDragMode
-
fireMoveEndCommand
- Overrides:
fireMoveEndCommandin classColumnReorderDragMode
-
isValidTargetColumnPosition
protected boolean isValidTargetColumnPosition(ILayer natLayer, int dragFromGridColumnPosition, int dragToGridColumnPosition) - Overrides:
isValidTargetColumnPositionin classColumnReorderDragMode
-