Class ColumnWidthResetCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
org.eclipse.nebula.widgets.nattable.command.AbstractRegionCommand
org.eclipse.nebula.widgets.nattable.resize.command.ColumnWidthResetCommand
- All Implemented Interfaces:
ILayerCommand
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 Summary
Modifier and TypeFieldDescriptionfinal boolean
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
ConstructorDescriptionCreates aColumnWidthResetCommand
to reset the column width configuration of all regions, that triggers a refresh after the command is handled.ColumnWidthResetCommand
(boolean fireEvent) Creates aColumnWidthResetCommand
to reset the column width configuration of all regions.ColumnWidthResetCommand
(String label) Creates aColumnWidthResetCommand
to reset the column width configuration of the region with the given label.ColumnWidthResetCommand
(String label, boolean fireEvent) Creates aColumnWidthResetCommand
to reset the column width configuration of the region with the given label. -
Method Summary
Modifier and TypeMethodDescriptionCreates 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
-
Field Details
-
fireEvent
public final boolean fireEventFlag 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.
-
-
Constructor Details
-
ColumnWidthResetCommand
public ColumnWidthResetCommand()Creates aColumnWidthResetCommand
to reset the column width configuration of all regions, that triggers a refresh after the command is handled. -
ColumnWidthResetCommand
public ColumnWidthResetCommand(boolean fireEvent) Creates aColumnWidthResetCommand
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 tofalse
in case additional actions should be executed before the repainting of the table should be triggered.
-
ColumnWidthResetCommand
Creates aColumnWidthResetCommand
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 isnull
the command will be processed by all regions or until the first layer in the composition consumes the command.
-
ColumnWidthResetCommand
Creates aColumnWidthResetCommand
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 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 Details
-
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.
-