Class AutoResizeColumnCommandHandler

java.lang.Object
org.eclipse.nebula.widgets.nattable.grid.command.AutoResizeColumnCommandHandler
All Implemented Interfaces:
ILayerCommandHandler<AutoResizeColumnsCommand>

public class AutoResizeColumnCommandHandler extends Object implements ILayerCommandHandler<AutoResizeColumnsCommand>
This command is triggered by the InitializeAutoResizeColumnsCommand. The selected columns picked from the SelectionLayer by the above command. This handler runs as a second step.

This handler assumes that the target layer is the NatTable itself on calling doCommand()

  • Field Details

    • commandLayer

      protected final ILayer commandLayer
      The layer on which the command should be fired. Usually this will be the GridLayer
    • positionLayer

      protected final ILayer positionLayer
      The layer to use for calculation of the column positions. Needs to be a layer at a lower position in the layer composition. Typically the body layer stack.
  • Constructor Details

    • AutoResizeColumnCommandHandler

      public AutoResizeColumnCommandHandler(ILayer commandLayer, ILayer positionLayer)
      Parameters:
      commandLayer - The layer on which the command should be fired. Usually this will be the GridLayer.
      positionLayer - The layer to use for calculation of the column positions. Needs to be a layer at a lower position in the layer composition. Typically the body layer stack.
    • AutoResizeColumnCommandHandler

      public AutoResizeColumnCommandHandler(GridLayer gridLayer)
      Parameters:
      gridLayer - The GridLayer to which this command handler should be registered
  • Method Details