Class HoverStylingAction

  • All Implemented Interfaces:
    IMouseAction

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

    Will also clear any set cursor by default.

    Author:
    Dirk Fauth
    See Also:
    HoverLayer, HoverStylingCommand
    • Constructor Detail

      • HoverStylingAction

        public HoverStylingAction​(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 Detail

      • 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.