org.eclipse.nebula.widgets.nattable.hover.action
Class HoverStylingAction
java.lang.Object
org.eclipse.nebula.widgets.nattable.ui.action.ClearCursorAction
org.eclipse.nebula.widgets.nattable.hover.action.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
Method Summary |
void |
run(NatTable natTable,
org.eclipse.swt.events.MouseEvent event)
Translates the SWT MouseEvent to a NatTable command and executes that
command accordingly. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.
Copyright © 2015. All rights reserved.