Class ColumnWidthResetCommand

All Implemented Interfaces:
ILayerCommand

public class ColumnWidthResetCommand extends AbstractRegionCommand
Command to reset the column width configurations. It will cause a reset of all customizations done with regards to column width sizing, e.g. resized columns will be reset to the initial default size and all columns are share the same default resizable behavior.
Since:
1.6
  • Field Details

    • fireEvent

      public final boolean fireEvent
      Flag to indicate whether a refresh event should be triggered or not. Should be set to false in case additional actions should be executed before the repainting of the table should be triggered.
  • Constructor Details

    • ColumnWidthResetCommand

      public ColumnWidthResetCommand()
      Creates a ColumnWidthResetCommand to reset the column width configuration of all regions, that triggers a refresh after the command is handled.
    • ColumnWidthResetCommand

      public ColumnWidthResetCommand(boolean fireEvent)
      Creates a ColumnWidthResetCommand to reset the column width configuration of all regions.
      Parameters:
      fireEvent - Flag to indicate whether a refresh event should be triggered or not. Should be set to false in case additional actions should be executed before the repainting of the table should be triggered.
    • ColumnWidthResetCommand

      public ColumnWidthResetCommand(String label)
      Creates a ColumnWidthResetCommand to reset the column width configuration of the region with the given label. Triggers a refresh after the command is handled.
      Parameters:
      label - The region label of the region on which the command should be processed. If the label is null the command will be processed by all regions or until the first layer in the composition consumes the command.
    • ColumnWidthResetCommand

      public ColumnWidthResetCommand(String label, boolean fireEvent)
      Creates a ColumnWidthResetCommand to reset the column width configuration of the region with the given label.
      Parameters:
      label - The region label of the region on which the command should be processed. If the label is null the command will be processed by all regions or until the first layer in the composition consumes the command.
      fireEvent - Flag to indicate whether a refresh event should be triggered or not. Should be set to false in case additional actions should be executed before the repainting of the table should be triggered.
  • Method Details

    • cloneForRegion

      public ColumnWidthResetCommand cloneForRegion()
      Description copied from class: AbstractRegionCommand
      Creates and returns a clone of this instance with necessary modifications for further processing. Typically the label information is removed or adjusted for processing further down the region layer stack.
      Specified by:
      cloneForRegion in class AbstractRegionCommand
      Returns:
      A clone of this command prepared for further processing down the region layer stack.