Class RowSizeConfigurationCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
org.eclipse.nebula.widgets.nattable.command.AbstractRegionCommand
org.eclipse.nebula.widgets.nattable.resize.command.RowSizeConfigurationCommand
- All Implemented Interfaces:
ILayerCommand
Command to configure row heights. Instead of knowing the row indexes to
resize, it can be used to search for rows that have a special label applied.
- Since:
- 1.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal IntegerThe height to set.final booleanBoolean flag to specify whether the height should be set as percentage or as pixel value.Fields inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractRegionCommand
label -
Constructor Summary
ConstructorsConstructorDescriptionRowSizeConfigurationCommand(String label, Integer newRowHeight, boolean percentageSizing) -
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
-
newRowHeight
The height to set. Can benullin combination withpercentageSizing==trueto enable percentage sizing with equal row heights. -
percentageSizing
public final boolean percentageSizingBoolean flag to specify whether the height should be set as percentage or as pixel value.
-
-
Constructor Details
-
RowSizeConfigurationCommand
- Parameters:
label- The label that needs to be applied to a row in order to process the resize command. Is used to determine the row index. Ifnullthe default size will be set.newRowHeight- The height to set. Can benullin combination withpercentageSizing==trueto enable percentage sizing with equal row heights.percentageSizing- Boolean flag to specify whether the height should be set as percentage or as pixel value.
-
-
Method Details
-
cloneForRegion
Description copied from class:AbstractRegionCommandCreates 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:
cloneForRegionin classAbstractRegionCommand- Returns:
- A clone of this command prepared for further processing down the region layer stack.
-