Class RowResizeCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractRowCommand
org.eclipse.nebula.widgets.nattable.resize.command.RowResizeCommand
- All Implemented Interfaces:
ILayerCommand
Command to trigger row resizing.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionRowResizeCommand(ILayer layer, int rowPosition, int newHeight) Create aRowResizeCommandto resize the row at the given position to the given height.RowResizeCommand(ILayer layer, int rowPosition, int newHeight, boolean downScale) Create aRowResizeCommandto resize the row at the given position to the given height.protectedRowResizeCommand(RowResizeCommand command) Constructor used to clone the given command. -
Method Summary
Modifier and TypeMethodDescriptionSame semantics asObject.clone()Used to make a copies of the command if has to passed to different layer stacks.booleanintMethods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractRowCommand
convertToTargetLayer, getLayer, getRowPosition, toString
-
Constructor Details
-
RowResizeCommand
Create aRowResizeCommandto resize the row at the given position to the given height. The given row height will be taken as is without scaling.- Parameters:
layer- TheILayerto which the row position correlates.rowPosition- The position of the row that should be resized.newHeight- The new height that should be applied to the given row.
-
RowResizeCommand
Create aRowResizeCommandto resize the row at the given position to the given height.- Parameters:
layer- TheILayerto which the row position correlates.rowPosition- The position of the row that should be resized.newHeight- The new height that should be applied to the given row.downScale-trueif the newHeight value should be down scaled according to the scaling level,falseif the value should be taken as is.- Since:
- 1.6
-
RowResizeCommand
Constructor used to clone the given command.- Parameters:
command- The command to clone.
-
-
Method Details
-
getNewHeight
public int getNewHeight()- Returns:
- The new height value that should be applied.
-
downScaleValue
public boolean downScaleValue()- Returns:
trueif the newHeight value should be down scaled according to the scaling level,falseif the value should be taken as is.- Since:
- 1.6
-
cloneCommand
Description copied from interface:ILayerCommandSame semantics asObject.clone()Used to make a copies of the command if has to passed to different layer stacks.- Returns:
- a cloned instance of the command
- See Also:
-