Class HoverStylingByIndexCommand

java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
org.eclipse.nebula.widgets.nattable.hover.command.HoverStylingByIndexCommand
All Implemented Interfaces:
ILayerCommand

public class HoverStylingByIndexCommand extends AbstractContextFreeCommand
Command that is used to apply hover styling in a NatTable.

This command needs to know about the HoverLayer on which it is executed because there might be several HoverLayer involved in a grid composition and therefore the command might be consumed by the wrong HoverLayer if we wouldn't know about the layer to handle it.

Since:
2.1
See Also:
  • Constructor Details

    • HoverStylingByIndexCommand

      public HoverStylingByIndexCommand(int columnIndex, int rowIndex, HoverLayer hoverLayer)
      Parameters:
      columnIndex - The column index of the cell to apply the hover styling.
      rowIndex - The row index of the cell to apply the hover styling.
      hoverLayer - The HoverLayer that should handle the command. Necessary to avoid that other HoverLayer instances in a grid composition handle and consume the command.
    • HoverStylingByIndexCommand

      protected HoverStylingByIndexCommand(HoverStylingByIndexCommand command)
      Constructor used for cloning purposes.
      Parameters:
      command - The command that should be used to create a new instance.
  • Method Details