Class RowHeightResetCommand

  • All Implemented Interfaces:
    ILayerCommand

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

      • 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 Detail

      • RowHeightResetCommand

        public RowHeightResetCommand()
        Creates a RowHeightResetCommand to reset the row height configuration of all regions, that triggers a refresh after the command is handled.
      • RowHeightResetCommand

        public RowHeightResetCommand​(boolean fireEvent)
        Creates a RowHeightResetCommand to reset the row height 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.
      • RowHeightResetCommand

        public RowHeightResetCommand​(String label)
        Creates a RowHeightResetCommand to reset the row height 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.
      • RowHeightResetCommand

        public RowHeightResetCommand​(String label,
                                     boolean fireEvent)
        Creates a RowHeightResetCommand to reset the row height 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 Detail

      • cloneForRegion

        public RowHeightResetCommand 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.