Class HoverStylingByIndexAction

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

public class HoverStylingByIndexAction extends ClearCursorAction
Action that will execute the HoverStylingByIndexCommand which applies hover styling in a NatTable.

Will also clear any set cursor by default.

Since:
2.1
See Also:
  • Constructor Details

    • HoverStylingByIndexAction

      public HoverStylingByIndexAction(HoverLayer hoverLayer)
      Parameters:
      hoverLayer - The HoverLayer that is responsible for handling the hover styling command. Necessary to avoid that other HoverLayer instances in a grid composition handle and consume the command.
  • 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
      Overrides:
      run in class ClearCursorAction
      Parameters:
      natTable - The NatTable instance on which the MouseEvent was fired and on which the command should be executed.
      event - The received MouseEvent.