Class RowHeightResetCommand
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
-
- org.eclipse.nebula.widgets.nattable.command.AbstractRegionCommand
-
- org.eclipse.nebula.widgets.nattable.resize.command.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 Summary
Fields Modifier and Type Field Description boolean
fireEvent
Flag to indicate whether a refresh event should be triggered or not.-
Fields inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractRegionCommand
label
-
-
Constructor Summary
Constructors Constructor Description RowHeightResetCommand()
Creates aRowHeightResetCommand
to reset the row height configuration of all regions, that triggers a refresh after the command is handled.RowHeightResetCommand(boolean fireEvent)
Creates aRowHeightResetCommand
to reset the row height configuration of all regions.RowHeightResetCommand(String label)
Creates aRowHeightResetCommand
to reset the row height configuration of the region with the given label.RowHeightResetCommand(String label, boolean fireEvent)
Creates aRowHeightResetCommand
to reset the row height configuration of the region with the given label.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RowHeightResetCommand
cloneForRegion()
Creates and returns a clone of this instance with necessary modifications for further processing.-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
cloneCommand, convertToTargetLayer
-
-
-
-
Constructor Detail
-
RowHeightResetCommand
public RowHeightResetCommand()
Creates aRowHeightResetCommand
to reset the row height configuration of all regions, that triggers a refresh after the command is handled.
-
RowHeightResetCommand
public RowHeightResetCommand(boolean fireEvent)
Creates aRowHeightResetCommand
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 tofalse
in case additional actions should be executed before the repainting of the table should be triggered.
-
RowHeightResetCommand
public RowHeightResetCommand(String label)
Creates aRowHeightResetCommand
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 isnull
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 aRowHeightResetCommand
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 isnull
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 tofalse
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 classAbstractRegionCommand
- Returns:
- A clone of this command prepared for further processing down the region layer stack.
-
-