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:
  • Constructor Details

    • 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 be null which indicates that the hover styling in every HoverLayer in the layer composition should be cleared.
  • Method Details

    • getHoverLayer

      public HoverLayer getHoverLayer()
      Returns:
      The HoverLayer whose hover styling should not be cleared.