Class InitializeAutoResizeColumnsCommand
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.AbstractColumnCommand
-
- org.eclipse.nebula.widgets.nattable.resize.command.InitializeAutoResizeColumnsCommand
-
- All Implemented Interfaces:
ILayerCommand
- Direct Known Subclasses:
AutoResizeColumnCommandFixture
public class InitializeAutoResizeColumnsCommand extends AbstractColumnCommand
This command triggers the AutoResizeColumms command. It collects the selected columns from theSelectionLayer
and fires theAutoResizeColumnsCommand
on theGridLayer
-
-
Constructor Summary
Constructors Modifier Constructor Description InitializeAutoResizeColumnsCommand(ILayer layer, int columnPosition, IConfigRegistry configRegistry, GCFactory gcFactory)
protected
InitializeAutoResizeColumnsCommand(InitializeAutoResizeColumnsCommand command)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ILayerCommand
cloneCommand()
Same semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.int[]
getColumnPositions()
IConfigRegistry
getConfigRegistry()
GCFactory
getGCFactory()
ILayer
getSourceLayer()
void
setSelectedColumnPositions(int[] selectedColumnPositions)
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractColumnCommand
convertToTargetLayer, getColumnPosition, getLayer, toString
-
-
-
-
Constructor Detail
-
InitializeAutoResizeColumnsCommand
public InitializeAutoResizeColumnsCommand(ILayer layer, int columnPosition, IConfigRegistry configRegistry, GCFactory gcFactory)
-
InitializeAutoResizeColumnsCommand
protected InitializeAutoResizeColumnsCommand(InitializeAutoResizeColumnsCommand command)
-
-
Method Detail
-
cloneCommand
public ILayerCommand cloneCommand()
Description copied from interface:ILayerCommand
Same 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:
GridLayer.doCommand(ILayerCommand)
-
getGCFactory
public GCFactory getGCFactory()
-
getConfigRegistry
public IConfigRegistry getConfigRegistry()
-
getSourceLayer
public ILayer getSourceLayer()
-
setSelectedColumnPositions
public void setSelectedColumnPositions(int[] selectedColumnPositions)
-
getColumnPositions
public int[] getColumnPositions()
-
-