Class EditCellCommand
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
-
- org.eclipse.nebula.widgets.nattable.edit.command.EditCellCommand
-
- All Implemented Interfaces:
ILayerCommand
public class EditCellCommand extends AbstractContextFreeCommand
Command that will trigger activating the edit mode for the specified cell. The corresponding command handler is responsible for determining if activation should proceed because of race conditions like e.g. the cell is configured to be editable or another editor is active containing an invalid data.
-
-
Constructor Summary
Constructors Constructor Description EditCellCommand(org.eclipse.swt.widgets.Composite parent, IConfigRegistry configRegistry, ILayerCell cell)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ILayerCell
getCell()
IConfigRegistry
getConfigRegistry()
org.eclipse.swt.widgets.Composite
getParent()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
cloneCommand, convertToTargetLayer
-
-
-
-
Constructor Detail
-
EditCellCommand
public EditCellCommand(org.eclipse.swt.widgets.Composite parent, IConfigRegistry configRegistry, ILayerCell cell)
- Parameters:
parent
- The parent Composite, needed for the creation of the editor control.configRegistry
- TheIConfigRegistry
containing the configuration of the current NatTable instance the command should be executed for. This is necessary because the edit controllers in the current architecture are not aware of the instance they are running in.cell
- The cell that should be put into the edit mode.
-
-
Method Detail
-
getConfigRegistry
public IConfigRegistry getConfigRegistry()
- Returns:
- The
IConfigRegistry
containing the configuration of the current NatTable instance the command should be executed for.
-
getParent
public org.eclipse.swt.widgets.Composite getParent()
- Returns:
- The parent Composite, needed for the creation of the editor control.
-
getCell
public ILayerCell getCell()
- Returns:
- The cell that should be put in edit mode.
-
-