Class MouseMoveAction

java.lang.Object
org.eclipse.nebula.widgets.nattable.ui.action.MouseMoveAction
All Implemented Interfaces:
IMouseAction

public class MouseMoveAction extends Object implements IMouseAction
IMouseAction that is used to configure mouse move bindings. Contains a IMouseAction that is executed on entering the IMouseEventMatcher and a IMouseAction that is executed once the IMouseEventMatcher is exited.
  • Field Details

    • mouseEventMatcher

      public final IMouseEventMatcher mouseEventMatcher
    • entryAction

      public final IMouseAction entryAction
    • exitAction

      public final IMouseAction exitAction
    • reexecuteEntryAction

      public final boolean reexecuteEntryAction
  • Constructor Details

    • MouseMoveAction

      public MouseMoveAction(IMouseEventMatcher mouseEventMatcher, IMouseAction entryAction, IMouseAction exitAction, boolean reexecuteEntryAction)
      Parameters:
      mouseEventMatcher - The IMouseEventMatcher to determine the enter and exit condition.
      entryAction - The IMouseAction that should be executed on enter.
      exitAction - The IMouseAction that should be executed on exit.
      reexecuteEntryAction - true if the entry action should be executed everytime as long as the IMouseEventMatcher matches, false if the entry action should only be executed on enter.
  • 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.
    • runExit

      public void runExit(NatTable natTable, org.eclipse.swt.events.MouseEvent event)