Class ClearHoverStylingCommand
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
-
- org.eclipse.nebula.widgets.nattable.hover.command.ClearHoverStylingCommand
-
- All Implemented Interfaces:
ILayerCommand
public class ClearHoverStylingCommand extends AbstractContextFreeCommand
Command that is used to clear the hover styling in a NatTable.This command can be used to clear every hover styling that is set in a NatTable (e.g. in a grid composition there might be several HoverLayer involved) or it can be used to clear the hover styling in every HoverLayer in the layer composition, except the one that is set to the command.
- Author:
- Dirk Fauth
- See Also:
HoverLayer
,ClearHoverStylingCommandHandler
-
-
Constructor Summary
Constructors Constructor Description ClearHoverStylingCommand()
Create a ClearHoverStylingCommand that clears the hover styling in every HoverLayer that exists in the layer composition.ClearHoverStylingCommand(HoverLayer hoverLayer)
Create a ClearHoverStylingCommand that clears 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 HoverLayer
getHoverLayer()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
cloneCommand, convertToTargetLayer
-
-
-
-
Constructor Detail
-
ClearHoverStylingCommand
public ClearHoverStylingCommand()
Create a ClearHoverStylingCommand that clears the hover styling in every HoverLayer that exists in the layer composition.
-
ClearHoverStylingCommand
public ClearHoverStylingCommand(HoverLayer hoverLayer)
Create a ClearHoverStylingCommand that clears 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. Can benull
which indicates that the hover styling in every HoverLayer in the layer composition should be cleared.
-
-
Method Detail
-
getHoverLayer
public HoverLayer getHoverLayer()
- Returns:
- The HoverLayer whose hover styling should not be cleared.
-
-