Class FillHandleColumnAction

java.lang.Object
org.eclipse.nebula.widgets.nattable.fillhandle.action.FillHandleColumnAction
All Implemented Interfaces:
IMouseAction
Direct Known Subclasses:
FormulaFillHandleColumnAction

public class FillHandleColumnAction extends Object implements IMouseAction
IMouseAction that can be registered on double clicks on the fill handle to trigger an automatic fill operation for the whole column.
Since:
2.5
  • Field Details

  • Constructor Details

    • FillHandleColumnAction

      public FillHandleColumnAction(SelectionLayer selectionLayer, InternalCellClipboard clipboard)
      Parameters:
      selectionLayer - The SelectionLayer 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.
  • Method Details

    • run

      public void run(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
      Description copied from interface: IMouseAction
      Translates the SWT MouseEvent to a NatTable command and executes that command accordingly.
      Specified by:
      run in interface IMouseAction
      Parameters:
      natTable - The NatTable instance on which the MouseEvent was fired and on which the command should be executed.
      event - The received MouseEvent.
    • showMenu

      protected boolean showMenu(NatTable natTable)
      Check if the menu should be shown for selecting copy or series fill operation.
      Parameters:
      natTable - The NatTable instance on which the operation is performed.
      Returns:
      true if the menu should be shown, false if not.
    • openMenu

      protected void openMenu(NatTable natTable)
      Opens a menu that enables a user to select whether values should simply be copied or if a series should be filled.
      Parameters:
      natTable - The NatTable instance on which the operation is performed.
    • reset

      protected void reset(NatTable natTable)
      Reset the fill handle region in the SelectionLayer, clear the clipboard and redraw the given NatTable.
      Parameters:
      natTable - The NatTable instance on which the operation is performed.