Class FormulaFillHandleDragMode
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.viewport.action.AutoScrollDragMode
-
- org.eclipse.nebula.widgets.nattable.fillhandle.action.FillHandleDragMode
-
- org.eclipse.nebula.widgets.nattable.formula.action.FormulaFillHandleDragMode
-
- All Implemented Interfaces:
IDragMode
public class FormulaFillHandleDragMode extends FillHandleDragMode
SpecializedFillHandleDragMode
that also opens the dialog in case of String values that can be converted toBigDecimal
values using theFormulaDataProvider
.- Since:
- 1.4
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.nebula.widgets.nattable.viewport.action.AutoScrollDragMode
AutoScrollDragMode.AutoScrollRunnable
-
-
Field Summary
Fields Modifier and Type Field Description protected FormulaDataProvider
dataProvider
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.fillhandle.action.FillHandleDragMode
clipboard, direction, menu, selectionCell, selectionLayer, startEvent, startPosition
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.viewport.action.AutoScrollDragMode
horizontalBorderOffset, verticalBorderOffset
-
-
Constructor Summary
Constructors Constructor Description FormulaFillHandleDragMode(SelectionLayer selectionLayer, InternalCellClipboard clipboard, FormulaDataProvider dataProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
showMenu(NatTable natTable)
Check if the menu should be shown for selecting copy or series fill operation.-
Methods inherited from class org.eclipse.nebula.widgets.nattable.fillhandle.action.FillHandleDragMode
calculateIncreasedPositiveDiff, mouseDown, mouseUp, openMenu, performDragAction, reset
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.viewport.action.AutoScrollDragMode
mouseMove
-
-
-
-
Field Detail
-
dataProvider
protected FormulaDataProvider dataProvider
-
-
Constructor Detail
-
FormulaFillHandleDragMode
public FormulaFillHandleDragMode(SelectionLayer selectionLayer, InternalCellClipboard clipboard, FormulaDataProvider dataProvider)
- Parameters:
selectionLayer
- TheSelectionLayer
needed to determine the fill handle region and perform the update command.clipboard
- The internal clipboard that carries the cells for the copy & paste operation triggered by using the fill handle.dataProvider
- TheFormulaDataProvider
that is needed to determine whether a value is a number value.
-
-
Method Detail
-
showMenu
protected boolean showMenu(NatTable natTable)
Description copied from class:FillHandleDragMode
Check if the menu should be shown for selecting copy or series fill operation.- Overrides:
showMenu
in classFillHandleDragMode
- Parameters:
natTable
- The NatTable instance on which the operation is performed.- Returns:
true
if the menu should be shown,false
if not.
-
-