Class ClearHoverStylingAction
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.ui.action.ClearCursorAction
-
- org.eclipse.nebula.widgets.nattable.hover.action.ClearHoverStylingAction
-
- All Implemented Interfaces:
IMouseAction
public class ClearHoverStylingAction extends ClearCursorAction
IMouseAction that will clear a hover styling that is currently applied in a HoverLayer.Will also clear any set cursor by default.
- Author:
- Dirk Fauth
- See Also:
HoverLayer
,ClearHoverStylingCommand
-
-
Constructor Summary
Constructors Constructor Description ClearHoverStylingAction()
Create a ClearHoverStylingAction that will trigger clearing the hover styling in every HoverLayer that exists in the layer composition.ClearHoverStylingAction(HoverLayer hoverLayer)
Create a ClearHoverStylingAction that will trigger clearing the hover styling in every HoverLayer that exists in the layer composition, except the given HoverLayer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
Translates the SWT MouseEvent to a NatTable command and executes that command accordingly.
-
-
-
Constructor Detail
-
ClearHoverStylingAction
public ClearHoverStylingAction()
Create a ClearHoverStylingAction that will trigger clearing the hover styling in every HoverLayer that exists in the layer composition.
-
ClearHoverStylingAction
public ClearHoverStylingAction(HoverLayer hoverLayer)
Create a ClearHoverStylingAction that will trigger clearing the hover styling in every HoverLayer that exists in the layer composition, except the given HoverLayer.- Parameters:
hoverLayer
- The HoverLayer whose hover styling should not be cleared.
-
-
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 interfaceIMouseAction
- Overrides:
run
in classClearCursorAction
- Parameters:
natTable
- The NatTable instance on which the MouseEvent was fired and on which the command should be executed.event
- The received MouseEvent.
-
-